------- Comment #1 from ubizjak at gmail dot com  2009-08-11 18:41 -------
(In reply to comment #0)

> Following code (written just for fun) leads to:
> 
> Program received signal SIGSEGV, Segmentation fault.
> main () at main-general.cpp:95
> 95              printf("%d\n", x_reg);
> 
> 
> BTW, there is warning when using ecx, eax, edx.
> should there be any warning for esp?

No. You should be able to shoot yourself in the foot without warning.

IOW, you are changing stack pointer.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to