From d75bf0cab42169239902ddadcdb4f35a3fd5a35d Mon Sep 17 00:00:00 2001 From: Dorit Naishlos Date: Tue, 30 Nov 2004 13:19:54 +0000 Subject: tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for decls that are assembled before vectorization takes place. * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for decls that are assembled before vectorization takes place. (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1. From-SVN: r91517 --- gcc/tree-vectorizer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/tree-vectorizer.c') diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 5773993..d476d81 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -1509,6 +1509,9 @@ vect_can_force_dr_alignment_p (tree decl, unsigned int alignment) if (DECL_EXTERNAL (decl)) return false; + if (TREE_ASM_WRITTEN (decl)) + return false; + if (TREE_STATIC (decl)) return (alignment <= MAX_OFILE_ALIGNMENT); else @@ -4130,7 +4133,7 @@ vect_compute_data_ref_alignment (struct data_reference *dr, if (vect_debug_details (NULL)) fprintf (dump_file, "force alignment"); DECL_ALIGN (base) = TYPE_ALIGN (vectype); - DECL_USER_ALIGN (base) = TYPE_ALIGN (vectype); + DECL_USER_ALIGN (base) = 1; } /* At this point we assume that the base is aligned, and the offset from it -- cgit v1.1