public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mikpe at it dot uu.se" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/48090] gcc 4.5.2 miscompilation when building on arm
Date: Sun, 13 Mar 2011 15:09:00 -0000	[thread overview]
Message-ID: <bug-48090-4-Yum1TpqPJd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48090-4@http.gcc.gnu.org/bugzilla/>

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at gcc dot gnu.org

--- Comment #7 from Mikael Pettersson <mikpe at it dot uu.se> 2011-03-13 15:09:36 UTC ---
The miscompilation on 4.5 branch started with r154181, the PR42031 fix; see
<http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00725.html>.

On the standalone test case, r154181 changed the -march=armv5t -O2 code as
follows:

--- pr48090.s-r154180   2011-03-13 15:39:16.000000000 +0100
+++ pr48090.s-r154181   2011-03-13 15:43:21.000000000 +0100
@@ -81,11 +81,9 @@
        mov     r6, r1
        bl      seek_archive
        cmp     r1, #0
-       mov     r3, r0
-       mov     r4, r1
        blt     .L14
-       rsbs    r1, r3, #0
-       rsc     r2, r4, #0
+       rsbs    r1, r0, #0
+       rsc     r2, r1, #0
        mov     r4, r2, asl #9
        mov     r3, r1, asl #9
        orr     r4, r4, r1, lsr #23

which breaks the second 'rsc' insn since it now reads the updated r1 value
instead of the original one.


  parent reply	other threads:[~2011-03-13 15:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-12  9:01 [Bug c/48090] New: " arnaud.patard@rtp-net.org
2011-03-12  9:02 ` [Bug c/48090] " arnaud.patard@rtp-net.org
2011-03-12 12:03 ` mikpe at it dot uu.se
2011-03-12 12:16 ` arnaud.patard@rtp-net.org
2011-03-12 15:42 ` mikpe at it dot uu.se
2011-03-12 17:38 ` mikpe at it dot uu.se
2011-03-12 21:33 ` mikpe at it dot uu.se
2011-03-13 15:09 ` mikpe at it dot uu.se [this message]
2011-03-13 19:33 ` mikpe at it dot uu.se
2011-03-13 20:40 ` arnaud.patard@rtp-net.org
2011-03-14 10:32 ` [Bug target/48090] [4.5 Regression] " rguenth at gcc dot gnu.org
2011-04-10 10:42 ` rguenth at gcc dot gnu.org
2011-04-11 10:24 ` ramana at gcc dot gnu.org
2011-04-12 13:43 ` ramana at gcc dot gnu.org
2011-04-12 13:53 ` ramana at gcc dot gnu.org
2011-04-12 13:53 ` ramana at gcc dot gnu.org
2011-04-12 13:56 ` froydnj at codesourcery dot com
2011-04-13  7:41 ` ramana at gcc dot gnu.org
2011-04-13  7:56 ` ramana at gcc dot gnu.org
2011-04-27 10:08 ` ramana at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48090-4-Yum1TpqPJd@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).