host-darwin.c (segv_handler): When -dH is used, call abort() after running out of...
authorGeoffrey Keating <geoffk@apple.com>
Wed, 30 Apr 2003 01:52:06 +0000 (01:52 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 30 Apr 2003 01:52:06 +0000 (01:52 +0000)
* config/rs6000/host-darwin.c (segv_handler): When -dH is used,
call abort() after running out of stack space.

From-SVN: r66282

gcc/ChangeLog
gcc/config/rs6000/host-darwin.c
gcc/config/rs6000/x-darwin

index 3b4d998f80accb68be28e93de3eae880745fd905..a5604c11c8600145e20ae538498b58045317eb86 100644 (file)
@@ -1,5 +1,8 @@
 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
 
+       * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
+       call abort() after running out of stack space.
+
        * c-typeck.c (function_types_compatible_p): Ignore incompatible
        'volatile' qualifiers on a function's return type in GNU mode.
 
index 886f2b443dd707f7e27a35d7b65f642652d84055..8b4eed22afbfd5e5068bd460a35e77fa41c67dfa 100644 (file)
@@ -26,6 +26,7 @@
 #include "hosthooks.h"
 #include "hosthooks-def.h"
 #include "toplev.h"
+#include "diagnostic.h"
 
 static void segv_crash_handler PARAMS ((int));
 static void segv_handler PARAMS ((int, siginfo_t *, void *));
@@ -105,6 +106,9 @@ segv_handler (sig, sip, scp)
              }
        }
       
+      if (global_dc->abort_on_error)
+       abort ();
+
       exit (FATAL_EXIT_CODE);
     }
 
index 6738d45b13b50c5410ee6a4d54d132f8b9329cf4..f7242a7ee5b3693e2af1446cd4084c27fd476baf 100644 (file)
@@ -1,4 +1,4 @@
 host-darwin.o : $(srcdir)/config/rs6000/host-darwin.c $(CONFIG_H) $(SYSTEM_H) \
-  coretypes.h hosthooks.h hosthooks-def.h toplev.h
+  coretypes.h hosthooks.h hosthooks-def.h toplev.h diagnostic.h
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                $(srcdir)/config/rs6000/host-darwin.c