This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mini-patch for cccp.c
- To: Thomas dot Koenig at ciw dot uni-karlsruhe dot de (Thomas König)
- Subject: Re: Mini-patch for cccp.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 06 Oct 1997 17:26:59 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
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