Commit 6192fa79 by Jan Hubicka Committed by Jan Hubicka

tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again…

tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.

	* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
	DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.

From-SVN: r211700
parent 8946c29e
2014-06-15 Jan Hubicka <hubicka@ucw.cz>
* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
2014-06-16 Yury Gribov <y.gribov@samsung.com> 2014-06-16 Yury Gribov <y.gribov@samsung.com>
* asan.c (check_func): New function. * asan.c (check_func): New function.
...@@ -38,8 +43,10 @@ ...@@ -38,8 +43,10 @@
2014-06-15 Jan Hubicka <hubicka@ucw.cz> 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
* c-family/c-common.c (handle_tls_model_attribute): Use set_decl_tls_model.
* c-family/c-common.c (handle_tls_model_attribute): Use * c-family/c-common.c (handle_tls_model_attribute): Use
set_decl_tls_model. set_decl_tls_model.
>>>>>>> .r211699
* cgraph.h (struct varpool_node): Add tls_model. * cgraph.h (struct varpool_node): Add tls_model.
* tree.c (decl_tls_model, set_decl_tls_model): New functions. * tree.c (decl_tls_model, set_decl_tls_model): New functions.
* tree.h (DECL_TLS_MODEL): Update. * tree.h (DECL_TLS_MODEL): Update.
......
...@@ -5317,7 +5317,13 @@ vect_can_force_dr_alignment_p (const_tree decl, unsigned int alignment) ...@@ -5317,7 +5317,13 @@ vect_can_force_dr_alignment_p (const_tree decl, unsigned int alignment)
if (TREE_CODE (decl) != VAR_DECL) if (TREE_CODE (decl) != VAR_DECL)
return false; return false;
gcc_assert (!TREE_ASM_WRITTEN (decl)); /* With -fno-toplevel-reorder we may have already output the constant. */
if (TREE_ASM_WRITTEN (decl))
return false;
/* Constant pool entries may be shared and not properly merged by LTO. */
if (DECL_IN_CONSTANT_POOL (decl))
return false;
if (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl)) if (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment