[Bug c++/27836] Compiler generates bad assembler code for xaddl __asm__ function

2006-05-31 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-05-31 14:38 --- __asm__ __volatile__( "lock;xaddl %0, %1" :"=r"(i) :"m"(*p), "0"(i)); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27836

[Bug c++/27836] Compiler generates bad assembler code for xaddl __asm__ function

2006-05-31 Thread l_heldt at poczta dot onet dot pl
--- Comment #3 from l_heldt at poczta dot onet dot pl 2006-05-31 11:43 --- Can you tell me how correct asm body should look like? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27836

[Bug c++/27836] Compiler generates bad assembler code for xaddl __asm__ function

2006-05-31 Thread schwab at suse dot de
--- Comment #2 from schwab at suse dot de 2006-05-31 11:20 --- You are not using %2 in the asm body. There is no requirement that %0 and %2 expand to the same register. -- schwab at suse dot de changed: What|Removed |Added

[Bug c++/27836] Compiler generates bad assembler code for xaddl __asm__ function

2006-05-31 Thread l_heldt at poczta dot onet dot pl
--- Comment #1 from l_heldt at poczta dot onet dot pl 2006-05-31 11:14 --- Problem does not show up in g++-4.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27836