[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-11 Thread valery_reznic at yahoo dot com
--- Comment #8 from valery_reznic at yahoo dot com 2009-02-11 14:26 --- (In reply to comment #7) (In reply to comment #5) Any why you say I shouldn't call other function from inside asm ? See for example [1]. [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16331#c14 I read

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-11 Thread ubizjak at gmail dot com
--- Comment #9 from ubizjak at gmail dot com 2009-02-11 15:32 --- (In reply to comment #8) In the inline assembler I MYSELF put arguments in the places where MY (by the way, written in assembler) function expect to get them. Then you actually don't need a compiler... ;) I need

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-10 Thread ubizjak at gmail dot com
--- Comment #7 from ubizjak at gmail dot com 2009-02-11 07:50 --- (In reply to comment #5) Any why you say I shouldn't call other function from inside asm ? See for example [1]. [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16331#c14 --

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-09 Thread valery_reznic at yahoo dot com
--- Comment #5 from valery_reznic at yahoo dot com 2009-02-09 16:07 --- (In reply to comment #3) r11 is saved by the caller so this is the generated code is valid. Since nothing else uses r11 in the inline-asm, the code is correct. The problem is not that r11 not saved at

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-09 Thread valery_reznic at yahoo dot com
--- Comment #6 from valery_reznic at yahoo dot com 2009-02-09 16:09 --- (In reply to comment #4) Or you can subq $128, %rsp; call my_syscall; addq $128, %rsp in your inline assembly. When I understood what happened I did it, but thank you anyway. --

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-06 Thread ubizjak at gmail dot com
--- Comment #3 from ubizjak at gmail dot com 2009-02-06 11:51 --- r11 is saved by the caller so this is the generated code is valid. Since nothing else uses r11 in the inline-asm, the code is correct. The problem is not that r11 not saved at stack, but that saved on the stack

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-06 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-02-06 12:08 --- Or you can subq $128, %rsp; call my_syscall; addq $128, %rsp in your inline assembly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39078

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-05 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-06 01:42 --- r11 is saved by the caller so this is the generated code is valid. Since nothing else uses r11 in the inline-asm, the code is correct. From the i386.h header: The value is zero if the register is not call used

[Bug inline-asm/39078] Registers in on clober list are cloberred when compiled with optimization (x86_64) ?

2009-02-05 Thread valery_reznic at yahoo dot com
--- Comment #2 from valery_reznic at yahoo dot com 2009-02-06 07:12 --- (In reply to comment #1) r11 is saved by the caller so this is the generated code is valid. Since nothing else uses r11 in the inline-asm, the code is correct. The problem is not that r11 not saved at stack, but