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/12525] [tree-ssa] wrong code when using asm with +.


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.


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