diff mbox series

ia64: Adjust the C++14 vs. C++17 ABI thing for [[no_unique_address]] too [PR94706]

Message ID 20200428155134.GV2424@tucnak
State New
Headers show
Series ia64: Adjust the C++14 vs. C++17 ABI thing for [[no_unique_address]] too [PR94706] | expand

Commit Message

Jakub Jelinek April 28, 2020, 3:51 p.m. UTC
Hi!

Untested.  If the rs6000+generic change makes it in, is this ok for trunk
too?

2020-04-28  Jakub Jelinek  <jakub@redhat.com>

	PR target/94706
	* config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
	instead of cxx17_empty_base_field_p.


	Jakub

Comments

Jeff Law via Gcc-patches April 28, 2020, 4:14 p.m. UTC | #1
On Tue, 2020-04-28 at 17:51 +0200, Jakub Jelinek wrote:
> Hi!
> 
> Untested.  If the rs6000+generic change makes it in, is this ok for trunk
> too?
> 
> 2020-04-28  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR target/94706
> 	* config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
> 	instead of cxx17_empty_base_field_p.
OK once the prereqs are approved.

jeff
>
diff mbox series

Patch

--- gcc/config/ia64/ia64.c.jj	2020-04-22 16:47:46.979994610 +0200
+++ gcc/config/ia64/ia64.c	2020-04-28 17:45:11.456798296 +0200
@@ -4665,7 +4665,7 @@  hfa_element_mode (const_tree type, bool
     case QUAL_UNION_TYPE:
       for (t = TYPE_FIELDS (type); t; t = DECL_CHAIN (t))
 	{
-	  if (TREE_CODE (t) != FIELD_DECL || cxx17_empty_base_field_p (t))
+	  if (TREE_CODE (t) != FIELD_DECL || DECL_FIELD_ABI_IGNORED (t))
 	    continue;
 
 	  mode = hfa_element_mode (TREE_TYPE (t), 1);