DragonFly BSD
DragonFly submit List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Patch to execve


From: Bill Hacker <wbh@xxxxxxxxxxxxx>
Date: Sun, 27 Feb 2005 15:33:19 +0800

Kevin M. Kilbride wrote:

Kevin M. Kilbride wrote:

Secondly, it not only warns about _stripping_ qualifiers, but, in direct violation of the standard, it also warns about the explicitly-permitted conversion of an unqualified pointer to a qualified one.



Actually, in playing with this further, I can see that it is the base GCC compiler that emits this warning, not the -Wcast-qual option. This is much worse. The warning cannot be suppressed, even though it is warning about obviously permitted behavior.

I apreciate your thorough research, but do not see this as a 'show stopper'.


Imperfect, yes. Inconsistent, yes.

In need of correction - 'probably', but not necessarily 'absolutely'.

Might it not be useful to have an bit of attention drawn to a conversion that is permitted - but may not have been done *correctly* - potentially 'questionable' IOW?

Not that omnisciance is built into *any* compiler, or there would be no Siamese twins.

Even if the GNU people fix it, all existing versions of the compiler will complain about it, crippling the warnings facility and necessitating dependence upon bugged behavior of their -Wcast-qual option to get code to compile warnings-free. Really bad. Ironically, g++ does not suffer from this problem.


Side question, but does anyone have access to the commercial Intel 8.X compiler, can it compile the DragonFlyBSD sources, and what, just for comparison, does it do about issues of this sort?


- Not suggesting political change - just curious as to how well gcc compares to 'commercial' practice these days.

Bill Hacker



-sigh-




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]