c-parse.in (language_string): Constify.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 31 Aug 1999 02:16:34 +0000 (02:16 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 31 Aug 1999 02:16:34 +0000 (02:16 +0000)
* c-parse.in (language_string): Constify.

* dwarf2out.c (language_string): Remove declaration.

* dwarfout.c (language_string): Likewise.

* toplev.c (language_string, init_parse, finish_parse): Likewise.

* tree.h (language_string, init_parse, finish_parse): Declare.

* i386/sun386.h (language_string): Remove declaration.

* mips.h (language_string): Likewise.

* nextstep.h (language_string): Likewise.

* nextstep21.h (language_string): Likewise.

* rs6000.c (language_string): Likewise.

In ch:
* parse.c (language_string): Constify.
In cp:
* parse.y (language_string): Constify.
In f:
* com.c (language_string): Constify.
In java:
* lang.c (language_string): Constify.

From-SVN: r29000

24 files changed:
gcc/ChangeLog
gcc/c-parse.c
gcc/c-parse.in
gcc/c-parse.y
gcc/ch/ChangeLog
gcc/ch/parse.c
gcc/config/i386/sun386.h
gcc/config/mips/mips.h
gcc/config/nextstep.h
gcc/config/nextstep21.h
gcc/config/rs6000/rs6000.c
gcc/cp/ChangeLog
gcc/cp/parse.c
gcc/cp/parse.y
gcc/dwarf2out.c
gcc/dwarfout.c
gcc/f/ChangeLog
gcc/f/com.c
gcc/java/ChangeLog
gcc/java/lang.c
gcc/objc/objc-parse.c
gcc/objc/objc-parse.y
gcc/toplev.c
gcc/tree.h

index 230e0f1..0279ec0 100644 (file)
@@ -1,3 +1,25 @@
+Mon Aug 30 22:04:36 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * c-parse.in (language_string): Constify.
+
+       * dwarf2out.c (language_string): Remove declaration.
+
+       * dwarfout.c (language_string): Likewise.
+
+       * toplev.c (language_string, init_parse, finish_parse): Likewise.
+
+       * tree.h (language_string, init_parse, finish_parse): Declare.
+
+       * i386/sun386.h (language_string): Remove declaration.
+
+       * mips.h (language_string): Likewise.
+
+       * nextstep.h (language_string): Likewise.
+
+       * nextstep21.h (language_string): Likewise.
+
+       * rs6000.c (language_string): Likewise.
+
 Mon Aug 30 20:56:08 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
index ff2b229..063d3db 100644 (file)
@@ -88,7 +88,7 @@
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  */
-char *language_string = "GNU C";
+const char * const language_string = "GNU C";
 
 /* Like YYERROR but do call yyerror.  */
 #define YYERROR1 { yyerror ("syntax error"); YYERROR; }
index dc8df78..7bd1299 100644 (file)
@@ -81,10 +81,10 @@ end ifobjc
 /* Since parsers are distinct for each language, put the language string
    definition here.  */
 ifobjc
-char *language_string = "GNU Obj-C";
+const char * const language_string = "GNU Obj-C";
 end ifobjc
 ifc
-char *language_string = "GNU C";
+const char * const language_string = "GNU C";
 end ifc
 
 /* Like YYERROR but do call yyerror.  */
index 73730fb..08d985b 100644 (file)
@@ -73,7 +73,7 @@ State 434 contains 2 shift/reduce conflicts.  (Four ways to parse this.)  */
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  */
-char *language_string = "GNU C";
+const char * const language_string = "GNU C";
 
 /* Like YYERROR but do call yyerror.  */
 #define YYERROR1 { yyerror ("syntax error"); YYERROR; }
index 76471e1..09d5c06 100644 (file)
@@ -1,5 +1,9 @@
 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * parse.c (language_string): Constify.
+
+1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
        * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
        Remove hacks for stuff which now comes from libiberty.
 
index 72d1db6..36913ce 100644 (file)
@@ -53,7 +53,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Since parsers are distinct for each language, put the 
    language string definition here.  (fnf) */
-char *language_string = "GNU CHILL";
+const char * const language_string = "GNU CHILL";
 
 /* Common code to be done before expanding any action. */
 #define INIT_ACTION { \
index 4302ec4..8171b89 100644 (file)
@@ -57,7 +57,7 @@ do                                                            \
 #undef ASM_FILE_START
 #define ASM_FILE_START(FILE) \
   do {                                                 \
-    extern char *version_string, *language_string;     \
+    extern char *version_string;                       \
     {                                                  \
       int len = strlen (main_input_filename);          \
       char *na = main_input_filename + len;            \
index 409e9c5..e80eb6a 100644 (file)
@@ -27,7 +27,6 @@ Boston, MA 02111-1307, USA.  */
 
 extern char    *asm_file_name;
 extern char    call_used_regs[];
-extern char    *language_string;
 extern int     may_call_alloca;
 extern char   **save_argv;
 extern int     target_flags;
index 59050a1..69c3712 100644 (file)
@@ -250,7 +250,6 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_FILE_END
 #define ASM_FILE_END(FILE)                                     \
   do {                                                         \
-    extern char *language_string;                              \
     if (strcmp (language_string, "GNU C++") == 0)              \
       {                                                                \
        constructor_section ();                                 \
index 8009571..aa2c443 100644 (file)
@@ -43,7 +43,6 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_FILE_END
 #define ASM_FILE_END(FILE)                                     \
   do {                                                         \
-    extern char *language_string;                              \
       if (strcmp (language_string, "GNU C++") == 0)            \
       {                                                                \
        ASM_OUTPUT_ALIGN (FILE, 1);                             \
index d53672f..700fd3e 100644 (file)
@@ -43,7 +43,6 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_NO_PROTOTYPE 0
 #endif
 
-extern char *language_string;
 extern int profile_block_flag;
 
 #define min(A,B)       ((A) < (B) ? (A) : (B))
index 018147d..68c3590 100644 (file)
@@ -1,5 +1,9 @@
 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * parse.y (language_string): Constify.
+
+1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
        * repo.c (getpwd): Don't prototype.
        * xref.c (getpwd): Likewise
 
index f70555f..9725019 100644 (file)
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  (fnf) */
-char *language_string = "GNU C++";
+const char * const language_string = "GNU C++";
 
 extern struct obstack permanent_obstack;
 
index ef96a0b..de9c1f3 100644 (file)
@@ -45,7 +45,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  (fnf) */
-char *language_string = "GNU C++";
+const char * const language_string = "GNU C++";
 
 extern struct obstack permanent_obstack;
 
index 2941002..af08bec 100644 (file)
@@ -2220,7 +2220,6 @@ limbo_die_node;
 
 extern int flag_traditional;
 extern char *version_string;
-extern char *language_string;
 
 /* Fixed size portion of the DWARF compilation unit header.  */
 #define DWARF_COMPILE_UNIT_HEADER_SIZE (2 * DWARF_OFFSET_SIZE + 3)
index 4f6c3ea..fbc9f44 100644 (file)
@@ -106,7 +106,6 @@ extern time_t time PROTO ((time_t *)); /* FIXME: use NEED_DECLARATION_TIME */
 
 extern int flag_traditional;
 extern char *version_string;
-extern char *language_string;
 
 /* Maximum size (in bytes) of an artificially generated label. */
 
index 848cd25..aab7c9a 100644 (file)
@@ -1,3 +1,7 @@
+Mon Aug 30 22:05:53 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * com.c (language_string): Constify.
+
 Mon Aug 30 20:29:30 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
index 8d0fc68..c57d94a 100644 (file)
@@ -234,7 +234,7 @@ tree va_list_type_node;
 /* ~~gcc/tree.h *should* declare this, because toplev.c and dwarfout.c
    reference it.  */
 
-char *language_string = "GNU F77";
+const char * const language_string = "GNU F77";
 
 /* Stream for reading from the input file.  */
 FILE *finput;
index f0730bc..29bba84 100644 (file)
@@ -1,5 +1,9 @@
 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * lang.c (language_string): Constify.
+
+1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
        * Makefile.in (LIBS): Fix definition so we link with $(CLIB).
        Remove hacks for stuff which comes from libiberty.
 
index 18fba28..0a444b4 100644 (file)
@@ -81,7 +81,7 @@ const char *java_tree_code_name[] = {
 
 int compiling_from_source;
 
-char *language_string = "GNU Java";
+const char * const language_string = "GNU Java";
 
 /* Nonzero if we want to automatically do array bounds checking;
    on by default.  Use -fno-bounds-check to disable.  */
index 7ab1034..f34ec91 100644 (file)
@@ -89,7 +89,7 @@
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  */
-char *language_string = "GNU Obj-C";
+const char * const language_string = "GNU Obj-C";
 
 /* Like YYERROR but do call yyerror.  */
 #define YYERROR1 { yyerror ("syntax error"); YYERROR; }
index 26dba44..a092e1e 100644 (file)
@@ -51,7 +51,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Since parsers are distinct for each language, put the language string
    definition here.  */
-char *language_string = "GNU Obj-C";
+const char * const language_string = "GNU Obj-C";
 
 /* Like YYERROR but do call yyerror.  */
 #define YYERROR1 { yyerror ("syntax error"); YYERROR; }
index c6cac41..532c98b 100644 (file)
@@ -140,7 +140,7 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
 #if ! (defined (VMS) || defined (OS2))
 extern char **environ;
 #endif
-extern char *version_string, *language_string;
+extern char *version_string;
 
 /* Carry information from ASM_DECLARE_OBJECT_NAME
    to ASM_FINISH_DECLARE_OBJECT.  */
@@ -148,8 +148,6 @@ extern char *version_string, *language_string;
 extern int size_directive_output;
 extern tree last_assemble_variable_decl;
 
-extern char *init_parse PVPROTO((char *));
-extern void finish_parse ();
 extern void init_decl_processing ();
 extern void init_obstacks ();
 extern void init_tree_codes ();
index bd9b34d..e5a9ebf 100644 (file)
@@ -1934,6 +1934,11 @@ extern const char *(*decl_printable_name)        PROTO((tree, int));
    end of compilation.  */
 
 extern void (*incomplete_decl_finalize_hook)   PROTO((tree));
+
+extern char *init_parse                                PROTO((char *));
+extern void finish_parse                       PROTO((void));
+
+extern const char * const language_string;  
 \f
 /* In tree.c */
 extern char *perm_calloc                       PROTO((int, long));