This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to move EXTRA_HEADERS settings to config.gcc


This patch makes all targets that install extra headers in libsubdir
set extra_headers in config.gcc; currently some use EXTRA_HEADERS in
t-* files instead.

Bootstrapped with no regressions on i686-pc-linux-gnu.  OK to commit?

2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>

	* config.gcc (ia64-*-*): Set extra_headers.
	(alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
	* config/alpha/t-osf: Remove.
	* config/ia64/t-ia64 (EXTRA_HEADERS): Remove.

diff -ruN gcc.orig/config/alpha/t-osf gcc/config/alpha/t-osf
--- gcc.orig/config/alpha/t-osf	Sat May 19 10:49:00 2001
+++ gcc/config/alpha/t-osf	Thu Jan  1 00:00:00 1970
@@ -1 +0,0 @@
-EXTRA_HEADERS = $(srcdir)/config/alpha/va_list.h
diff -ruN gcc.orig/config/ia64/t-ia64 gcc/config/ia64/t-ia64
--- gcc.orig/config/ia64/t-ia64	Fri Jul  6 07:31:10 2001
+++ gcc/config/ia64/t-ia64	Wed Jan  2 13:26:14 2002
@@ -39,5 +39,4 @@
 crtfastmath.o: $(srcdir)/config/ia64/crtfastmath.c $(GCC_PASSES)
 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtfastmath.o $(srcdir)/config/ia64/crtfastmath.c
 
-EXTRA_HEADERS = $(srcdir)/config/ia64/ia64intrin.h
 LIB2ADDEH = $(srcdir)/config/ia64/unwind-ia64.c $(srcdir)/unwind-sjlj.c
diff -ruN gcc.orig/config.gcc gcc/config.gcc
--- gcc.orig/config.gcc	Sun Dec 23 23:29:51 2001
+++ gcc/config.gcc	Wed Jan  2 13:28:16 2002
@@ -80,7 +80,7 @@
 #			depending on target.
 #
 #  extra_headers	List of used header files from the directory
-#			ginclude.
+#			config/${cpu_type}.
 #
 #  host_xmake_file	List of host-specific makefile-fragments.
 #
@@ -235,6 +235,9 @@
 x86_64-*-*)
 	cpu_type=i386
 	;;
+ia64-*-*)
+	extra_headers=ia64intrin.h
+	;;
 hppa*-*-* | parisc*-*-*)
 	cpu_type=pa
 	;;
@@ -488,7 +491,8 @@
 		extra_passes="mips-tfile mips-tdump"
 	fi
 	use_collect2=yes
-	tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm"
+	tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm"
+	extra_headers=va_list.h
 	case $machine in
 	  *-*-osf1*)
 	    tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]