Command line:
$ gcc -O3 -fcompare-debug -march=amdfam10 ada-langn.i
or
$ gcc -O2 -fcompare-debug -finline-functions -fipa-cp-clone
-fkeep-inline-functions  ada-langn.i
(I am not able to reproduce it with these flags anymore)
or
$ gcc -O1 -fgcse -finline-small-functions -foptimize-sibling-calls -ftree-pre
-ftree-switch-conversion -ftree-vrp -fpartial-inlining -finline-functions
-fkeep-inline-functions -fcompare-debug ada-langn.i

The difference in dumps is small:
$ diff *gkd
107804c107804
<                 (const_int 32 [0x20])) [ MEM[(struct type *)0B].main_type+0
S8 A64])) ada-langn.i:15638# {*movdi_internal_rex64}
---
>                 (const_int 32 [0x20])) [ 0B->main_type+0 S8 A64])) 
> ada-langn.i:15638# {*movdi_internal_rex64}

"MEM[(struct type *)0B]." <=> "0B->"

Tested revision:
r164287 - fail
r164280 - fail
r164228 - fail


-- 
           Summary: -fcompare-debug failure with minor difference in dumps
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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

Reply via email to