This is the mail archive of the gcc@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]

Re: register hint usefulness


On Sun, Apr 23, 2000 at 08:11:40AM +0200, Jakub Jelinek wrote:
> Isn't "register" still needed for variables pinned into specific registers?
> I remember gcc not putting a variable in specified hard register in certain
> cases:
> 	int foo asm("g5");
> but doing it always with:
> 	register int foo asm("g5");

Yes.  Without the "register" that means call the assembly variable "g5".
Not that that makes much sense for an auto variable, but that is in fact
how it is interpreted.


r~

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