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/20382] internal compiler error with bogus asm output constraint


------- Additional Comments From sailors3 at comcast dot net  2005-03-09 12:00 -------
Subject: RE:  internal compiler error with bogus asm output constraint

Hello,

I apologize if my question sounded like criticism, It is really more of a
reflection on me (my ability to learn) than on GHU. 

I'm trying to get the compiler to accept this asm instruction:

/*		asm("ori		r5, r5, (ARCH_MSR_ME |
ARCH_MSR_RI)");*/

Using extended asm as this:

		__asm__ ("ori	%0,%1,%2"
				: "=r" ("r5")
				: "0" ("r5"), "g" (ARCH_MSR_ME |
ARCH_MSR_RI));

And the compiler is giving me:

Error: assignment of read-only location
Error: incompatible types of assignment

I guess I'm not properly interpreting the documentation on how to use
registers in the asm, is that correct?

Thanks,

Dave


-----Original Message-----
From: falk at debian dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Wednesday, March 09, 2005 1:15 AM
To: sailors3@comcast.net
Subject: [Bug inline-asm/20382] internal compiler error with bogus asm
output constraint


------- Additional Comments From falk at debian dot org  2005-03-09 09:14
-------
(In reply to comment #4)

> Where can I find some documentation on using this extended asm format? I
> have read all the GNU docs on it and can not understand how to use it.

Well, those docs are all we have. If you have any more concrete criticism,
feel free to file a bug about it.




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20382


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