--- Comment #2 from ams at gcc dot gnu dot org 2010-05-19 16:46 ---
Jeff, it was recommended that I add you as CC. Apologies if that was not
appropriate.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
--- Comment #1 from ams at gcc dot gnu dot org 2010-05-19 16:46 ---
Created an attachment (id=20703)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20703&action=view)
test case
This test case is reduced from uClibc sources.
To reproduce the bug:
cc1 -fpreprocessed __C_cty
le-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ams at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
--- Comment #11 from ams at gcc dot gnu dot org 2008-11-19 12:03 ---
The patch just committed should fix this issue.
The patch discussion is here:
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00641.html
--
ams at gcc dot gnu dot org changed:
What|Removed
--- Comment #10 from ams at gcc dot gnu dot org 2008-11-19 11:25 ---
Subject: Bug 36133
Author: ams
Date: Wed Nov 19 11:23:28 2008
New Revision: 141999
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141999
Log:
2008-11-19 Andrew Stubbs <[EMAIL PROTECTED]>
--- Comment #8 from ams at gcc dot gnu dot org 2008-11-14 10:53 ---
The patch posted here has been accepted and committed:
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00581.html
This should resolve this issue.
Andrew
--
ams at gcc dot gnu dot org changed:
What
--- Comment #7 from ams at gcc dot gnu dot org 2008-11-14 10:50 ---
Subject: Bug 36134
Author: ams
Date: Fri Nov 14 10:49:06 2008
New Revision: 141853
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141853
Log:
2008-11-14 Maxim Kuvyrkov <[EMAIL PROTECTED]>
--- Comment #9 from ams at gcc dot gnu dot org 2008-11-10 13:01 ---
> > This tst instruction is unneeded as the LSR is setting the flags correctly
> > already.
>
> This is NOT correct. LSL does write to the condition codes, but not all of it.
> In particular, th
--- Comment #7 from ams at gcc dot gnu dot org 2008-11-10 12:29 ---
(In reply to comment #4)
> There are two causes where GCC generates unneeded TST instructions.
> A) General arithmetic
> lsr.l #1,D0
> tst.l d0
> jbne ...
>
> This tst instruction is unneeded