This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
mknumeric_limits tweek
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Subject: mknumeric_limits tweek
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 14 May 2001 10:16:07 -0700
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."