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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2003 15:51:38 -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
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Component|middle-end |optimization
Ever Confirmed| |1
Keywords| |diagnostic, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2003-10-06 15:51:37
date| |
Summary|[tree-ssa] atomicity.h:50: |[tree-ssa] wrong code when
|warning: '__tmp' might be |using asm with +.
|used uninitialized |
Target Milestone|--- |tree-ssa
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-06 15:51 -------
Here is a (very small) small example :
void f()
{
register int r = 1;
asm ("":"+r"(r));
}
>From looking at the dumps, the problem looke like it is caused by the ccp pass and it
removes the initialization for r, so to the middle-end it looks like r is used uninitialized.