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]

mknumeric_limits tweek


We must build gen-num-limits.cc with -fno-exceptions, because the
C++ exception support routines don't exist yet.

I have no idea how we've gotten away with this until now, but just
this morning I got a link error from missing __gxx_personality_v0.

Applied to branch and mainline.


r~


        * mknumeric_limits: Build with -fno-exceptions.

Index: mknumeric_limits
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/mknumeric_limits,v
retrieving revision 1.8.2.3
diff -c -p -d -r1.8.2.3 mknumeric_limits
*** mknumeric_limits	2001/02/23 19:14:48	1.8.2.3
--- mknumeric_limits	2001/05/14 17:11:34
*************** namespace std {
*** 163,172 ****
  
  EOF
  
! echo "$CC -I. $CPPFLAGS -I$BUILD_DIR/include -DHAVE_CONFIG_H \
      -o $BUILD_DIR/src/gen-num-limits $SRC_DIR/src/gen-num-limits.cc"
  
! { $CC -I. $CPPFLAGS -I$BUILD_DIR/include -DHAVE_CONFIG_H \
      -o "$BUILD_DIR/src/gen-num-limits" "$SRC_DIR/src/gen-num-limits.cc"
  } || {
    echo "gen-num-limits failed to build, exiting."
--- 163,174 ----
  
  EOF
  
! # Must turn off exceptions, because the C++ exception handling support
! # routines have not been built yet.
! echo "$CC -I. $CPPFLAGS -I$BUILD_DIR/include -DHAVE_CONFIG_H -fno-exceptions \
      -o $BUILD_DIR/src/gen-num-limits $SRC_DIR/src/gen-num-limits.cc"
  
! { $CC -I. $CPPFLAGS -I$BUILD_DIR/include -DHAVE_CONFIG_H -fno-exceptions \
      -o "$BUILD_DIR/src/gen-num-limits" "$SRC_DIR/src/gen-num-limits.cc"
  } || {
    echo "gen-num-limits failed to build, exiting."


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