tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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

        * config/t-netbsd: Set USER_H.

Signed-off-by: Arnaud Lacombe <>

 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.
+# Keep only required include files.
+USER_H = $(srcdir)/ginclude/stdarg.h \
+        $(srcdir)/ginclude/stdfix.h

Home | Main Index | Thread Index | Old Index