diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-25 15:38:51 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-25 15:38:51 +0000 |
commit | e9156caddd536d78a5ad8fb65b9dbe9369368d60 (patch) | |
tree | da4aee72f971bac439fb906dc91d3892031fd544 /gcc/tree-data-ref.c | |
parent | f9f051a3cfb80007fc08267d6cf76ba58534414a (diff) | |
download | gcc-e9156caddd536d78a5ad8fb65b9dbe9369368d60.tar.gz |
PR tree-optimization/51987
* tree-data-ref.c (get_references_in_stmt): Handle references in
non-volatile GIMPLE_ASM.
* gcc.target/i386/pr51987.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index a0d86ec9c11..09929c79ebf 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -1,5 +1,5 @@ /* Data references and dependences detectors. - Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. Contributed by Sebastian Pop <pop@cri.ensmp.fr> @@ -4185,7 +4185,7 @@ get_references_in_stmt (gimple stmt, VEC (data_ref_loc, heap) **references) if ((stmt_code == GIMPLE_CALL && !(gimple_call_flags (stmt) & (ECF_CONST | ECF_PURE))) || (stmt_code == GIMPLE_ASM - && gimple_asm_volatile_p (stmt))) + && (gimple_asm_volatile_p (stmt) || gimple_vuse (stmt)))) clobbers_memory = true; if (!gimple_vuse (stmt)) |