public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/47763] New: Useless initialization of register
@ 2011-02-16  7:08 jiez at gcc dot gnu.org
  2011-02-16  7:43 ` [Bug rtl-optimization/47763] " jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jiez at gcc dot gnu.org @ 2011-02-16  7:08 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-23  0:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-16  7:08 [Bug rtl-optimization/47763] New: Useless initialization of register jiez at gcc dot gnu.org
2011-02-16  7:43 ` [Bug rtl-optimization/47763] " jakub at gcc dot gnu.org
2011-02-16  7:48 ` jiez at gcc dot gnu.org
2011-02-16  7:51 ` jakub at gcc dot gnu.org
2011-02-16  8:08 ` jiez at gcc dot gnu.org
2011-02-16  8:20 ` pinskia at gcc dot gnu.org
2011-02-16  8:36 ` jiez at gcc dot gnu.org
2011-02-16  8:55 ` jiez at gcc dot gnu.org
2011-02-16 11:21 ` rguenth at gcc dot gnu.org
2011-02-16 11:51 ` jiez at gcc dot gnu.org
2011-02-16 18:31 ` schwab@linux-m68k.org
2011-02-23  0:37 ` jiez at gcc dot gnu.org
2011-02-23  0:38 ` jiez at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).