This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[GCC 3.0] Repair OpenBSD bootstrap
- To: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: [GCC 3.0] Repair OpenBSD bootstrap
- From: Marc Espie <espie at schutzenberger dot liafa dot jussieu dot fr>
- Date: Wed, 4 Jul 2001 15:47:01 +0200
- Cc: mark at codesourcery dot com
- Reply-To: Marc dot Espie at liafa dot jussieu dot fr
Mea culpa. Sorry about this. After Gaby approved it,
I plain didn't have time to commit this patch
to the gcc repository because of external circumstances, and now it
prevents bootstrap on OpenBSD.
Is it okay to commit this to the 3.0 branch (and to HEAD) ?
Otherwise, OpenBSD plain fails to bootstrap at all.
Right now, I'm finally trying to demangle libtool hell wrt libstdc++...
2001-07-04 Marc Espie <espie@openbsd.org>
* configure.in: Check for sys/types.h.
* configure: Rebuild.
* libmath/mathconf.h: Include sys/types.h prior to
machine/endian.h if available.
*** libstdc++-v3/configure.in.orig Thu Jun 14 10:47:35 2001
--- libstdc++-v3/configure.in Wed Jul 4 15:38:08 2001
***************
*** 204,210 ****
# Check for available headers.
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
! machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h])
GLIBCPP_CHECK_COMPILER_FEATURES
GLIBCPP_CHECK_LINKER_FEATURES
--- 204,210 ----
# Check for available headers.
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
! machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h gconv.h])
GLIBCPP_CHECK_COMPILER_FEATURES
GLIBCPP_CHECK_LINKER_FEATURES
*** libstdc++-v3/libmath/mathconf.h.orig Sun Feb 25 10:25:42 2001
--- libstdc++-v3/libmath/mathconf.h Wed Jul 4 15:38:08 2001
***************
*** 34,39 ****
--- 34,42 ----
# include <endian.h>
#else
# ifdef _GLIBCPP_HAVE_MACHINE_ENDIAN_H
+ # ifdef _GLIBCPP_HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ # endif
# include <machine/endian.h>
# else
# ifdef _GLIBCPP_HAVE_SYS_MACHINE_H