diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-07 04:00:53 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-07 04:00:53 +0000 |
| commit | c69769b8a479d59aa8b4cc5fbd6f50b821870a2e (patch) | |
| tree | fd51d97178611aa2e8b69107fb1ba65b391d8088 | |
| parent | dee42e480a851521a10ee75b2ba18fbc823642ff (diff) | |
| download | ppe42-gcc-c69769b8a479d59aa8b4cc5fbd6f50b821870a2e.tar.gz ppe42-gcc-c69769b8a479d59aa8b4cc5fbd6f50b821870a2e.zip | |
* fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.
* fixinc/gnu-regex.c: Don't include auto-host.h since we get
config.h now. Include libiberty.h to handle alloca.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40283 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/fixinc/Makefile.in | 2 | ||||
| -rw-r--r-- | gcc/fixinc/gnu-regex.c | 9 |
3 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bacb88dbf39..ae6dbebfb9e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H. + + * fixinc/gnu-regex.c: Don't include auto-host.h since we get + config.h now. Include libiberty.h to handle alloca. + 2001-03-06 Zack Weinberg <zackw@stanford.edu> * c-parse.in (yylexname): New function, split out of _yylex. diff --git a/gcc/fixinc/Makefile.in b/gcc/fixinc/Makefile.in index 88f615da36e..6557595a7d7 100644 --- a/gcc/fixinc/Makefile.in +++ b/gcc/fixinc/Makefile.in @@ -23,7 +23,7 @@ # Its purpose is to build the any-platforms fixinc.sh script. FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS) -FIXINC_DEFS = -DIN_GCC $(FL_LIST) $(INCLUDES) +FIXINC_DEFS = -DIN_GCC -DHAVE_CONFIG_H $(FL_LIST) $(INCLUDES) # Directory where sources are, from where we are. srcdir = @srcdir@ diff --git a/gcc/fixinc/gnu-regex.c b/gcc/fixinc/gnu-regex.c index a6ebd96e832..99786e2d49d 100644 --- a/gcc/fixinc/gnu-regex.c +++ b/gcc/fixinc/gnu-regex.c @@ -22,10 +22,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "auto-host.h" -/* GCC LOCAL: we don't need NLS here. */ -#undef ENABLE_NLS - #undef _GNU_SOURCE #define _GNU_SOURCE @@ -33,6 +29,11 @@ # include <config.h> #endif +/* GCC LOCAL: we don't need NLS here. */ +#undef ENABLE_NLS +/* GCC LOCAL: to handle defining alloca. */ +#include "libiberty.h" + /* Do not use a C alloca, we will leak memory and crash. */ #ifdef C_ALLOCA # define REGEX_MALLOC |

