[Bug inline-asm/32971] Inline asm with offset addressing fails to compile in 4.0+ without -O

2007-08-03 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-08-03 12:17 --- %m means it can represent it as memory access which means access it via a register, this is not a bug. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug inline-asm/32971] Inline asm with offset addressing fails to compile in 4.0+ without -O

2007-08-02 Thread kinetik at flim dot org
--- Comment #3 from kinetik at flim dot org 2007-08-03 05:11 --- (In reply to comment #2) > asm ("lea %1(%2), %0" >: "=r" (i) >: "i" (offsetof(struct coord, y)), > "r" (c) >: "memory"); Bug #29357 suggests that I need to use %c1 rather than %1 here, an

[Bug inline-asm/32971] Inline asm with offset addressing fails to compile in 4.0+ without -O

2007-08-02 Thread kinetik at orcon dot net dot nz
--- Comment #2 from kinetik at orcon dot net dot nz 2007-08-03 04:51 --- Using a memory operand to pass the offset value is not ideal in the first place, but I'm not sure how else I can do it. It looks like the "i" contraint (immediate value) is what I want, but the following code:

[Bug inline-asm/32971] Inline asm with offset addressing fails to compile in 4.0+ without -O

2007-08-02 Thread kinetik at orcon dot net dot nz
--- Comment #1 from kinetik at orcon dot net dot nz 2007-08-03 04:48 --- Created an attachment (id=14014) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14014&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32971