This is the mail archive of the gcc@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: C constant expressions proposals


Matt Austern wrote:

In particular, users don't necessarily agree. Dunno about other organizations, but Apple regularly receives bug reports from users who don't understand why they get a different set of warnings if they change the optimization level. I've never heard of a user who thinks of this as a desirable feature.

Of course it's not the most desirable, but really there are three alternatives.

Optimization has no effect, you don't get complete warnings
Optimization has no effect, you do get complete warnings
You only get complete warnings with optimization on.

Sure, given this choice, everyone prefers 2, but unfortunately
2 is not feasible, so the real choice is between 1 and 3, and
I have never encountered a user who prefers 1 (indeed you can
achieve 1 easily if you like by just turning off the comprehensive
warnings, e.g. in gnat, use -gnatwa, but not -Wall.


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