nvptx 'TARGET_USE_LOCAL_THUNK_ALIAS_P', 'TARGET_SUPPORTS_ALIASES'
commit537e2cc30d0f8ba6433af52f2fef038d75d93174
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 14 Jul 2022 20:05:17 +0000 (14 22:05 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 12 Sep 2023 08:52:55 +0000 (12 10:52 +0200)
tree5279312dcf6af4912d39e0122a9ffb90fdb9f616
parent50410234a3d2e1b85203d97fe6f65fd9d1f0e100
nvptx 'TARGET_USE_LOCAL_THUNK_ALIAS_P', 'TARGET_SUPPORTS_ALIASES'

This fixes up commit f8b15e177155960017ac0c5daef8780d1127f91c
"[nvptx] Use .alias directive for mptx >= 6.3", which regressed in
particular C++ test cases if the new '-malias' flag was not active.
In that case, we have to maintain (that is now, restore) the previous
state of 'TARGET_USE_LOCAL_THUNK_ALIAS_P', 'TARGET_SUPPORTS_ALIASES'.

The remaining three regressions are to be resolved via
<https://inbox.sourceware.org/87ledgzxcl.fsf@euler.schwinge.homeip.net>
"More '#ifdef ASM_OUTPUT_DEF' -> 'if (TARGET_SUPPORTS_ALIASES)' etc.".

gcc/
* config/nvptx/nvptx.h (TARGET_USE_LOCAL_THUNK_ALIAS_P)
(TARGET_SUPPORTS_ALIASES): Define.
gcc/config/nvptx/nvptx.h