* 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
+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.
/* 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; }
/* 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. */
/* 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; }
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.
/* 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 { \
#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; \
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;
#undef ASM_FILE_END
#define ASM_FILE_END(FILE) \
do { \
- extern char *language_string; \
if (strcmp (language_string, "GNU C++") == 0) \
{ \
constructor_section (); \
#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); \
#define TARGET_NO_PROTOTYPE 0
#endif
-extern char *language_string;
extern int profile_block_flag;
#define min(A,B) ((A) < (B) ? (A) : (B))
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
/* 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;
/* 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;
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)
extern int flag_traditional;
extern char *version_string;
-extern char *language_string;
/* Maximum size (in bytes) of an artificially generated label. */
+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.
/* ~~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;
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.
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. */
/* 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; }
/* 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; }
#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. */
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 ();
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));