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]
Other format: [Raw text]

Re: g++.old-deja/g++.mike/p7325.C - suspected bogus test case


Ian Lance Taylor wrote:
For example, here is a quickie test for whether arrays declared in
different blocks overlap.  This test appears to currently always fail.

char *
foo ()
{
  {
    char b[100];
    memset (b, 0, sizeof b);
  }
  {
    char c[100];
    memset (c, 0, sizeof c);
  }
  return stack ();
}
couldn't stack be sibcalled here, and thus not detect non-overlappingness?
Passing the address of some new parm of FOO should prevent sibcalling.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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