diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2004-08-26 16:42:39 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2004-08-26 16:42:39 +0000 |
commit | 52351a5ebcad6124f4eba5564520871904ab130b (patch) | |
tree | f688fc66e95faa72566b86599ddccfde3695850d | |
parent | 42348101742f1257f76247b577489a7c2b8db31b (diff) | |
download | gcc-52351a5ebcad6124f4eba5564520871904ab130b.zip gcc-52351a5ebcad6124f4eba5564520871904ab130b.tar.gz gcc-52351a5ebcad6124f4eba5564520871904ab130b.tar.bz2 |
re PR target/13506 (tcpsm.c:263: internal compiler error: Segmentation fault)
PR target/13506
* toplev.c (crash_signal): If we crashed while emitting
a user asm, then die more gracefully.
From-SVN: r86624
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/toplev.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e47b407..26ba0c68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-08026 Richard Earnshaw <rearnsha@arm.com> + + PR target/13506 + * toplev.c (crash_signal): If we crashed while emitting + a user asm, then die more gracefully. + 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> PR target/17119. diff --git a/gcc/toplev.c b/gcc/toplev.c index 53f4418..d1b10ac 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -598,6 +598,15 @@ static void crash_signal (int signo) { signal (signo, SIG_DFL); + + /* If we crashed while processing an ASM statement, then be a little more + graceful. It's most likely the user's fault. */ + if (this_is_asm_operands) + { + output_operand_lossage ("unrecoverable error"); + exit (FATAL_EXIT_CODE); + } + internal_error ("%s", strsignal (signo)); } |