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/11896] Internal compiler error using asm("lgdt %0\n\t"::"r" (gdtr));


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.


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