Re: [RS6000] Fix -mlongcall with nested functions on AIX

2014-11-24 Thread David Edelsohn
[Please explicitly copy me on relevant patches] 2014-10-17 Eric Botcazou * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not load the static chain if the call was originally direct. 2014-10-17 Eric Botcazou * gcc.target/powerpc/longcall-2.c: New test. Okay. Thanks, Davi

[RS6000] Fix -mlongcall with nested functions on AIX

2014-10-17 Thread Eric Botcazou
Hi, -mlongcall miscompiles nested functions with the AIX ABI. The problem is that, when -mlongcall is in effect, rs6000_call_aix redirects all calls to: /* Handle indirect calls. */ if (GET_CODE (func_desc) != SYMBOL_REF || (DEFAULT_ABI == ABI_AIX && !SYMBOL_REF_FUNCTION_P (func_desc