]> gcc.gnu.org Git - gcc.git/commitdiff
Makefile.in (TREE_H, [...]): Depend on version.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 15 Feb 2000 16:36:35 +0000 (16:36 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 15 Feb 2000 16:36:35 +0000 (16:36 +0000)
* Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.

* cccp.c: Include version.h and/or don't declare `version_string'.
* collect2.c: Likewise.
* alpha.c: Likewise.
* arm/aof.h: Likewise.
* arm/coff.h: Likewise.
* arm/elf.h: Likewise.
* arm/pe.h: Likewise.
* arm/tcoff.h: Likewise.
* arm/telf.h: Likewise.
* arm/tpe.h: Likewise.
* arm/vxarm.h: Likewise.
* convex/convex.c: Likewise.
* i386/dgux.c: Likewise.
* i386/sun386.h: Likewise.
* m88k/m88k.c: Likewise.
* mcore/mcore-pe.h: Likewise.
* mips/mips.h: Likewise.
* romp/romp.h: Likewise.
* sh/sh.c: Likewise.
* cpphash.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* gcc.c: Likewise.
* gcc.h: Likewise.
* mips-tfile.c: Likewise.
* protoize.c: Likewise.
* toplev.c: Likewise.
* tree.h: Likewise.

* version.c (version_string): Constify a char*.

* version.h: New file.

ch:
* grant.c: Don't declare `version_string'.

f:
* g77spec.c: Don't declare `version_string'.

java:
* Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
version.o.
(jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.

* gjavah.c: Include version.h.

* jcf-dump.c: Likewise.

* jv-scan.c: Likewise.

From-SVN: r31984

42 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/cccp.c
gcc/ch/ChangeLog
gcc/ch/grant.c
gcc/collect2.c
gcc/config/alpha/alpha.c
gcc/config/arm/aof.h
gcc/config/arm/coff.h
gcc/config/arm/elf.h
gcc/config/arm/pe.h
gcc/config/arm/tcoff.h
gcc/config/arm/telf.h
gcc/config/arm/tpe.h
gcc/config/arm/vxarm.h
gcc/config/convex/convex.c
gcc/config/i386/dgux.c
gcc/config/i386/sun386.h
gcc/config/m88k/m88k.c
gcc/config/mcore/mcore-pe.h
gcc/config/mips/mips.h
gcc/config/romp/romp.h
gcc/config/sh/sh.c
gcc/cpphash.c
gcc/cppinit.c
gcc/dwarf2out.c
gcc/dwarfout.c
gcc/f/ChangeLog
gcc/f/g77spec.c
gcc/gcc.c
gcc/gcc.h
gcc/java/ChangeLog
gcc/java/Makefile.in
gcc/java/gjavah.c
gcc/java/jcf-dump.c
gcc/java/jv-scan.c
gcc/mips-tfile.c
gcc/protoize.c
gcc/toplev.c
gcc/tree.h
gcc/version.c
gcc/version.h [new file with mode: 0644]

index 839b3ca7aea8590d0a5e974495145c38f5d6fac5..814f7a8ae21bf894ffafa1ccd222e06d1c6ed2c3 100644 (file)
@@ -1,3 +1,42 @@
+2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
+       cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
+
+       * cccp.c: Include version.h and/or don't declare `version_string'.
+       * collect2.c: Likewise.
+       * alpha.c: Likewise.
+       * arm/aof.h: Likewise.
+       * arm/coff.h: Likewise.
+       * arm/elf.h: Likewise.
+       * arm/pe.h: Likewise.
+       * arm/tcoff.h: Likewise.
+       * arm/telf.h: Likewise.
+       * arm/tpe.h: Likewise.
+       * arm/vxarm.h: Likewise.
+       * convex/convex.c: Likewise.
+       * i386/dgux.c: Likewise.
+       * i386/sun386.h: Likewise.
+       * m88k/m88k.c: Likewise.
+       * mcore/mcore-pe.h: Likewise.
+       * mips/mips.h: Likewise.
+       * romp/romp.h: Likewise.
+       * sh/sh.c: Likewise.
+       * cpphash.c: Likewise.
+       * cppinit.c: Likewise.
+       * dwarf2out.c: Likewise.
+       * dwarfout.c: Likewise.
+       * gcc.c: Likewise.
+       * gcc.h: Likewise.
+       * mips-tfile.c: Likewise.
+       * protoize.c: Likewise.
+       * toplev.c: Likewise.
+       * tree.h: Likewise.
+       
+       * version.c (version_string): Constify a char*.
+
+       * version.h: New file.
+
 2000-02-14  Nick Clifton  <nickc@cygnus.com>
 
        * configure.in: Add mcore-elf and mcore-pe targets.
index 2447401d34f33a1282385f4b14435dac4bc07206..03d19cb0bc81ba6f0d9e0b309ed55cbcf2de26c4 100644 (file)
@@ -752,7 +752,7 @@ CONFIG_H =
 MACHMODE_H = machmode.h machmode.def
 RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
 RTL_H = $(RTL_BASE_H) genrtl.h
-TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h
+TREE_H = tree.h real.h tree.def $(MACHMODE_H) tree-check.h version.h
 BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h
 DEMANGLE_H = $(srcdir)/../include/demangle.h
 RECOG_H = recog.h
@@ -1371,7 +1371,7 @@ collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(COLLECT2_OBJS) $(LIBS)
 
 collect2.o : collect2.c $(CONFIG_H) system.h gstab.h intl.h \
-       $(srcdir)/../include/obstack.h $(DEMANGLE_H) collect2.h
+       $(srcdir)/../include/obstack.h $(DEMANGLE_H) collect2.h version.h
        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES)  \
        -DTARGET_MACHINE=\"$(target_alias)\" $(MAYBE_USE_COLLECT2) \
        -c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
@@ -1413,6 +1413,8 @@ c-common.o : c-common.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h \
 
 # Language-independent files.
 
+gcc.h: version.h
+
 DRIVER_DEFINES = \
   -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
@@ -1638,7 +1640,7 @@ $(out_object_file): $(out_file) $(CONFIG_H) $(TREE_H) ggc.h \
 mips-tfile: mips-tfile.o version.o $(LIBDEPS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS)
 
-mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) system.h
+mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) system.h version.h
 
 mips-tdump: mips-tdump.o version.o $(LIBDEPS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tdump.o version.o $(LIBS)
@@ -2017,7 +2019,7 @@ PREPROCESSOR_DEFINES = \
 # We use $(libsubdir)/$(unlibsubdir) to match the
 # -iprefix argument which gcc will pass if GCC_EXEC_PREFIX is used.
 cccp.o: cccp.c $(CONFIG_H) intl.h pcp.h version.c config.status system.h \
-           mbchar.h prefix.h Makefile.in
+           mbchar.h prefix.h Makefile.in version.h
        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
          $(PREPROCESSOR_DEFINES) \
          -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
@@ -2040,14 +2042,14 @@ cppmain.o: cppmain.c $(CONFIG_H) cpplib.h intl.h system.h
 
 cppulp.o:  cppulp.c  $(CONFIG_H) system.h output.h
 cpplib.o:  cpplib.c  $(CONFIG_H) cpplib.h intl.h system.h cpphash.h
-cpphash.o: cpphash.c $(CONFIG_H) cpplib.h intl.h system.h cpphash.h
+cpphash.o: cpphash.c $(CONFIG_H) cpplib.h intl.h system.h cpphash.h version.h
 cppalloc.o: cppalloc.c $(CONFIG_H) cpplib.h intl.h system.h
 cpperror.o: cpperror.c $(CONFIG_H) cpplib.h intl.h system.h
 cppexp.o:   cppexp.c   $(CONFIG_H) cpplib.h intl.h system.h
 cppfiles.o: cppfiles.c $(CONFIG_H) cpplib.h intl.h system.h
 
 cppinit.o:  cppinit.c $(CONFIG_H) cpplib.h intl.h system.h \
-               cpphash.h prefix.h output.h Makefile
+               cpphash.h prefix.h output.h Makefile version.h
        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
          $(PREPROCESSOR_DEFINES) \
          -c `echo $(srcdir)/cppinit.c | sed 's,^\./,,'`
@@ -2066,13 +2068,13 @@ unprotoize$(exeext): unprotoize.o $(PROTO_OBJS) $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ unprotoize.o $(PROTO_OBJS) $(LIBS)
 
 protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) system.h \
-   Makefile
+   Makefile version.h
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
          $(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \
          $(srcdir)/protoize.c
 
 unprotoize.o: unprotoize.c protoize.c $(srcdir)/../include/getopt.h \
-   $(CONFIG_H) system.h Makefile
+   $(CONFIG_H) system.h Makefile version.h
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
          $(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \
          $(srcdir)/unprotoize.c
index 7f2f58483c0fc57d9870b43eb28dc5446a92ada6..052a4ab5a0698c0a64ae3a5c6458f0c09185666b 100644 (file)
@@ -32,6 +32,7 @@ typedef unsigned char U_CHAR;
 #include "pcp.h"
 #include "intl.h"
 #include "prefix.h"
+#include "version.h"
 
 #ifdef MULTIBYTE_CHARS
 #include "mbchar.h"
@@ -95,7 +96,6 @@ static void hack_vms_include_specification ();
 
 /* External declarations.  */
 
-extern char *version_string;
 HOST_WIDEST_INT parse_escape PARAMS ((char **, HOST_WIDEST_INT));
 HOST_WIDEST_INT parse_c_expression PARAMS ((char *, int));
 \f
index d72bff28c522679e33cd5c0b77c46e944e095a80..269b6004ebb2668f78cfcba1e24f3529fdeb8257 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * grant.c: Don't declare `version_string'.
+
 2000-02-11  Nathan Sidwell  <nathan@acm.org>
 
        * decl.c (init_decl_processing): Remove duplicate decl of
index 4cbe7d4ce9859324d0acc4cb1b967fa4c05319d3..6d4bb60303f881bf614243625a2d5674d31e0a4c 100644 (file)
@@ -57,9 +57,6 @@ int chill_at_module_level = 0;
 /* mark that a SPEC MODULE was generated */
 static int spec_module_generated = 0;
 
-/* define version strings */
-extern char *version_string;
-
 /* define a faster string handling */
 typedef struct
 {
index e9c9181c15f7d871cefa7b96459202c25581c54a..f69d56a78d6130095d72d3ed5ebd3452a12b3f58 100644 (file)
@@ -52,6 +52,7 @@ Boston, MA 02111-1307, USA.  */
 #include "demangle.h"
 #include "obstack.h"
 #include "intl.h"
+#include "version.h"
 
 /* Obstack allocation and deallocation routines.  */
 #define obstack_chunk_alloc xmalloc
@@ -184,8 +185,6 @@ enum pass {
   PASS_SECOND                          /* with constructors linked in */
 };
 
-extern char *version_string;
-
 int vflag;                             /* true if -v */
 static int rflag;                      /* true if -r */
 static int strip_flag;                 /* true if -s */
index 36f831d648c437c9c79e8afd74bd20634091a20e..f3ff40583f25111356861ae2c309b5607b6d368d 100644 (file)
@@ -44,7 +44,6 @@ Boston, MA 02111-1307, USA.  */
 #include "tm_p.h"
 
 /* External data.  */
-extern char *version_string;
 extern int rtx_equal_function_value_matters;
 
 /* Specify which cpu to schedule for. */
index 43518bc92d43dff817f15f297eb7ce87a90045c0..9f67fc39c9d6231f8f73caed399e66a59895b096 100644 (file)
@@ -174,7 +174,6 @@ do {                                        \
 
 #define ASM_FILE_START(STREAM)                                 \
 {                                                              \
-  extern char *version_string;                                 \
   fprintf ((STREAM), "%s Generated by gcc %s for ARM/%s\n",    \
           ASM_COMMENT_START, version_string, ARM_OS_NAME);     \
   fprintf ((STREAM), "__r0\tRN\t0\n");                         \
index 4029eed0b13eb34e49905f0ebc06bbda3d1cf134..f98674bc36a073af14bcdbe6d6475f9553623154 100644 (file)
@@ -67,7 +67,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_FILE_START(STREAM)                                 \
   do                                                           \
     {                                                          \
-      extern char * version_string;                            \
       fprintf (STREAM, "%s Generated by gcc %s for ARM/coff\n",        \
               ASM_COMMENT_START, version_string);              \
       fprintf (STREAM, ASM_APP_OFF);                           \
index 3e06891348531bbaf421e008dd28559a334e1dd0..71b36d2b8bf888759de8aaea458afb9f2aca98cf 100644 (file)
@@ -198,7 +198,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_FILE_START(STREAM)                                 \
   do                                                           \
     {                                                          \
-      extern char * version_string;                            \
       fprintf (STREAM, "%s Generated by gcc %s for ARM/elf\n", \
               ASM_COMMENT_START, version_string);              \
       output_file_directive (STREAM, main_input_filename);     \
index 66dfc6b2b10c763ae109368315a74c7559ac67db..41a3ceb24a105247afab0e9780cb9dbd1566d58b 100644 (file)
@@ -175,7 +175,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_FILE_START(STREAM)                                 \
   do                                                           \
     {                                                          \
-      extern char * version_string;                            \
       asm_fprintf (STREAM, "%@ Generated by gcc %s for ARM/pe\n",\
           version_string);                                     \
       output_file_directive ((STREAM), main_input_filename);   \
index 5f14c1e32830b8a9ec83b1a6a6ae7182d57102f5..37870022d1e5a3cc14921e68f77e5687561a2c6f 100644 (file)
@@ -60,7 +60,6 @@ extern int arm_structure_size_boundary;
 #undef ASM_FILE_START
 #define ASM_FILE_START(STREAM) \
 do {                                                           \
-  extern char *version_string;                                 \
   fprintf ((STREAM), "%s Generated by gcc %s for Thumb/coff\n", \
           ASM_COMMENT_START, version_string);                  \
   fprintf ((STREAM), ASM_APP_OFF);                              \
index fbf5212ff96db0a7084f6e8b4df2b052a8eccaa3..bb199ac8d299cc2f07c147e7f4dbda5da2e495ee 100644 (file)
@@ -67,7 +67,6 @@ extern int arm_structure_size_boundary;
 #define ASM_FILE_START(STREAM)                                         \
   do                                                                   \
     {                                                                  \
-      extern char * version_string;                                    \
       fprintf ((STREAM), "%s Generated by gcc %s for Thumb/elf\n",     \
               ASM_COMMENT_START, version_string);                      \
       fprintf ((STREAM), ASM_APP_OFF);                                 \
index 526cd36bb64d5b35d8b62c4c3b4537d6e3c45141..c7f0683d8eedc3ae4134813dc791bdcc8a8a9905 100644 (file)
@@ -91,7 +91,6 @@ extern int arm_structure_size_boundary;
 #undef  ASM_FILE_START
 #define ASM_FILE_START(STREAM) \
 do {                                                           \
-  extern char * version_string;                                        \
   fprintf ((STREAM), "%s Generated by gcc %s for Thumb/coff\n", \
           ASM_COMMENT_START, version_string);                  \
   fprintf ((STREAM), ASM_APP_OFF);                              \
@@ -301,7 +300,6 @@ do {                                                                \
 #undef  ASM_FILE_START
 #define ASM_FILE_START(STREAM) \
 do {                                                           \
-  extern char * version_string;                                        \
   fprintf (STREAM, "%s Generated by gcc %s for ARM/pe\n",      \
           ASM_COMMENT_START, version_string);                  \
   output_file_directive ((STREAM), main_input_filename);       \
index b42bbbec00cdcf5bcd54fa075f3a1fed1d4a011a..53381b937c0f223886a6d68dfbda7ae0ae38b8b4 100644 (file)
@@ -67,7 +67,6 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_FILE_START(STREAM)                                         \
 do                                                             \
 {                                                              \
-  extern char * version_string;                                        \
   fprintf (STREAM, "%s Generated by gcc %s for ARM/VxWorks\n", \
           ASM_COMMENT_START, version_string);                  \
 } while (0)
index 69e1339367bed70ec8733ea14eca9390b1f403ce..6230478d4e05a93b9262c3127573570110b94c2f 100644 (file)
@@ -472,7 +472,6 @@ asm_declare_function_name (file, name, decl)
 
   const char *p;
   char c;
-  extern char *version_string;
   static char vers[4];
   int i;
   
index 55ff8241c3815a39c3c83eca9a2dc2356b9ef450..915719d1c5ab4ac4dab716d445f7e6b5ae6b77b9 100644 (file)
@@ -22,9 +22,6 @@ Boston, MA 02111-1307, USA.  */
 #include <time.h>
 #include "i386/i386.c"
 
-
-extern char *version_string;
-
 struct lang_independent_option
 {
   char *string;
index 8171b8936fbdea811e54666657191be7cfe77333..c7bd415c2c1b18995aab352ff9f78b0e80f555bc 100644 (file)
@@ -57,7 +57,6 @@ do                                                            \
 #undef ASM_FILE_START
 #define ASM_FILE_START(FILE) \
   do {                                                 \
-    extern char *version_string;                       \
     {                                                  \
       int len = strlen (main_input_filename);          \
       char *na = main_input_filename + len;            \
index 4e3ce2c94c344d1c1a03b8587b848336d7947191..6c00fac2e3c5080a3261e71d715e354d2a37f62a 100644 (file)
@@ -41,7 +41,6 @@ Boston, MA 02111-1307, USA.  */
 #include "toplev.h"
 #include "tm_p.h"
 
-extern char *version_string;
 extern int flag_traditional;
 extern FILE *asm_out_file;
 
index 89d4e6128b5ff04bed69d5db73d05e3286fe799e..8098c8531afba6c4310a711e72d8cf8c4b79fe60 100644 (file)
@@ -154,7 +154,6 @@ rdata_section ()                                            \
 #define ASM_FILE_START(STREAM)                                 \
   do                                                           \
     {                                                          \
-      extern char * version_string;                            \
       fprintf (STREAM, "%s Generated by gcc %s for MCore/pe\n",        \
           ASM_COMMENT_START, version_string);                  \
       output_file_directive ((STREAM), main_input_filename);   \
index bc975ef20b452cb263e8e64e136e8389c7060112..437cf060b15c80bb3b3e8a8c42e4a305ec907291 100644 (file)
@@ -30,7 +30,6 @@ extern char   call_used_regs[];
 extern int     may_call_alloca;
 extern char   **save_argv;
 extern int     target_flags;
-extern char    *version_string;
 
 /* MIPS external variables defined in mips.c.  */
 
index 25a6474730ea8d79dc261906fcb3a58c8ccb57c1..cc2914d9ab5a43bbeae1a309cb24e540286db967 100644 (file)
@@ -1360,8 +1360,7 @@ struct rt_cargs {int gregs, fregs; };
 /* Output at beginning of assembler file.  */
 
 #define ASM_FILE_START(FILE)                           \
-{ extern char *version_string;                         \
-  const char *p;                                       \
+{ const char *p;                                       \
                                                        \
   fprintf (FILE, "\t.globl .oVncs\n\t.set .oVncs,0\n") ; \
   fprintf (FILE, "\t.globl .oVgcc");                   \
index 3f1f8b12b9f83bf67a4b8cc1ce56a0791dc2bd19..d039650afe18ab29149bb55ea1b3a043c18c820e 100644 (file)
@@ -74,7 +74,6 @@ int current_function_anonymous_args;
 
 /* Global variables from toplev.c and final.c that are used within, but
    not declared in any header file.  */
-extern char *version_string;
 extern int *insn_addresses;
 
 /* Global variables for machine-dependent things. */
index fc2b8ff76d5076eb785ebd38f12c829592aa186d..863240b4b2087f3a724915b7bb4679cd459fb050 100644 (file)
@@ -27,6 +27,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #include "system.h"
 #include "cpplib.h"
 #include "cpphash.h"
+#include "version.h"
 #undef abort
 
 static unsigned int hashf        PARAMS ((const U_CHAR *, int));
@@ -45,8 +46,6 @@ static void special_symbol     PARAMS ((HASHNODE *, cpp_reader *));
 #define CPP_IS_MACRO_BUFFER(PBUF) ((PBUF)->data != NULL)
 #define FORWARD(N) CPP_FORWARD (CPP_BUFFER (pfile), (N))
 
-extern char *version_string;
-
 /* The arglist structure is built by create_definition to tell
    collect_expansion where the argument names begin.  That
    is, for a define like "#define f(x,y,z) foo+x-bar*y", the arglist
index d941546b1ba45d400974558ee16b5ea581435d6f..b7d230197f48bf27c7a0514c065d333fb18bb453 100644 (file)
@@ -27,9 +27,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "output.h"
 #include "prefix.h"
 #include "intl.h"
-
-/* XXX Should be in a header file. */
-extern char *version_string;
+#include "version.h"
 
 /* Predefined symbols, built-in macros, and the default include path. */
 
index b12dc0a3803647fdd8770eab852cb299ae6697af..183038de2e4366c4ca2d2e5d47b0b78399224b02 100644 (file)
@@ -2126,7 +2126,6 @@ limbo_die_node;
    language, and compiler version.  */
 
 extern int flag_traditional;
-extern char *version_string;
 
 /* Fixed size portion of the DWARF compilation unit header.  */
 #define DWARF_COMPILE_UNIT_HEADER_SIZE (2 * DWARF_OFFSET_SIZE + 3)
index a0ac42d8c7054a362e29c3a0b6e1ca37b329f87b..c6fcbe6b72c6f37a82d5960a221aa7b63b3808d4 100644 (file)
@@ -106,7 +106,6 @@ extern time_t time PARAMS ((time_t *)); /* FIXME: use NEED_DECLARATION_TIME */
        && decl == TYPE_STUB_DECL (TREE_TYPE (decl))))
 
 extern int flag_traditional;
-extern char *version_string;
 
 /* Maximum size (in bytes) of an artificially generated label. */
 
index 020c7a7fe8f0017dc5b88c0c449389613439e676..68e748e6a2834e378532db25abf1651047cc4b75 100644 (file)
@@ -1,3 +1,7 @@
+Tue Feb 15 11:14:17 2000  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * g77spec.c: Don't declare `version_string'.
+
 Sat Feb  5 23:27:25 2000  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * com.c (mark_tracker_head, mark_binding_level): Protoize.
index 505bc12b0bbb32a0a4249f0dcf18026fb97fd490..26d78b45b17f4729a5f17b398dde0658e3238cea 100644 (file)
@@ -96,8 +96,6 @@ static int g77_newargc;
 static char **real_g77_newargv;
 static const char **g77_newargv;
 
-extern char *version_string;
-
 /* --- This comes from gcc.c (2.8.1) verbatim: */
 
 /* This defines which switch letters take arguments.  */
index 6ad53f01c278ec4b6764d31da9e041a0afcac3a1..b8f3ddbaaf79c743001c006a949d8932862ae520 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -189,8 +189,6 @@ static struct obstack collect_obstack;
 static struct rusage rus, prus;
 #endif
 
-extern char *version_string;
-
 /* Forward declaration for prototypes.  */
 struct path_prefix;
 
index 3e870e2b590f40a0a4bbca3a2357146b532badc7..64b954647d30a9974f130a993be5c2d3a2787724 100644 (file)
--- a/gcc/gcc.h
+++ b/gcc/gcc.h
@@ -21,6 +21,8 @@ Boston, MA 02111-1307, USA.  */
 #ifndef __GCC_H__
 #define __GCC_H__
 
+#include "version.h"
+
 /* These are exported by gcc.c. */
 extern int do_spec PARAMS ((const char *));
 extern void fancy_abort PARAMS ((void)) ATTRIBUTE_NORETURN;
index 31d62017d6bcd7b7dd0575c35644b3f1148f1ea2..315cf0b9182bca0bc78ec62232ba9ced0e9d5ce2 100644 (file)
@@ -1,3 +1,15 @@
+2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
+       version.o.
+       (jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.
+
+       * gjavah.c: Include version.h.
+       
+       * jcf-dump.c: Likewise.
+
+       * jv-scan.c: Likewise.
+
 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * except.c (check_start_handlers): Re-add prototype lost in last
index 82a0b422cdf6bf4c8f77ad837fd913d89b19d749..07e4f22db5fd6a86fb10f0a868c66426adf00941 100644 (file)
@@ -177,23 +177,23 @@ compiler: ../jc1$(exeext) ../jv-scan$(exeext)
 ../jc1$(exeext): $(P) $(JAVA_OBJS) $(OBJDEPS) $(LIBDEPS)
        rm -f ../jc1$(exeext)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JAVA_OBJS) $(OBJS) $(LIBS)
-../jv-scan$(exeext): $(P) $(JAVA_OBJS_LITE) $(OBJDEPS) $(LIBDEPS)
+../jv-scan$(exeext): $(P) $(JAVA_OBJS_LITE) $(OBJDEPS) ../version.o $(LIBDEPS)
        rm -f ../jv-scan$(exeext)
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JAVA_OBJS_LITE) $(LIBS)
+       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JAVA_OBJS_LITE) ../version.o $(LIBS)
 
 ../jcf-dump$(exeext): jcf-dump.o jcf-io.o jcf-depend.o jcf-path.o \
-               zextract.o $(LIBDEPS)
+               zextract.o ../version.o $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ jcf-dump.o jcf-io.o \
-         jcf-depend.o jcf-path.o zextract.o ../errors.o $(LIBS)
+         jcf-depend.o jcf-path.o zextract.o ../errors.o ../version.o $(LIBS)
 
 # Dependencies here must be kept in sync with dependencies in Make-lang.in.
 ../jvgenmain$(exeext):  jvgenmain.o mangle.o $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ jvgenmain.o mangle.o $(LIBS)
 
 ../gcjh$(exeext): gjavah.o jcf-io.o jcf-depend.o jcf-path.o \
-               zextract.o $(LIBDEPS)
+               zextract.o ../version.o $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gjavah.o jcf-io.o \
-         jcf-depend.o jcf-path.o zextract.o ../errors.o $(LIBS)
+         jcf-depend.o jcf-path.o zextract.o ../errors.o ../version.o $(LIBS)
 
 Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
        cd ..; $(SHELL) config.status
@@ -264,9 +264,9 @@ force:
 parse.o : $(PARSE_C) jcf-reader.c $(CONFIG_H) $(srcdir)/../system.h \
   $(srcdir)/../function.h $(JAVA_TREE_H)
 jcf-dump.o : $(CONFIG_H) $(srcdir)/../system.h $(JAVA_TREE_H) jcf-dump.c \
-  jcf-reader.c jcf.h javaop.h javaop.def
+  jcf-reader.c jcf.h javaop.h javaop.def $(srcdir)/../version.h
 gjavah.o : $(CONFIG_H) $(srcdir)/../system.h $(JAVA_TREE_H) gjavah.c \
-  jcf-reader.c jcf.h javaop.h
+  jcf-reader.c jcf.h javaop.h $(srcdir)/../version.h
 buffer.o : buffer.c $(CONFIG_H) buffer.h $(srcdir)/../gansidecl.h \
   $(srcdir)/../system.h $(srcdir)/../toplev.h
 check-init.o : check-init.c $(CONFIG_H) $(srcdir)/../gansidecl.h \
@@ -294,7 +294,7 @@ jcf-parse.o : jcf-parse.c $(CONFIG_H) $(JAVA_TREE_H) $(srcdir)/../flags.h \
   $(srcdir)/../toplev.h $(PARSE_H)
 jcf-write.o : jcf-write.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(RTL_H) \
   java-opcodes.h parse.h buffer.h $(srcdir)/../system.h $(srcdir)/../toplev.h
-jv-scan.o : jv-scan.c $(CONFIG_H) $(srcdir)/../system.h
+jv-scan.o : jv-scan.c $(CONFIG_H) $(srcdir)/../system.h $(srcdir)/../version.h
 jvgenmain.o : jvgenmain.c $(CONFIG_H) $(srcdir)/../system.h
 lang.o : lang.c $(CONFIG_H) $(JAVA_TREE_H) jcf.h $(srcdir)/../input.h \
   $(srcdir)/../toplev.h $(srcdir)/../system.h $(RTL_H) $(EXPR_H)
index 7cc004f60eb4e55a1bd6df287c8419b8f505a71a..c679491dc099dabbc88265e6f482852b89b06f51 100644 (file)
@@ -34,8 +34,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 #include "java-tree.h"
 #include "java-opcodes.h"
 
-#include "version.c"
-
 #include <getopt.h>
 
 \f
index 28092d2d5198eaf4cd3232e343b5336b2ef856b1..9d3f8297f4d00984a3b6ef8679634e0ca3cc1c50 100644 (file)
@@ -53,7 +53,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 #include "tree.h"
 #include "java-tree.h"
 
-#include "version.c"
+#include "version.h"
 
 #include <getopt.h>
 
index d7c5a0ccab50628733fa61daaf7c823ab82ec5a4..f803e2cfe6fa29031bef075a8d84f79a6ccb43b5 100644 (file)
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA.  */
 
 #include "obstack.h"           /* We use obstacks in lex.c */
 
-#include "version.c"
+#include "version.h"
 
 #include <getopt.h>
 
index 073e7311c5284deaed4181937de97fb3fc6ddced..abedec870b8a117d13705674612c0b2be300d32d 100644 (file)
@@ -601,6 +601,7 @@ Boston, MA 02111-1307, USA.  */
 
 #include "config.h"
 #include "system.h"
+#include "version.h"
 
 #ifndef __SABER__
 #define saber_stop()
@@ -1697,7 +1698,6 @@ extern long   strtol                      __proto((const char *, char **, int));
 extern char *optarg;
 extern int   optind;
 extern int   opterr;
-extern char *version_string;
 \f
 /* List of assembler pseudo ops and beginning sequences that need
    special actions.  Someday, this should be a hash table, and such,
index b508a5d19797217bc28a1ff20cc663011233435b..77d71ef589aa4c4dba3eac7f2f6de9e48de3c629 100644 (file)
@@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA.  */
 #include <unistd.h>
 #endif
 #undef abort
+#include "version.h"
 
 /* Include getopt.h for the sake of getopt_long. */
 #include "getopt.h"
@@ -53,8 +54,6 @@ Boston, MA 02111-1307, USA.  */
 #define CPLUS_FILE_SUFFIX "C"
 #endif
 
-extern char *version_string;
-
 static void usage PARAMS ((void)) ATTRIBUTE_NORETURN;
 static void aux_info_corrupted PARAMS ((void)) ATTRIBUTE_NORETURN;
 static void declare_source_confusing PARAMS ((const char *)) ATTRIBUTE_NORETURN;
index 7a3d02b118328cc873abbf1f39f01abf3811c2d4..4d9eb8a8e53ca876354be1dc3605d644b4f9bbb3 100644 (file)
@@ -141,7 +141,6 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
 #ifdef NEED_DECLARATION_ENVIRON
 extern char **environ;
 #endif
-extern char *version_string;
 
 /* Carry information from ASM_DECLARE_OBJECT_NAME
    to ASM_FINISH_DECLARE_OBJECT.  */
index b27f0e09dbfd447c41870274ae4954d42259d391..8ea2204408fd78ff60cae1092a672878ed829889 100644 (file)
@@ -19,6 +19,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 #include "machmode.h"
+#include "version.h"
 
 #ifndef RTX_CODE
 struct rtx_def;
index a924d0c65e6c3d9b6c988d7fad850b4bd7e9cf5f..3e1cbb59fec2f21cc227ad2f396e12df7eab9bcc 100644 (file)
@@ -1 +1 @@
-char *version_string = "2.96 20000215 (experimental)";
+const char *const version_string = "2.96 20000215 (experimental)";
diff --git a/gcc/version.h b/gcc/version.h
new file mode 100644 (file)
index 0000000..86a5c28
--- /dev/null
@@ -0,0 +1 @@
+extern const char *const version_string;
This page took 0.149963 seconds and 5 git commands to generate.