This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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~