problems compiling 4.7, with Solaris cc and/or Solaris CC (C++)
Václav Zeman
vhaisman@gmail.com
Sun Feb 10 08:50:00 GMT 2013
On 02/10/2013 12:49 AM, Jay K wrote:
> problems compiling 4.7, with Solaris cc and/or Solaris CC (C++)
> [...]
>
> 2) given:
>
> int foo()
> {
> gcc_unreachable();
> }
>
>
> Solaris cc/CC gives a warning or maybe an error.
> It should be:
>
>
> int foo(void)
> {
> gcc_unreachable();
> return 0;
> }
I think that this might be possible to be silenced by #pragma
does_not_return(gcc_unreachable), at least according to
<http://docs.oracle.com/cd/E24457_01/html/E21991/bkbjx.html#bkbka>
> [...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20130210/97c210b4/attachment.sig>
More information about the Gcc
mailing list