aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-01-18 08:53:41 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-01-18 08:53:41 +0000
commit87e11268b6574b6002b6a8b9ba28531e4173273e (patch)
treeda93e20e14614c525df0a055e8e04e6c1e3306ba /gcc/toplev.h
parent6b106e7db721422dc10e5efed084ffb146a1257e (diff)
downloadgcc-87e11268b6574b6002b6a8b9ba28531e4173273e.zip
gcc-87e11268b6574b6002b6a8b9ba28531e4173273e.tar.gz
gcc-87e11268b6574b6002b6a8b9ba28531e4173273e.tar.bz2
cpplib.c (special_symbol): Qualify a char* with the `const' keyword.
* cpplib.c (special_symbol): Qualify a char* with the `const' keyword. Instead of writing to const char *buf directly, use a non-const variable `wbuf' to allocate and write a string, then set buf = wbuf. * cppulp.c (user_label_prefix): Qualify a char* with the `const' keyword. * dyn-string.c (dyn_string_append): Likewise. * dyn-string.h (dyn_string_append): Likewise. * final.c (end_final, output_operand_lossage, asm_fprintf): Likewise. * output.h (end_final, output_operand_lossage, asm_fprintf, named_section, decode_reg_name, make_decl_rtl, user_label_prefix): Likewise. * profile.c (init_branch_prob): Likewise. * toplev.c (set_target_switch, vmessage, v_message_with_file_and_line, v_message_with_decl, v_error_with_file_and_line, v_error_with_decl, v_error_for_asm, verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl, v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl, v_pedwarn_with_file_and_line, vsorry, v_really_sorry, open_dump_file, dump_rtl, clean_dump_file, print_version, print_single_switch, print_switch_values, dump_base_name, debug_args, lang_independent_options, user_label_prefix, documented_lang_options, target_switches, target_options, print_time, pfatal_with_name, fatal_io_error, fatal_insn, default_print_error_function, print_error_function, report_error_function, error_with_file_and_line, error_with_decl, error_for_asm, error, fatal, warning_with_file_and_line, warning_with_decl, warning_for_asm, warning, pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry, really_sorry, botch, output_quoted_string, output_file_directive, open_dump_file, rest_of_decl_compilation, display_help, main): Likewise. * toplev.h (print_time, fatal, fatal_io_error, pfatal_with_name, fatal_insn, warning, error, pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line, error_with_file_and_line, sorry, really_sorry, default_print_error_function, report_error_function, rest_of_decl_compilation, pedwarn_with_decl, warning_with_decl, error_with_decl, error_for_asm, warning_for_asm, output_quoted_string, output_file_directive, botch): Likewise. * tree.h (make_decl_rtl): Likewise. * varasm.c (strip_reg_name, named_section, decode_reg_name, make_decl_rtl): Likewise. From-SVN: r24743
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h75
1 files changed, 45 insertions, 30 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 2f8698e..807fb25 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -28,50 +28,64 @@ struct rtx_def;
extern int count_error PROTO ((int));
extern void strip_off_ending PROTO ((char *, int));
-extern void print_time PROTO ((char *, int));
+extern void print_time PROTO ((const char *, int));
extern void debug_start_source_file PROTO ((char *));
extern void debug_end_source_file PROTO ((unsigned));
extern void debug_define PROTO ((unsigned, char *));
extern void debug_undef PROTO ((unsigned, char *));
-extern void fatal PVPROTO ((char *, ...))
+extern void fatal PVPROTO ((const char *, ...))
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
-extern void fatal_io_error PROTO ((char *)) ATTRIBUTE_NORETURN;
-extern void pfatal_with_name PROTO ((char *)) ATTRIBUTE_NORETURN;
+extern void fatal_io_error PROTO ((const char *))
+ ATTRIBUTE_NORETURN;
+extern void pfatal_with_name PROTO ((const char *))
+ ATTRIBUTE_NORETURN;
extern void fatal_insn_not_found PROTO ((struct rtx_def *))
ATTRIBUTE_NORETURN;
-extern void fatal_insn PROTO ((char *, struct rtx_def *))
+extern void fatal_insn PROTO ((const char *, struct rtx_def *))
ATTRIBUTE_NORETURN;
-extern void warning PVPROTO ((char *, ...))
- ATTRIBUTE_PRINTF_1;
-extern void error PVPROTO ((char *, ...))
+extern void warning PVPROTO ((const char *, ...))
ATTRIBUTE_PRINTF_1;
-extern void pedwarn PVPROTO ((char *, ...))
+extern void error PVPROTO ((const char *, ...))
ATTRIBUTE_PRINTF_1;
-extern void pedwarn_with_file_and_line PVPROTO ((char *, int, char *, ...))
- ATTRIBUTE_PRINTF_3;
-extern void warning_with_file_and_line PVPROTO ((char *, int, char *, ...))
- ATTRIBUTE_PRINTF_3;
-extern void error_with_file_and_line PVPROTO ((char *, int, char *, ...))
- ATTRIBUTE_PRINTF_3;
-extern void sorry PVPROTO ((char *s, ...))
+extern void pedwarn PVPROTO ((const char *, ...))
ATTRIBUTE_PRINTF_1;
-extern void really_sorry PVPROTO((char *s, ...))
+extern void pedwarn_with_file_and_line PVPROTO ((const char *, int,
+ const char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void warning_with_file_and_line PVPROTO ((const char *, int,
+ const char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void error_with_file_and_line PVPROTO ((const char *, int,
+ const char *, ...))
+ ATTRIBUTE_PRINTF_3;
+extern void sorry PVPROTO ((const char *, ...))
+ ATTRIBUTE_PRINTF_1;
+extern void really_sorry PVPROTO((const char *, ...))
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
-extern void default_print_error_function PROTO ((char *));
-extern void report_error_function PROTO ((char *));
+extern void default_print_error_function PROTO ((const char *));
+extern void report_error_function PROTO ((const char *));
-extern void rest_of_decl_compilation PROTO ((union tree_node *, char *, int, int));
+extern void rest_of_decl_compilation PROTO ((union tree_node *,
+ const char *, int, int));
extern void rest_of_type_compilation PROTO ((union tree_node *, int));
extern void rest_of_compilation PROTO ((union tree_node *));
-extern void pedwarn_with_decl PVPROTO ((union tree_node *, char *, ...));
-extern void warning_with_decl PVPROTO ((union tree_node *, char *, ...));
-extern void error_with_decl PVPROTO ((union tree_node *, char *, ...));
+
+/* The *_with_decl functions aren't suitable for ATTRIBUTE_PRINTF. */
+extern void pedwarn_with_decl PVPROTO ((union tree_node *,
+ const char *, ...));
+extern void warning_with_decl PVPROTO ((union tree_node *,
+ const char *, ...));
+extern void error_with_decl PVPROTO ((union tree_node *,
+ const char *, ...));
+
extern void announce_function PROTO ((union tree_node *));
-extern void error_for_asm PVPROTO((struct rtx_def *, char *, ...))
- ATTRIBUTE_PRINTF_2;
-extern void warning_for_asm PVPROTO((struct rtx_def *, char *, ...))
- ATTRIBUTE_PRINTF_2;
+extern void error_for_asm PVPROTO((struct rtx_def *,
+ const char *, ...))
+ ATTRIBUTE_PRINTF_2;
+extern void warning_for_asm PVPROTO((struct rtx_def *,
+ const char *, ...))
+ ATTRIBUTE_PRINTF_2;
#if defined (_JBLEN) || defined (setjmp)
extern void set_float_handler PROTO((jmp_buf));
extern int push_float_handler PROTO((jmp_buf, jmp_buf));
@@ -79,12 +93,13 @@ extern void pop_float_handler PROTO((int, jmp_buf));
#endif
#ifdef BUFSIZ
-extern void output_quoted_string PROTO ((FILE *, char *));
-extern void output_file_directive PROTO ((FILE *, char *));
+extern void output_quoted_string PROTO ((FILE *, const char *));
+extern void output_file_directive PROTO ((FILE *, const char *));
#endif
extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN;
extern void do_abort PROTO ((void)) ATTRIBUTE_NORETURN;
-extern void botch PROTO ((char *)) ATTRIBUTE_NORETURN;
+extern void botch PROTO ((const char *))
+ ATTRIBUTE_NORETURN;
#endif /* __GCC_TOPLEV_H */