[Bug inline-asm/11896] Internal compiler error using asm("lgdt %0\n\t"::"r" (gdtr));
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 12 20:14: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=11896
falk at debian dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |inline-asm
Ever Confirmed| |1
------- Additional Comments From falk at debian dot org 2003-08-12 20:14 -------
I can confirm this with mainline 2003-08-08 on alpha-linux and with all older
gccs I have. Test case:
void f() {
struct {
short size;
int address;
} gdtr;
asm("" : : "r"(gdtr));
}
I'm not sure the code is valid though. While on Alpha at least, the struct
would fit into a register, and would be passed to functions in a register,
I think the "r" constraint is only for integral values.
More information about the Gcc-bugs
mailing list