aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-05-01 16:57:20 -0400
committerDJ Delorie <dj@gcc.gnu.org>2006-05-01 16:57:20 -0400
commit2d5bc016adb900a9fcbaade5f78eeaf4e0ae494d (patch)
treed7dec8e90275b123a2a3f7d5deb08469c901c1f2 /gcc/vec.c
parent2ce798794df8e1edc87b59e36417e2691a25d579 (diff)
downloadgcc-2d5bc016adb900a9fcbaade5f78eeaf4e0ae494d.zip
gcc-2d5bc016adb900a9fcbaade5f78eeaf4e0ae494d.tar.gz
gcc-2d5bc016adb900a9fcbaade5f78eeaf4e0ae494d.tar.bz2
vec.c: Include bconfig.h when appropriate.
* vec.c: Include bconfig.h when appropriate. * Makefile.in (build/vec.o): Adjust dependencies. * mkconfig.sh: Make sure config.h isn't used for build machine compiles. From-SVN: r113432
Diffstat (limited to 'gcc/vec.c')
-rw-r--r--gcc/vec.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/vec.c b/gcc/vec.c
index b6a1d78..5d56874 100644
--- a/gcc/vec.c
+++ b/gcc/vec.c
@@ -1,5 +1,5 @@
/* Vector API for GNU compiler.
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
Contributed by Nathan Sidwell <nathan@codesourcery.com>
This file is part of GCC.
@@ -19,7 +19,14 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
+/* This file is compiled twice: once for the generator programs
+ once for the compiler. */
+#ifdef GENERATOR_FILE
+#include "bconfig.h"
+#else
#include "config.h"
+#endif
+
#include "system.h"
#include "ggc.h"
#include "vec.h"