]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/builtins.c
Turn CONSTANT_ALIGNMENT into a hook
[thirdparty/gcc.git] / gcc / builtins.c
index c8a5ea62611cb9cba811a6cfa5f2847bd6dad51b..ff049aa9d378deb5de7b106307be82dfa3f7495d 100644 (file)
@@ -283,7 +283,7 @@ get_object_alignment_2 (tree exp, unsigned int *alignp,
       exp = DECL_INITIAL (exp);
       align = TYPE_ALIGN (TREE_TYPE (exp));
       if (CONSTANT_CLASS_P (exp))
-       align = (unsigned) CONSTANT_ALIGNMENT (exp, align);
+       align = targetm.constant_alignment (exp, align);
 
       known_alignment = true;
     }
@@ -359,7 +359,7 @@ get_object_alignment_2 (tree exp, unsigned int *alignp,
          wrapped inside a CONST_DECL.  */
       align = TYPE_ALIGN (TREE_TYPE (exp));
       if (CONSTANT_CLASS_P (exp))
-       align = (unsigned) CONSTANT_ALIGNMENT (exp, align);
+       align = targetm.constant_alignment (exp, align);
 
       known_alignment = true;
     }