public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ modules and AAPCS/ARM EABI clash on inline key methods
@ 2022-03-31  7:32 Alexandre Oliva
  2022-04-05  4:53 ` Alexandre Oliva
  0 siblings, 1 reply; 13+ messages in thread
From: Alexandre Oliva @ 2022-03-31  7:32 UTC (permalink / raw)
  To: gcc-patches; +Cc: nathan


g++.dg/modules/virt-2_a.C fails on arm-eabi and many other arm targets
that use the AAPCS variant.  ARM is the only target that overrides
TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.  It's not clear to me which way the
clash between AAPCS and C++ Modules design should be resolved, but
currently it favors AAPCS and thus the test fails.

Should we skip the test on ARM, XFAIL it, or put in some kludge like
the patchlet below?


diff --git a/gcc/testsuite/g++.dg/modules/virt-2_a.C b/gcc/testsuite/g++.dg/modules/virt-2_a.C
index 9115cc19cc286..40f30137f0086 100644
--- a/gcc/testsuite/g++.dg/modules/virt-2_a.C
+++ b/gcc/testsuite/g++.dg/modules/virt-2_a.C
@@ -10,7 +10,9 @@ export struct Visitor
 
 // Key function explicitly inline (regardless of p1779's state)
 // We emit vtables & rtti only in this TU
+#if !__ARM_EABI__
 inline // Yoink!
+#endif
   int Visitor::Visit ()
 {
   return 0;


-- 
Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-02-24 14:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31  7:32 C++ modules and AAPCS/ARM EABI clash on inline key methods Alexandre Oliva
2022-04-05  4:53 ` Alexandre Oliva
2023-02-17  6:09   ` Alexandre Oliva
2023-02-21 16:31     ` Richard Earnshaw
2023-02-21 16:48       ` Richard Earnshaw
2023-02-22 19:57         ` Alexandre Oliva
2023-02-23 10:14           ` Richard Earnshaw
2023-02-23 17:12             ` Alexandre Oliva
2023-02-23 21:20               ` Alexandre Oliva
2023-02-24 10:23                 ` Richard Earnshaw
2023-02-24 10:30                   ` Iain Sandoe
2023-02-24 14:39                   ` Alexandre Oliva
2023-02-21 22:27       ` Nathan Sidwell

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).