]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++/79786 - bougs invocation of DATA_ABI_ALIGNMENT macro
authorRichard Biener <rguenther@suse.de>
Mon, 3 Feb 2025 10:27:20 +0000 (11:27 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Feb 2025 13:15:01 +0000 (14:15 +0100)
The first argument is supposed to be a type, not a decl.

PR c++/79786
gcc/cp/
* rtti.cc (emit_tinfo_decl): Fix DATA_ABI_ALIGNMENT invocation.

gcc/cp/rtti.cc

index 2dfc2e3d7c5328ede2cb8ea34bf110c279aa4719..dcf84f17163b11c7325d72fc58eae130eda50da2 100644 (file)
@@ -1741,7 +1741,8 @@ 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;