This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems compiling 4.7, with Solaris cc and/or Solaris CC (C++)


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>

> [...]



Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]