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++/41036] SIGSEGV with register asm esp



------- 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


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