register hint usefulness
Richard Henderson
rth@cygnus.com
Mon Apr 24 10:33:00 GMT 2000
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~
More information about the Gcc
mailing list