This is the mail archive of the gcc-patches@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]

[tree-ssa] New testcase


Oh what fun.  Nested functions can (of course) use variables declared
at suitable block nesting level in the nested function's parent function.

tree-ssa is getting a little too aggressive about deleting assignments
in such cases.  This simple test demonstrates the problem.  I've got a
fix that is going through testing now, so I won't bother xfailing this
new test.



        * gcc.c-torture/execute/20030501-1.c: New test for tree-ssa bug.
int
main (int argc, char **argv)
{
  int size = 10;

  {
    int retframe_block()
      {
        return size + 5;
      }

  if (retframe_block() != 15)
      abort ();
  exit (0);

  }
}




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