-fstack-check generates non-working code for at least a few compilers
authorElliot Lee <sopwith@src.gnome.org>
Tue, 15 Dec 1998 21:16:24 +0000 (21:16 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Tue, 15 Dec 1998 21:16:24 +0000 (21:16 +0000)
-fstack-check generates non-working code for at least a few compilers
(egcs 1.1 included) and the benefits are dubious (your program is going to
crash anyways if you run out of stack) so comment that out for now.

configure.in

index 71b671c90188aa48ca6039aabcd2ea5a84013437..d2ad3e556179d90eb0ef7b93caa43ec915294973 100644 (file)
@@ -660,17 +660,17 @@ if test x"$have_threads" != xnone; then
                AC_MSG_WARN($FLAG_DOES_NOT_WORK))
        CPPFLAGS=$old_CPPFLAGS
                 
-       if test x"$GCC" = xyes; then    
-               # older gcc's do not know the -fstack-check option and will
-               # stop compiling, so just check this here 
-               old_CPPFLAGS="$CPPFLAGS"
-               CPPFLAGS="$CPPFLAGS -fstack-check"
-               AC_TRY_COMPILE(,,
-                       G_THREAD_CFLAGS="$G_THREAD_CFLAGS -fstack-check")
-               CPPFLAGS=$old_CPPFLAGS
-       else
-               AC_MSG_WARN($THREAD_UNKNOWN_COMPILER)
-       fi
+#      if test x"$GCC" = xyes; then    
+#              # older gcc's do not know the -fstack-check option and will
+#              # stop compiling, so just check this here 
+#              old_CPPFLAGS="$CPPFLAGS"
+#              CPPFLAGS="$CPPFLAGS -fstack-check"
+#              AC_TRY_COMPILE(,,
+#                      G_THREAD_CFLAGS="$G_THREAD_CFLAGS -fstack-check")
+#              CPPFLAGS=$old_CPPFLAGS
+#      else
+#              AC_MSG_WARN($THREAD_UNKNOWN_COMPILER)
+#      fi
 
        AC_MSG_CHECKING(necessary compiler options)