Define __sparcv8 in 64-bit-default Solaris/SPARC gcc with -m32
Eric Botcazou
ebotcazou@adacore.com
Wed Feb 13 08:40:00 GMT 2019
> Eric, could you have another look if I'm missing something?
Note that this OPTION_DEFAULT_SPECS code is duplicated in linux64.h.
There is this comment:
In the SPARC_BI_ARCH compiler we cannot pass %{!mcpu=*:-mcpu=%(VALUE)}
here, otherwise say -mcpu=v7 would be passed even when -m64.
CC1_SPEC above takes care of this instead.
Why does CC1_SPEC not work apparently?
> Otherwise, I'm going to commit the patch (it's necessary to enable
> SANITIZER_CAN_FAST_UNWIND on Solaris/SPARC and make use of
> libsanitizer/sanitizer_common/sanitizer_stacktrace_sparc.cc).
No, it will not be necessary, I have ported the implementation to 64-bit.
--
Eric Botcazou
More information about the Gcc-patches
mailing list