diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2004-08-30 13:32:57 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2004-08-30 13:32:57 +0000 |
commit | 89b8abbf7d1d832e0597def81e243e47fc662cee (patch) | |
tree | 46be915f501e15ade713cd78a6d183f24dbe2920 /gcc/fixinc/fixfixes.c | |
parent | fc6633e0cf54d9d3a5f57ce6e33dfd1af8a5ac81 (diff) | |
download | gcc-89b8abbf7d1d832e0597def81e243e47fc662cee.zip gcc-89b8abbf7d1d832e0597def81e243e47fc662cee.tar.gz gcc-89b8abbf7d1d832e0597def81e243e47fc662cee.tar.bz2 |
Makefile.in (machname.h): Remove.
2004-08-30 Paolo Bonzini <bonzini@gnu.org>
* fixinc/Makefile.in (machname.h): Remove.
(fixincl.x): Do not pass $@ to genfixes.
* fixinc/genfixes: Remove code to produce machname.h.
* fixinc/fixincl.sh: Move it here instead.
* fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
return a bool indicating whether pz_mn_name_pat is NULL.
* fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
Declare extern C variables for the ENV_TABLE.
* fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
instead use the result of mn_get_regexps.
* fixinc/fixtests.c: Likewise.
From-SVN: r86771
Diffstat (limited to 'gcc/fixinc/fixfixes.c')
-rw-r--r-- | gcc/fixinc/fixfixes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c index a8901ff..19fa27e 100644 --- a/gcc/fixinc/fixfixes.c +++ b/gcc/fixinc/fixfixes.c @@ -488,9 +488,6 @@ FIX_PROC_HEAD( char_macro_def_fix ) FIX_PROC_HEAD( machine_name_fix ) { -#ifndef MN_NAME_PAT - fputs( "The target machine has no needed machine name fixes\n", stderr ); -#else regmatch_t match[2]; const char *line, *base, *limit, *p, *q; regex_t *label_re, *name_re; @@ -499,7 +496,11 @@ FIX_PROC_HEAD( machine_name_fix ) IGNORE_ARG(filname); IGNORE_ARG(p_fixd); - mn_get_regexps (&label_re, &name_re, "machine_name_fix"); + if (!mn_get_regexps (&label_re, &name_re, "machine_name_fix")) + { + fputs( "The target machine has no needed machine name fixes\n", stderr ); + goto done; + } scratch[0] = '_'; scratch[1] = '_'; @@ -577,7 +578,6 @@ FIX_PROC_HEAD( machine_name_fix ) } } done: -#endif fputs (text, stdout); } |