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]

Re: Mini-patch for cccp.c



  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


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