]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Rename diagnostic-spec.{cc,h} to gcc-diagnostic-spec.{cc,h}
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:41 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:41 +0000 (15:13 -0400)
This has GCC-specific stuff in it (options and "GTY"), and so should
not be in the "diagnostics/" subdir, and should avoid a "diagnostics"
prefix in its name.

No functional change intended.

gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Replace diagnostic-spec.o with
gcc-diagnostic-spec.o.
(GTFILES): Replace diagnostic-spec.h with gcc-diagnostic-spec.h.
* diagnostic-spec.cc: Move to...
* gcc-diagnostic-spec.cc: ...here.
* diagnostic-spec.h: Move to...
* gcc-diagnostic-spec.h: ...here.
* gengtype.cc (open_base_files): Replace diagnostic-spec.h with
gcc-diagnostic-spec.h.
* warning-control.cc: Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/Makefile.in
gcc/gcc-diagnostic-spec.cc [moved from gcc/diagnostic-spec.cc with 99% similarity]
gcc/gcc-diagnostic-spec.h [moved from gcc/diagnostic-spec.h with 96% similarity]
gcc/gengtype.cc
gcc/warning-control.cc

index c4b6b1f2127d7917961e3645de5324945845a48e..5b33951440d60116e6c88bb078800c6659e1f333 100644 (file)
@@ -1851,7 +1851,7 @@ OBJS = \
 
 # Objects in libcommon.a, potentially used by all host binaries and with
 # no target dependencies.
-OBJS-libcommon = diagnostic-spec.o diagnostic.o \
+OBJS-libcommon = diagnostic.o \
        diagnostic-global-context.o \
        diagnostics/buffering.o \
        diagnostics/changes.o \
@@ -1873,6 +1873,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o \
        diagnostics/selftest-logical-locations.o \
        diagnostics/selftest-paths.o \
        diagnostics/diagnostics-selftests.o \
+       gcc-diagnostic-spec.o \
        graphviz.o pex.o \
        pretty-print.o intl.o \
        json.o json-parsing.o \
@@ -3044,7 +3045,7 @@ GTFILES = $(CPPLIB_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
   $(srcdir)/ipa-modref-tree.h \
   $(srcdir)/ipa-locality-cloning.cc \
   $(srcdir)/signop.h \
-  $(srcdir)/diagnostic-spec.h $(srcdir)/diagnostic-spec.cc \
+  $(srcdir)/gcc-diagnostic-spec.h $(srcdir)/gcc-diagnostic-spec.cc \
   $(srcdir)/dwarf2out.h \
   $(srcdir)/dwarf2asm.cc \
   $(srcdir)/dwarf2cfi.cc \
similarity index 99%
rename from gcc/diagnostic-spec.cc
rename to gcc/gcc-diagnostic-spec.cc
index b43ae637c16179461bfb32dfdce2b9de5c4671e6..99ca6a00ba7b8d526f6e4d286c745dd7e2224207 100644 (file)
@@ -27,7 +27,7 @@
 #include "tree.h"
 #include "cgraph.h"
 #include "hash-map.h"
-#include "diagnostic-spec.h"
+#include "gcc-diagnostic-spec.h"
 #include "pretty-print.h"
 #include "options.h"
 
similarity index 96%
rename from gcc/diagnostic-spec.h
rename to gcc/gcc-diagnostic-spec.h
index 13455ce1a615c2c8bde10db3c5c516065943186e..2b5e784d238d3f1d93c19ad658a4f3930e839bb3 100644 (file)
@@ -19,8 +19,8 @@
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef DIAGNOSTIC_SPEC_H_INCLUDED
-#define DIAGNOSTIC_SPEC_H_INCLUDED
+#ifndef GCC_DIAGNOSTIC_SPEC_H_INCLUDED
+#define GCC_DIAGNOSTIC_SPEC_H_INCLUDED
 
 #include "hash-map.h"
 
@@ -146,4 +146,4 @@ typedef hash_map<location_hash, nowarn_spec_t> nowarn_map_t;
 /* A mapping from a 'location_t' to the warning spec set for it.  */
 extern GTY(()) nowarn_map_t *nowarn_map;
 
-#endif // DIAGNOSTIC_SPEC_H_INCLUDED
+#endif // GCC_DIAGNOSTIC_SPEC_H_INCLUDED
index 6a3621c96cd126f7c6caf96de8e67bd92d0555dc..84c763620472c4550dfcafcc7eefc701baa0e2ec 100644 (file)
@@ -1722,7 +1722,7 @@ open_base_files (void)
       "target-globals.h", "ipa-ref.h", "cgraph.h", "symbol-summary.h",
       "sreal.h", "ipa-cp.h", "ipa-prop.h", "ipa-fnsummary.h", "dwarf2out.h",
       "omp-general.h", "omp-offload.h", "ipa-modref-tree.h", "ipa-modref.h",
-      "symtab-thunks.h", "symtab-clones.h", "diagnostic-spec.h", "ctfc.h",
+      "symtab-thunks.h", "symtab-clones.h", "gcc-diagnostic-spec.h", "ctfc.h",
       NULL
     };
     const char *const *ifp;
index 48446a772e9d88bdfc70d2d6452b5386ddac4aba..e04ef69fcf4c2d563e55be311cef1ece4bea6b60 100644 (file)
@@ -28,7 +28,7 @@
 #include "gimple.h"
 #include "cgraph.h"
 #include "hash-map.h"
-#include "diagnostic-spec.h"
+#include "gcc-diagnostic-spec.h"
 
 /* Return the no-warning bit for EXPR.  */