[Bug inline-asm/8788] [3.3/3.4 Regression]ICE in emit_move_insn, at expr.c:3089
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 18 19:40:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8788
------- Additional Comments From falk at debian dot org 2003-08-18 19:40 -------
This happens with any struct that has more than one element:
void f(){
struct { char x, y; } s;
asm ("" : : "r" (s));
}
The documentation is not quite clear about what's legal here, I think it would
be best to document that one-element structs are OK for "r" (because people are
likely using that at the moment), and reject all other structs with a useful
error message.
More information about the Gcc-bugs
mailing list