[PATCH 4/N] Do not ICE on an invalid input for MV.

Martin Liška mliska@suse.cz
Tue Mar 14 10:24:00 GMT 2017


This fixes ICE when one does not provide valid target names:

In that situation I suggest to print:

$ ./xgcc -B. /tmp/mvc-ice.c
/tmp/mvc-ice.c:6:1: error: attribute(target("foo")) is unknown
 foo ()
/tmp/mvc-ice.c:6:1: error: attribute(target("bar")) is unknown
/tmp/mvc-ice.c: In function ‘foo.resolver’:
cc1: fatal error: At least one more version other than the default is expected

Should I add a test-case for a fatal error?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-ICE-on-an-invalid-input-for-MV.patch
Type: text/x-patch
Size: 1076 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170314/e6f884e3/attachment.bin>

More information about the Gcc-patches mailing list