Re: nested function question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> Hi,
> 
> The gcc.c-torture/execute/nestfunc-3.c test fails on a private target. I
> suspect this is because the STATIC_CHAIN_REGNUM, which is not a call
> used register, is used by the caller function (main), modified by the
> trampoline, but not restored upon nested function return.
> 
> Should the STATIC_CHAIN_REGNUM be defined so that
> CALL_USED_REGISTERS[STATIC_CHAIN_REGNUM] == 0?

The question is rather:
Should the STATIC_CHAIN_REGNUM be defined so that
CALL_USED_REGISTERS[STATIC_CHAIN_REGNUM] == 1? Or is it possible to make
nested functions work if CALL_USED_REGISTERS[STATIC_CHAIN_REGNUM] == 0?

Thanks
Aurélien



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux