This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/8788] [3.3/3.4 Regression]ICE in emit_move_insn, at expr.c:3089


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]