Blame SOURCES/gcc49-pr64336.patch

5733f8
2014-12-17  Jakub Jelinek  <jakub@redhat.com>
5733f8
5733f8
	PR sanitizer/64336
5733f8
	* tsan.c (instrument_expr): Ignore TREE_READONLY bit
5733f8
	on MEM_REFs.
5733f8
5733f8
--- gcc/tsan.c.jj	2014-12-17 10:53:30.000000000 +0100
5733f8
+++ gcc/tsan.c	2014-12-17 11:55:12.793058159 +0100
5733f8
@@ -138,7 +138,7 @@ instrument_expr (gimple_stmt_iterator gs
5733f8
 	return false;
5733f8
     }
5733f8
 
5733f8
-  if (TREE_READONLY (base)
5733f8
+  if ((TREE_READONLY (base) && TREE_CODE (base) != MEM_REF)
5733f8
       || (TREE_CODE (base) == VAR_DECL
5733f8
 	  && DECL_HARD_REGISTER (base)))
5733f8
     return false;