This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/58805] [4.8/4.9 Regression] Inline assembly wrongly optimized out when inside a conditional
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 19 Oct 2013 18:02:54 +0000
- Subject: [Bug inline-asm/58805] [4.8/4.9 Regression] Inline assembly wrongly optimized out when inside a conditional
- Auto-submitted: auto-generated
- References: <bug-58805-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58805
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-10-19
Target Milestone|--- |4.8.3
Summary|Inline assembly wrongly |[4.8/4.9 Regression] Inline
|optimized out when inside a |assembly wrongly optimized
|conditional |out when inside a
| |conditional
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, this is a bug as the write to *x/*y should depend on the value of n.
> In your test case the asm has output operands feeding into write-only local
> variables, but no memory clobbers and no volatile annotation.
There is a memory write with `[r] "=r" (*r)'.