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]

[GCC 3.0] Repair OpenBSD bootstrap


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


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