summaryrefslogtreecommitdiff
path: root/gcc/genconfig.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-19 07:04:42 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-19 07:04:42 +0000
commit79e61f879fb061c97468fd50737d8dfcb82291a2 (patch)
tree0c9ae63b2016c0b36f1c1af0310177677a194b1b /gcc/genconfig.c
parent727119aa55bac83714f8cc3e254343964cb3a216 (diff)
downloadgcc-79e61f879fb061c97468fd50737d8dfcb82291a2.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genconfig.c')
-rw-r--r--gcc/genconfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index 086462fd31f..6a72e263da0 100644
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -49,7 +49,7 @@ static int max_insns_per_split = 1;
static int clobbers_seen_this_insn;
static int dup_operands_seen_this_insn;
-static void fatal PVPROTO ((char *, ...))
+static void fatal PVPROTO ((const char *, ...))
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
void fancy_abort PROTO((void)) ATTRIBUTE_NORETURN;
@@ -268,17 +268,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, "genconfig: ");