This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug target/16325] value profiling clobbers gp on mips
At Fri, 2 Jul 2004 03:22:10 +0000 (UTC), "wilson at gcc dot gnu dot org" wrote:
> This is an inelegant untested patch that makes the testcase work.
Cute bug.
As for the workaround:
o64 will suffer the same problem that o32 does, since it's basically
o32 w/ 64-bit GPRs (and therefore, like o32, is required to leave
space for a0..a3 on the stack for use by called functions).
I don't know if EABI does the same thing.
Anyway, I think i'd advise either explicitly checking for o32 or o64,
or maybe checking for !TARGET_NEWABI (if EABI does have the same arg
space save requirement), instead of checking !TARGET_64BIT.
chris