This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11373] asm generated lhs expressions are discarded


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |optimization
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-29 14:49:47
               date|                            |
   Target Milestone|3.4                         |tree-ssa


------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-29 14:49 -------
confirmed on tree-ssa (20030628). DCE is removing a store which is wrong.
This can reproduced without using inline-asm (at least on powerpc-apple-darwin6.6):
static inline int* k()
{
        return (int*)(0xFFFF0001);
}

void g()
{
        *k() = 0;
}

So somehow DCE is removing *-65535B = 0 or *t_2 = 0 where t is set by a asm.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]