[Bug target/49211] MMIX: Code generation broken, when using global variables
nils@script-solution.de
gcc-bugzilla@gcc.gnu.org
Mon May 30 15:30:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49211
--- Comment #5 from Nils Asmussen <nils@script-solution.de> 2011-05-30 15:22:37 UTC ---
> Again, I suggest you have a look at crtn.asm, in particular these lines:
>
> % This must be the last file on the link-line, allocating global registers
> % from the top.
>
> % Register $254 is the stack-pointer.
> sp GREG
>
> So, if you leave that out, the global-register-allocation machinery in the
> linker will allocate registers starting from the topmost, which is $254 ($255
> being a scratch register).
Oh, ok. I thought in a different direction :/
Then it's perfectly clear. Thanks!
More information about the Gcc-bugs
mailing list