[Bug target/85718] Incorrect name mangling for va_list on mipsel
roliver at roku dot com
gcc-bugzilla@gcc.gnu.org
Thu May 10 09:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85718
--- Comment #5 from Richard Oliver <roliver at roku dot com> ---
(In reply to Jonathan Wakely from comment #4)
> So then this behaviour is correct and working as intended.
Even accepting the fact that 'void *' is a valid implementation for va_args,
surely the code generation is wrong in my original bug report for:
'log("Location of i: %p", &i)' as the '...' version should be selected in the
generated code?
'bl _Z3logPKcz' is generated on ARM, and 'jal _Z3logPKcPv' is
generated on MIPS.
Surely this is independent of the internal implementation of 'va_args' as we're
not actually calling that function. Commenting out the va_list
forward-declaration results in the correct code being generated.
More information about the Gcc-bugs
mailing list