[Bug middle-end/40500] New: [4.5 Regression] Gcc failed tp build binutils

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 20 04:05:00 GMT 2009


[hjl@gnu-16 148734]$ cat foo.c
int
foo (int x)
{
  if (x == 0)
    goto l1;
  else
    {
      int y = x + 1;

      if (y == -3)
        {
l1:
          goto l2;
        }

      return y + 3;
    }
l2:
  return -1;
}
[hjl@gnu-16 148734]$ ./usr/bin/gcc -O2 foo.c -Wall -c -Werror
cc1: warnings being treated as errors
foo.c: In function ‘foo’:
foo.c:5:5: error: jump skips variable initialization
foo.c:12:1: note: label ‘l1’ defined here
foo.c:8:11: note: ‘y’ declared here
[hjl@gnu-16 148734]$


-- 
           Summary: [4.5 Regression]  Gcc failed tp build binutils
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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



More information about the Gcc-bugs mailing list