This is the mail archive of the gcc-bugs@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: Bug in C++ tree inlining or in PPC backend?


>>>>> "Franz" == Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:

    Franz> Hmm, let me ask differently, do you see any possibility
    Franz> that the C++ tree inlining code causes this directly? Like
    Franz> not setting some memory attributes correctly? Or do you

Anything is possible, and I have certainly been known to write buggy
code. :-(

However, there is no manipulation of alias sets by the inlining code
-- it just copies declarations from the inlined function into the
target function.  It's possible (although I'm not sure how) that the
inlining code is using some variable after that variable has gone out
of scope, i.e., generating code after inlining that looks kind-of like
this:

  { 
    int i;
    i = 3;
  }
  f (i);

This isn't legal C of course, but it can be represented in with trees.
If the inliner is creating something like this, then the stack slot
machinery could kill the slot for `i' before it is used.  If the
inlining code is to blame, that would be the most likely cause that I
can think of.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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