RFC handle crashes during output of user 'asm' more gracefully

Richard Earnshaw rearnsha@gcc.gnu.org
Wed Aug 25 18:17:00 GMT 2004


This idea came to me after I'd closed PR 13506 as a WONTFIX.  Currently,
if the user writes a completely bogus output pattern in an ASM statement
the compiler can get confused in a whole host of places and may end up
segfaulting or otherwise.

It occurs to me that we don't really have to report this as an internal
error, instead we can at least give the poor user some idea that it's
most likely their fault.

Does anybody think the following is wrong approach?

R.

2004-08-25  Richard Earnshaw  <rearnsha@arm.com>

	* toplev.c (crash_signal): If we crashed while emitting
	a user asm, then die more gracefully.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: badasm.patch
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040825/835752cb/attachment.bin>


More information about the Gcc-patches mailing list