On Linux/x86, trunk revision 140155 is miscompiled. The
following test timed out

[EMAIL PROTECTED] gcc]$ cat /tmp/x.ii
void foo (int a, int a) { }
[EMAIL PROTECTED] gcc]$ ./xgcc -B./  -ansi -pedantic-errors -Wno-long-long  -S
/tmp/x.ii
/tmp/x.ii:1: error: redefinition of ‘int a’
/tmp/x.ii:1: error: ‘int a’ previously declared here
Ctrl-C
[EMAIL PROTECTED] gcc]$

"make check" shows

Executing on host:
/export/gnu/import/svn/gcc-test/bld/gcc/testsuite/g++/../../g++
-B/export/gnu/import/svn/gcc-test/bld/gcc/testsuite/g++/../../  -nostdinc++
-I/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/32/libstdc++-v3/include
-I/export/gnu/import/svn/gcc-test/src-trunk/libstdc++-v3/libsupc++
-I/export/gnu/import/svn/gcc-test/src-trunk/libstdc++-v3/include/backward
-I/export/gnu/import/svn/gcc-test/src-trunk/libstdc++-v3/testsuite/util
-fmessage-length=0   -ansi -pedantic-errors -Wno-long-long  -c  -m32 -o warn4.o
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/g++.old-deja/g++.mike/warn4.C
   (timeout = 300)
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/g++.old-deja/g++.mike/warn4.C:2:
error: redefinition of 'int a'^M
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/g++.old-deja/g++.mike/warn4.C:2:
error: 'int a' previously declared here^M
WARNING: program timed out.
compiler exited with status 1

Patch for PR 37377 seems to fix this.


-- 
           Summary: [4.4 Regression] IRA miscompiled gcc
           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
 BugsThisDependsOn: 37377


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

Reply via email to