Alloca documentation

2020-08-24 Thread Philip R Brenan via Gcc
Hi *GCC*: Given the example for *alloca*() at: https://www.gnu.org/software/libc/manual/html_mono/libc.html#Alloca-Example May I recommend that the code below portrays the use of alloca() more completely in that it demonstrates that it is exiting the containing function, not the {} of the first

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))

Ellipsis in varadic macro definitions

2020-08-02 Thread Philip R Brenan via Gcc
Hi *GCC*: On page: https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros you say: #define eprintf(args…) fprintf (stderr, args) but do you in fact mean: #define eprintf(args...) fprintf (stderr, args) The first variant produces: error: expected ',' or ')', found "…" the