[PATCH] Fix ICE with -fno-sso-struct=none (PR driver/78957)

Eric Botcazou ebotcazou@adacore.com
Thu Jan 5 19:54:00 GMT 2017


> In this case there is no -fsso-struct option (what would it mean), so
> -fno-sso-struct isn't there either (again, what would that mean).
> The only thing that would make sense IMHO would be to allow
> not just big-endian and little-endian, but also native, so one can
> cancel earlier -fsso-struct= like
> gcc ... -fsso-struct=little-endian ... -fsso-struct=native ...
> and have it act as if neither of those options appeared.

That makes sense and is immediate since the logic is already based on the 
native endianness of the target.

Tested on x86-64_suse-linux, OK for the mainline?


2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>

	* c-family/c.opt (fsso-struct): Add 'native' value.
	* doc/invoke.texi (C Dialect Options): Document it.


2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/sso-10.c: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 1840 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170105/c91534d7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sso-10.c
Type: text/x-csrc
Size: 576 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170105/c91534d7/attachment-0001.bin>


More information about the Gcc-patches mailing list