summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/targhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/targhooks.c')
-rw-r--r--contrib/gcc/targhooks.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/gcc/targhooks.c b/contrib/gcc/targhooks.c
index b164c84..796bd2d 100644
--- a/contrib/gcc/targhooks.c
+++ b/contrib/gcc/targhooks.c
@@ -604,4 +604,20 @@ default_reloc_rw_mask (void)
return flag_pic ? 3 : 0;
}
+bool
+default_builtin_vector_alignment_reachable (tree type, bool is_packed)
+{
+ if (is_packed)
+ return false;
+
+ /* Assuming that types whose size is > pointer-size are not guaranteed to be
+ naturally aligned. */
+ if (tree_int_cst_compare (TYPE_SIZE (type), bitsize_int (POINTER_SIZE)) > 0)
+ return false;
+
+ /* Assuming that types whose size is <= pointer-size
+ are naturally aligned. */
+ return true;
+}
+
#include "gt-targhooks.h"
OpenPOWER on IntegriCloud