Mini-patch for cccp.c
Jeffrey A Law
law@cygnus.com
Mon Oct 6 16:30:00 GMT 1997
In message < 199710010943.KAA04765@mvmap66.ciw.uni-karlsruhe.de >you write:
> The reason is clear: sizeof(res) is 8 because of padding, and 'return res'
> copies 8 bytes onto the caller's stack in two 4-byte words. checkergcc,
> which only manipulates the assembler, has no way of knowing that the three
> extra bytes don't mean anything, and warns about them.
>
> Obviously, this is a Checker artifact. Checker is immensely useful
> otherwise (I found the other two bugs I reported recently with it), but
> its output can be rather overwhelming. Therefore, I think it may be
> worth making this particular change which doesn't hurt anything else,
> AFAIK, just to shut it up in this particular instance.
I disagree that it's worth fixing -- basically we'll be fixing this stuff
until the end of time. checkergcc should have some other means to figure
this kind of stuff out.
Jeff
More information about the Gcc
mailing list