From 85fda1eb7d27264508c77b226271b63bf2146967 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 19 Dec 1998 07:04:42 +0000 Subject: genattr.c (fatal): Qualify a char* with the `const' keyword. * genattr.c (fatal): Qualify a char* with the `const' keyword. * genattrtab.c (fatal, attr_printf, attr_string, write_attr_set, write_unit_name, write_eligible_delay, expand_units, make_length_attrs, write_attr_case, find_attr, make_internal_attr): Likewise. * gencheck.c (tree_codes): Likewise. * gencodes.c (fatal): Likewise. * genconfig.c (fatal): Likewise. * genemit.c (fatal): Likewise. * genextract.c (fatal, walk_rtx, copystr): Likewise. * genflags.c (fatal): Likewise. * genopinit.c (fatal, optabs, gen_insn): Likewise. * genoutput.c (fatal, error, predicates): Likewise. * genpeep.c (fatal): Likewise. * genrecog.c (fatal, decision, pred_table, add_to_sequence, write_tree_1, write_tree, change_state, copystr, indents): Likewise. From-SVN: r24377 --- gcc/genemit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/genemit.c') diff --git a/gcc/genemit.c b/gcc/genemit.c index 7e556235c1a..81eefa96cbc 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -30,7 +30,7 @@ struct obstack *rtl_obstack = &obstack; #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free -static void fatal PVPROTO ((char *, ...)) +static void fatal PVPROTO ((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; void fancy_abort PROTO((void)) ATTRIBUTE_NORETURN; @@ -702,17 +702,17 @@ xrealloc (ptr, size) } static void -fatal VPROTO ((char *format, ...)) +fatal VPROTO ((const char *format, ...)) { #ifndef ANSI_PROTOTYPES - char *format; + const char *format; #endif va_list ap; VA_START (ap, format); #ifndef ANSI_PROTOTYPES - format = va_arg (ap, char *); + format = va_arg (ap, const char *); #endif fprintf (stderr, "genemit: "); -- cgit v1.2.1