[Bug c++/41036] SIGSEGV with register asm esp

2009-08-11 Thread sergey dot senozhatsky at gmail dot com
--- Comment #2 from sergey dot senozhatsky at gmail dot com 2009-08-11 19:18 --- Subject: Re: SIGSEGV with register asm esp On (08/11/09 18:41), ubizjak at gmail dot com wrote: > No. You should be able to shoot yourself in the foot without warning. > > IOW, you are changing stack poi

[Bug c++/41036] SIGSEGV with register asm esp

2009-08-11 Thread ubizjak at gmail dot com
--- 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, t