ia64: Adjust the C++14 vs. C++17 ABI thing for [[no_unique_address]] too [PR94706]
authorJakub Jelinek <jakub@redhat.com>
Wed, 29 Apr 2020 07:07:30 +0000 (09:07 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 29 Apr 2020 07:07:30 +0000 (09:07 +0200)
2020-04-29  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.

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 738a74def202a76775a873a7981b624eb3671b2f..5541d9c62d9f84d17a7bea5cb80fb17b7fe25f46 100644 (file)
@@ -1,5 +1,9 @@
 2020-04-29  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.
+
        PR target/94707
        * tree-core.h (tree_decl_common): Note decl_flag_0 used for
        DECL_FIELD_ABI_IGNORED.
index 4b7bf6981763770a7d9f8c7fc5432a0dbefbccc5..7075d6a0b921fd4ee510a1fc6c2ccaf0b2559528 100644 (file)
@@ -4665,7 +4665,7 @@ hfa_element_mode (const_tree type, bool nested)
     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);