aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixfixes.c
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2000-02-04 21:42:00 +0000
committerBruce Korb <korbb@gcc.gnu.org>2000-02-04 21:42:00 +0000
commitbff0dc38c2f7a20945942c52039866a82572e5ef (patch)
tree8f81e15524ec14490e37b27653b87e0a00573278 /gcc/fixinc/fixfixes.c
parent1c71e60ef78d26b2146bdcf45f2177722ec1ff30 (diff)
downloadgcc-bff0dc38c2f7a20945942c52039866a82572e5ef.zip
gcc-bff0dc38c2f7a20945942c52039866a82572e5ef.tar.gz
gcc-bff0dc38c2f7a20945942c52039866a82572e5ef.tar.bz2
genfixes (machname.h): Move the functionality from gen-machine.h into this file.
2000-02-04 Bruce Korb <bkorb@gnu.org> * fixinc/genfixes(machname.h): Move the functionality from gen-machine.h into this file. UNdef MN_NAME_PAT if there are no names to change. Also, be a little kinder when AutoGen is not present. * fixinc/Makefile.in(machname.h): Change the generation rule to use genfixes. * fixinc/fixfixes.c(machine_name): machine_name_fix's functionality now dependent upon whether MN_NAME_PAT is defined. * fixinc/fixtests.c(machine_name): ditto. * fixinc/fixlib.c(mn_get_regexps): conditional on definition of MN_NAME_PAT. * fixinc/fixlib.h(mn_get_regexps): ditto * fixinc/gen-machine.h: DELETED From-SVN: r31793
Diffstat (limited to 'gcc/fixinc/fixfixes.c')
-rw-r--r--gcc/fixinc/fixfixes.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c
index c665b75..7f481eb 100644
--- a/gcc/fixinc/fixfixes.c
+++ b/gcc/fixinc/fixfixes.c
@@ -560,16 +560,16 @@ FIX_PROC_HEAD( CTRL_defn_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];
char *line, *base, *limit, *p, *q;
regex_t *label_re, *name_re;
char scratch[SCRATCHSZ];
size_t len;
- if (mn_get_regexps (&label_re, &name_re, "machine_name_fix"))
- /* This platform doesn't need this fix. We can only get here if
- someone is running fixfixes by hand, but let's be polite. */
- goto done;
+ mn_get_regexps (&label_re, &name_re, "machine_name_fix");
scratch[0] = '_';
scratch[1] = '_';
@@ -647,6 +647,7 @@ FIX_PROC_HEAD( machine_name_fix )
}
}
done:
+#endif
fputs (text, stdout);
}