aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-05-19 21:41:03 +0000
committerJeff Law <law@gcc.gnu.org>1998-05-19 15:41:03 -0600
commit40859b41a42a3057f0b219aafe4fac74765c361a (patch)
tree3345732fd7f1f80495eb4b2173c5e61b69cd9c9c /gcc
parentb8887b63230e09737eba0330a02c3149463aec04 (diff)
downloadgcc-40859b41a42a3057f0b219aafe4fac74765c361a.zip
gcc-40859b41a42a3057f0b219aafe4fac74765c361a.tar.gz
gcc-40859b41a42a3057f0b219aafe4fac74765c361a.tar.bz2
Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists.
* Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists. * cross-make (SYSTEM_HEADER_DIR): Now $(tooldir)/sys-include. Bring over from Cygnus sources. From-SVN: r19898
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/Makefile.in11
-rw-r--r--gcc/cross-make3
3 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9635635..aa8aa7f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 19 22:31:20 1998 Jeffrey A Law (law@cygnus.com)
+
+ * Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR)
+ exists.
+ * cross-make (SYSTEM_HEADER_DIR): Now $(tooldir)/sys-include.
+
Tue May 19 19:08:52 1998 Jim Wilson <wilson@cygnus.com>
* config/mips/mips.c (double_memory_operand): Accept any MEM during
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 9cfac12..5f92f4d 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2026,10 +2026,15 @@ stmp-fixinc: $(FIXINCLUDES) gsyslimits.h
# Files related to the fixproto script.
deduced.h: $(GCC_PASSES) $(srcdir)/scan-types.sh stmp-int-hdrs
- CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
+ if [ -d $(SYSTEM_HEADER_DIR) ]; \
+ then \
+ CC="$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) -I. -I$(srcdir) -Iinclude -I${SYSTEM_HEADER_DIR}"; \
export CC; \
- $(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h
- mv tmp-deduced.h deduced.h
+ $(SHELL) $(srcdir)/scan-types.sh "$(srcdir)" >tmp-deduced.h; \
+ mv tmp-deduced.h deduced.h; \
+ else \
+ touch deduced.h; \
+ fi
gen-protos: gen-protos.o scan.o cppalloc.o $(HOST_LIBDEPS)
${HOST_CC} $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
diff --git a/gcc/cross-make b/gcc/cross-make
index 5e5a93f..810f505 100644
--- a/gcc/cross-make
+++ b/gcc/cross-make
@@ -12,7 +12,8 @@ RANLIB = $(RANLIB_FOR_TARGET)
RANLIB_TEST = $(RANLIB_TEST_FOR_TARGET)
# Dir to search for system headers. Normally /usr/include.
-SYSTEM_HEADER_DIR = $(tooldir)/include
+# Use CROSS_INCLUDE_DIR not TOOL_INCLUDE_DIR for other vendor's headers.
+SYSTEM_HEADER_DIR = $(tooldir)/sys-include
# Don't try to compile the things we can't compile.
ALL = all.cross