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: [RFA] Remove obsolete / deprecated cruft


Neil Booth wrote:

This removes various switches that have been deprecated for more than
a while.  Stan, I take it you're OK with the #pragma once?

Unfortunately, we still need it, not only for some parts of Apple
system software that haven't seen the light, but also as part of
being more compatible with CodeWarrior (moving from CW to GCC
throwing up plenty of obstacles already).  In fact, we have to
un-deprecate #pragma once in Apple's GCC, due to, shall we say,
"encouragement" from our developers. :-)

Of course, there's always the approach of dropping it from FSF
GCC and making it be Apple-only.  I don't have strong feelings
either way - Apple is forced to support some legacy stuff
for a long time, but FSF doesn't have to be so constrained, and
you can't push people to get them to fix up their old code
without, well, pushing them...

Another way to look at it is that Googling '"pragma once" 2002'
turns up 6000 refs, not exactly a dead and forgotten construct.

Note that
#import hasn't changed (I'm inclined to un-deprecate it to be honest,
in view of its pervasiveness in Obj-C land.)

But that would take away one of the selling points for Apple GCC
over FSF GCC! :-)

Seriously though, I'm inclined to leave it deprecated in FSF GCC,
just to act as a gentle encouragement to use include guards.

Stan




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