public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
       [not found] <bug-79786-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-13 21:56 ` pinskia at gcc dot gnu.org
  2021-08-13 21:56 ` pinskia at gcc dot gnu.org
  2024-03-26  8:11 ` [Bug c++/79786] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-13 21:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |c++

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simple fix:
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index fcb33088a21..a2705f1ca9f 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -1682,7 +1682,7 @@ emit_tinfo_decl (tree decl)
       /* Avoid targets optionally bumping up the alignment to improve
         vector instruction accesses, tinfo are never accessed this way.  */
 #ifdef DATA_ABI_ALIGNMENT
-      SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (decl, TYPE_ALIGN (TREE_TYPE
(decl))));
+      SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (TREE_TYPE (decl), TYPE_ALIGN
(TREE_TYPE (decl))));
       DECL_USER_ALIGN (decl) = true;
 #endif
       return true;


if anyone cares about iamcu and RTTI, please take this patch over.

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

* [Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
       [not found] <bug-79786-4@http.gcc.gnu.org/bugzilla/>
  2021-08-13 21:56 ` [Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263 pinskia at gcc dot gnu.org
@ 2021-08-13 21:56 ` pinskia at gcc dot gnu.org
  2024-03-26  8:11 ` [Bug c++/79786] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-13 21:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the bug was introduced at r5-869.

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

* [Bug c++/79786] [11/12/13/14 Regression] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
       [not found] <bug-79786-4@http.gcc.gnu.org/bugzilla/>
  2021-08-13 21:56 ` [Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263 pinskia at gcc dot gnu.org
  2021-08-13 21:56 ` pinskia at gcc dot gnu.org
@ 2024-03-26  8:11 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-26  8:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE tree check: expected    |[11/12/13/14 Regression]
                   |class 'type', have          |ICE tree check: expected
                   |'declaration' (var_decl) in |class 'type', have
                   |iamcu_alignment, at         |'declaration' (var_decl) in
                   |config/i386/i386.c:30263    |iamcu_alignment, at
                   |                            |config/i386/i386.c:30263
   Target Milestone|---                         |11.5
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> Note the bug was introduced at r5-869.

So techincally this is a regression.

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

end of thread, other threads:[~2024-03-26  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-79786-4@http.gcc.gnu.org/bugzilla/>
2021-08-13 21:56 ` [Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263 pinskia at gcc dot gnu.org
2021-08-13 21:56 ` pinskia at gcc dot gnu.org
2024-03-26  8:11 ` [Bug c++/79786] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org

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