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 c++/11807] GCC should error out when clobering the stack pointer or frame pointer


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

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
 GCC target triplet|arm-linux                   |
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-06 03:40:07
               date|                            |
            Summary|Wrong usage of registers on |GCC should error out when
                   |ARM                         |clobering the stack pointer
                   |                            |or frame pointer


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-06 03:40 -------
gcc does error when the PIC register is clobered so it should error out when the frame 
pointer or stack pointer is clobered.
An example for PPC:
int f()
{
  asm("addi r30, r30, 1":::"r30");
  asm("addi r1, r1, 1":::"r1");
}

I can confirm this on the mainline (20030805).


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