diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-01-18 08:53:41 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-01-18 08:53:41 +0000 |
commit | 87e11268b6574b6002b6a8b9ba28531e4173273e (patch) | |
tree | da93e20e14614c525df0a055e8e04e6c1e3306ba /gcc/output.h | |
parent | 6b106e7db721422dc10e5efed084ffb146a1257e (diff) | |
download | gcc-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/output.h')
-rw-r--r-- | gcc/output.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/output.h b/gcc/output.h index 376f2d9..d677c01 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -1,6 +1,6 @@ /* Declarations for insn-output.c. These functions are defined in recog.c, final.c, and varasm.c. - Copyright (C) 1987, 1991, 1994, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1987, 1991, 1994, 97-98, 1999 Free Software Foundation, Inc. This file is part of GNU CC. @@ -24,7 +24,7 @@ extern void init_final PROTO((char *)); /* Called at end of source file, to output the block-profiling table for this entire compilation. */ -extern void end_final PROTO((char *)); +extern void end_final PROTO((const char *)); /* Enable APP processing of subsequent output. Used before the output from an `asm' statement. */ @@ -77,7 +77,7 @@ extern rtx alter_subreg PROTO((rtx)); /* Report inconsistency between the assembler template and the operands. In an `asm', it's the user's fault; otherwise, the compiler's fault. */ -extern void output_operand_lossage PROTO((char *)); +extern void output_operand_lossage PROTO((const char *)); /* Output a string of assembler code, substituting insn operands. Defined in final.c. */ @@ -106,7 +106,7 @@ extern void output_addr_const PROTO((FILE *, rtx)); /* Output a string of assembler code, substituting numbers, strings and fixed syntactic prefixes. */ -extern void asm_fprintf PROTO(PVPROTO((FILE *file, char *p, ...))); +extern void asm_fprintf PVPROTO((FILE *file, const char *p, ...)); /* Split up a CONST_DOUBLE or integer constant rtx into two rtx's for single words. */ @@ -161,7 +161,7 @@ extern void eh_frame_section PROTO ((void)); If DECL is NULL, just switch to section NAME. If NAME is NULL, get the name from DECL. If RELOC is 1, the initializer for DECL contains relocs. */ -extern void named_section PROTO((tree, char *, int)); +extern void named_section PROTO((tree, const char *, int)); /* Tell assembler to switch to the section for function DECL. */ extern void function_section PROTO((tree)); @@ -188,7 +188,7 @@ extern void weak_finish PROTO ((void)); or -4 if ASMSPEC is `memory' and is not recognized. Accept an exact spelling or a decimal number. Prefixes such as % are optional. */ -extern int decode_reg_name PROTO((char *)); +extern int decode_reg_name PROTO((const char *)); #ifdef TREE_CODE /* Create the DECL_RTL for a declaration for a static or external variable @@ -198,7 +198,7 @@ extern int decode_reg_name PROTO((char *)); TOP_LEVEL is nonzero if this is a file-scope variable. This is never called for PARM_DECL nodes. */ -extern void make_decl_rtl PROTO((tree, char *, int)); +extern void make_decl_rtl PROTO((tree, const char *, int)); /* Make the rtl for variable VAR be volatile. Use this only for static variables. */ @@ -487,4 +487,4 @@ extern FILE *rtl_dump_file; && ! (RELOC && (flag_pic || DECL_ONE_ONLY (DECL)))) /* User label prefix in effect for this compilation. */ -extern char *user_label_prefix; +extern const char *user_label_prefix; |