This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug target/49211] MMIX: Code generation broken, when using global variables


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!


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