[Bug rtl-optimization/47763] New: Useless initialization of register

jiez at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 16 07:08:00 GMT 2011


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

           Summary: Useless initialization of register
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jiez@gcc.gnu.org


For arm-eabi target and options "-O2 -funroll-loops", gcc compiles the
following empty function

foo()
{
}

to

foo:
        mov     r0, #0
        bx      lr

Apparently the first instruction is useless.



More information about the Gcc-bugs mailing list