Re: gcc __attribute__

2020-08-06 Thread Marek Polacek via Gcc
On Thu, Aug 06, 2020 at 04:15:10PM +0100, Philip R Brenan via Gcc wrote: > Hi *GCC*: > > On page: > > https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html > > you show the attribute coming after the parameter list. But when I try > this, I get the following: That manual is for

gcc __attribute__

2020-08-06 Thread Philip R Brenan via Gcc
Hi *GCC*: On page: https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html you show the attribute coming after the parameter list. But when I try this, I get the following: #include void __attribute__ ((noreturn)) aaa() // OK {exit(0); } void bbb() __attribute__ ((noreturn))