diff options
| author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 01:52:06 +0000 |
|---|---|---|
| committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 01:52:06 +0000 |
| commit | 585fefa7d1d19ecbf1ecb8bb95c8389f75e9db22 (patch) | |
| tree | abdaf41f0f38c6295e79aa7477590f9912174dce | |
| parent | fd49c6557f1da4736e4fc8d63089f9b3cca2aadf (diff) | |
| download | ppe42-gcc-585fefa7d1d19ecbf1ecb8bb95c8389f75e9db22.tar.gz ppe42-gcc-585fefa7d1d19ecbf1ecb8bb95c8389f75e9db22.zip | |
* config/rs6000/host-darwin.c (segv_handler): When -dH is used,
call abort() after running out of stack space.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66282 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/config/rs6000/host-darwin.c | 4 | ||||
| -rw-r--r-- | gcc/config/rs6000/x-darwin | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b4d998f80a..a5604c11c86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index 886f2b443dd..8b4eed22afb 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -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); } diff --git a/gcc/config/rs6000/x-darwin b/gcc/config/rs6000/x-darwin index 6738d45b13b..f7242a7ee5b 100644 --- a/gcc/config/rs6000/x-darwin +++ b/gcc/config/rs6000/x-darwin @@ -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 |

