This is the mail archive of the gcc-patches@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: Function declaration compatibility with old noreturn syntax



On Wednesday, April 30, 2003, at 05:55 PM, Richard Henderson wrote:


On Tue, Apr 29, 2003 at 06:26:52PM -0700, Geoffrey Keating wrote:
+/* { dg-options "-std=gnu99" } */
+/* Check that 'noreturn' and 'volatile extern' are compatible.
+   The testsuite uses -ansi -pedantic-errors by default, so this has
+   to override.  */
+extern void xxx (int) __attribute__((noreturn));
+__volatile extern void xxx (int);

Do we want to preserve this forever? Leaving this for gnu89 only would seem the easiest way out.

We should probably deprecate the whole 'volatile extern' thing, in which case all this can go away eventually. It'll have been a decade in September.


--
Geoff Keating <geoffk@apple.com>


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