/* When compiled with -g -O -mno-sched-prolog, the debug info location
   lists for p1 and p2 do not cover the start of f.  There are other
   inaccuracies, but not covering the start of the function is specific
   to -nno-sched-prolog.  */
int f (int p1, int p2)
{
  extern int bar (int);
  int x, y;
  for (x = p1, y = 0; x < p2; x++)
    y += bar (x);
  return y;
}


-- 
           Summary: -mno-sched-prolog breaks function parameter debug
                    location lists
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at bigpond dot net dot au
GCC target triplet: powerpc-*-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40473

Reply via email to