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 arch-specific headers from gcc/ginclude to gcc/config


Some of the additional headers installed in libsubdir on particular
targets are currently in gcc/ginclude, some in gcc/config.  This patch
moves them all into gcc/config, so that gcc/ginclude only contains the
standard C headers for freestanding implementations and varargs.h.

Bootstrapped with no regressions on i686-pc-linux-gnu.  Cross-tested
with no regressions to powerpc-eabisim.  OK to commit?

2001-12-29  Joseph S. Myers  <jsm28@cam.ac.uk>

	* configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
	${srcdir}/ginclude/ to every entry in extra_headers.
	* configure: Regenerate.
	* ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
	* ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
	* ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
	* ginclude/proto.h: Rename to config/convex/proto.h.

[Diffs for actually moving the files and to generated files omitted below.]
diff -ruN gcc.orig/configure.in gcc/configure.in
--- gcc.orig/configure.in	Mon Dec 24 18:15:16 2001
+++ gcc/configure.in	Fri Dec 28 18:10:51 2001
@@ -1136,10 +1136,10 @@
 if test "x$extra_headers" = x
 then true
 else
-	# Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
+	# Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
 	for file in $extra_headers;
 	do
-		extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
+		extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
 	done
 fi
 

-- 
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]