This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49211] MMIX: Code generation broken, when using global variables
- From: "nils at script-solution dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 May 2011 15:22:47 +0000
- Subject: [Bug target/49211] MMIX: Code generation broken, when using global variables
- Auto-submitted: auto-generated
- References: <bug-49211-4@http.gcc.gnu.org/bugzilla/>
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!