This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Handling of extern inline in c99 mode
- From: Ian Lance Taylor <iant at google dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: stevenb dot gcc at gmail dot com (Steven Bosscher), paolo dot bonzini at lu dot unisi dot ch (Paolo Bonzini), gcc at gcc dot gnu dot org (GCC Development)
- Date: 01 Nov 2006 14:52:28 -0800
- Subject: Re: Handling of extern inline in c99 mode
- References: <200611012252.kA1MqSrR019707@localhost.localdomain>
Andrew Pinski <pinskia@physics.uc.edu> writes:
> In the 4.3 timeframe, can we also add a flag to enable the correct behavior?
> Yes the problem with this is that we have to support this flag for a long time
> but the benifit is that we can change the default to the new way with just flipping
> a switch.
Sure, that makes sense.
> Also it would be nice to have an attribute or a new keyword to get
> the old "extern inline" behavior, something like
> __extern_but_inline? Or is there a real equavilant with C99 style
> inling (I have not followed this part close enough to figure that
> out).
Yes, that was part of Zack's proposal--item number 1.
There is no equivalent to gcc's "extern inline" in C99, nor is there
any equivalent attribute.
Ian