This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/11896] Internal compiler error using asm("lgdt %0\n\t"::"r" (gdtr));
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2003 20:14:32 -0000
- Subject: [Bug inline-asm/11896] Internal compiler error using asm("lgdt %0\n\t"::"r" (gdtr));
- References: <20030812184330.11896.earthpower@libero.it>
- 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=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.