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: Fixup flags for ObjC languages


On Mar 21, 2007, at 11:54 AM, Andrew Pinski wrote:
On 3/21/07, Mike Stump <mrs@apple.com> wrote:
Here is a trivial one to preserve the invariant that all C/C++ flags
apply to the Objective-C languages.

I have an idea of how to make sure this does not need to be done again

When I saw the problem, my first thought was, gosh, this is wrong. I'd love to have a fix.


The fix I was thinking of was inverting the ObjC option and having C imply ObjC unless one added NoObjC. Likewise for C++/ObjC++. This retains the flexibility and improves the odds people would do the right thang.

I can implement this tomorrow or the next day unless someone else
wants to step up to the plate.

I think I'd be happy with the version you want to do as well. There are a couple of places to put the code. Not sure which I think is the right place, yet.



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