This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix NetBSD native bootstrap
- From: Arnaud Lacombe <lacombar at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Arnaud Lacombe <lacombar at gmail dot com>, tech-toolchain at netbsd dot org
- Date: Wed, 8 Dec 2010 22:34:38 -0500
- Subject: [PATCH] Fix NetBSD native bootstrap
Hi folks,
This is a third try to fix trunk native boostrap. PR concerning this issue
are summerized in PR/38182 and PR/43952.
This issue is due to several NetBSD `machine/ansi.h' (i386, amd64, as Ralf
mentionned, but also landisk, hpcsh, dreamcast and evbsh3) not defining the
expected _ANSI_H_ or _MACHINE_ANSI_H_.
For this patch I implemented Joseph S. Myers suggestion to define USER_H in
config/t-netbsd. This may be cleaner than the last patch in PR/38182 which
affect all target. In the mean time, I removed other headers the base system is
providing. stdarg.h is still needed because the host stdarg.h still reference
the old __builtin_stdarg_start(). stdfix.h is missing from the base system, so I
kept it in the include list.
Bootstrapped on i386-unknown-netbsdelf5.99.25, regression tests pending.
2010-12-09 - Arnaud Lacombe <lacombar@gmail.com>
* config/t-netbsd: Set USER_H.
CC: tech-toolchain@netbsd.org
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
gcc/config/t-netbsd | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gcc/config/t-netbsd b/gcc/config/t-netbsd
index 34949e1..fa8744d 100644
--- a/gcc/config/t-netbsd
+++ b/gcc/config/t-netbsd
@@ -1,2 +1,6 @@
# Always build crtstuff with PIC.
CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
+
+# Keep only required include files.
+USER_H = $(srcdir)/ginclude/stdarg.h \
+ $(srcdir)/ginclude/stdfix.h
--
1.7.2.30.gc37d7.dirty