This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12525] [tree-ssa] wrong code when using asm with +.
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2003 15:57:50 -0000
- Subject: [Bug optimization/12525] [tree-ssa] wrong code when using asm with +.
- References: <20031006153720.12525.gerald@pfeifer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12525
------- Additional Comments From amacleod at redhat dot com 2003-10-06 15:57 -------
I think its a rewritting into SSA bug. This is the output I see from ssa1:
f ()
{
register int r;
# BLOCK 0 (b.c:3). PRED: -1. SUCC: -2.
r_1 = 1;
__asm__("":"+r" r_2:);
;
}
The asm stmt is using r_2. r_1 is the value initialized, and DCE removes the r_1
= 1 because it isnt being used anywhere in the program.
the asm ought to be using r_1.
Andrew