public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3866] nvptx 'TARGET_USE_LOCAL_THUNK_ALIAS_P', 'TARGET_SUPPORTS_ALIASES'
@ 2023-09-12  8:58 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-09-12  8:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:537e2cc30d0f8ba6433af52f2fef038d75d93174

commit r14-3866-g537e2cc30d0f8ba6433af52f2fef038d75d93174
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Thu Jul 14 22:05:17 2022 +0200

    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.

Diff:
---
 gcc/config/nvptx/nvptx.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h
index 15a52344d4a2..129427e5654d 100644
--- a/gcc/config/nvptx/nvptx.h
+++ b/gcc/config/nvptx/nvptx.h
@@ -338,6 +338,11 @@ struct GTY(()) machine_function
 #define ASM_OUTPUT_DEF_FROM_DECLS(STREAM, NAME, VALUE)	\
   nvptx_asm_output_def_from_decls (STREAM, NAME, VALUE)
 
+/* ..., but also override other macros to avoid 'gcc/defaults.h'-initialization
+   due to that dummy 'ASM_OUTPUT_DEF'.  */
+#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) TARGET_SUPPORTS_ALIASES
+#define TARGET_SUPPORTS_ALIASES (nvptx_alias != 0)
+
 #define NO_DOT_IN_LABEL
 #define ASM_COMMENT_START "//"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-12  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12  8:58 [gcc r14-3866] nvptx 'TARGET_USE_LOCAL_THUNK_ALIAS_P', 'TARGET_SUPPORTS_ALIASES' Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).