diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-12-10 22:52:49 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-12-10 22:52:49 +0000 |
commit | bc89d393b878e3eb7aeddc320b0a67ea1505e841 (patch) | |
tree | 91ab60070ddb938297b8766a65bcec1f09adeaa5 /gcc/enquire.c | |
parent | 22e350f412b7ef062181024afb3f6d05974759b5 (diff) | |
download | gcc-bc89d393b878e3eb7aeddc320b0a67ea1505e841.tar.gz |
(i_define, u_define, f_define): Add #undef before #define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/enquire.c')
-rw-r--r-- | gcc/enquire.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/enquire.c b/gcc/enquire.c index 8e9c92425c5..808bb96bb07 100644 --- a/gcc/enquire.c +++ b/gcc/enquire.c @@ -19,6 +19,7 @@ Include sys/types.h before signal.h, Apr 92. Support NO_LONG_DOUBLE_IO in f_define and f_rep; new fn fake_f_rep, Apr 92. Enclose -f output in #ifndef _FLOAT_H___, Richard Stallman, May 92. + Add #undef before every #define, Jim Wilson, Dec 92. COMPILING With luck and a following wind, just the following will work: @@ -780,6 +781,7 @@ Procedure i_define(desc, extra, sort, name, val, lim, req, mark) char *desc, *extra, *sort, *name; long val, lim, req; char *mark; { /* Produce a #define for a signed int type */ describe(desc, extra); + printf("#undef %s%s\n", sort, name); if (val >= 0) { printf("#define %s%s %ld%s\n", sort, name, val, mark); } else if (val + lim < 0) { @@ -807,6 +809,7 @@ Procedure u_define(desc, extra, sort, name, val, req, mark) char *desc, *extra, *sort, *name; unsigned long val, req; char *mark; { /* Produce a #define for an unsigned value */ describe(desc, extra); + printf("#undef %s%s\n", sort, name); printf("#define %s%s %lu%s%s\n", sort, name, val, U, mark); if (val != req) { printf("%s*** Verify failed for above #define!\n", co); @@ -821,6 +824,7 @@ Procedure f_define(desc, extra, sort, name, precision, val, mark) Long_double val; char *mark; { /* Produce a #define for a float/double/long double */ describe(desc, extra); + printf ("#undef %s%s\n", sort, name); if (stdc) { #ifdef NO_LONG_DOUBLE_IO static int union_defined = 0; |