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.