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

           Summary: [4.6 Regression] -fcompare-debug failure with -O
                    -fno-inline -fipa-cp -fipa-cp-clone
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


Created attachment 22472
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22472
reduced testcase

Compiler output:
$ gcc -O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug testcase.C
gcc: error: testcase.C: -fcompare-debug failure
$ diff testcase.*gkd
46d45
< 0:   const unsigned int D.xxxx;
47a47
> 0:   const unsigned int D.xxxx;

Tested revisions:
r166976 - fail
r165699 - fail
r163636 - fail
r161659 - OK
4.5 r166509 - OK

Reply via email to