C constant expressions proposals

Robert Dewar dewar@gnat.com
Wed Aug 18 20:22:00 GMT 2004


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.



More information about the Gcc mailing list