This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/8788] [3.3/3.4 Regression]ICE in emit_move_insn, at expr.c:3089
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 19:40:58 -0000
- Subject: [Bug inline-asm/8788] [3.3/3.4 Regression]ICE in emit_move_insn, at expr.c:3089
- References: <20021202092601.8788.killer.lightspeed@bigpond.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.