re PR sanitizer/57104 (ICE: in expand_expr_addr_expr_1, at expr.c:7594 with -fsanitize=thread and hardreg variable)
PR tree-optimization/57104 * tsan.c (instrument_expr): Don't instrument accesses to DECL_HARD_REGISTER VAR_DECLs. * gcc.dg/pr57104.c: New test. From-SVN: r198445
This commit is contained in:
parent
a46d0aff5e
commit
abc27962b8
|
@ -1,3 +1,9 @@
|
||||||
|
2013-04-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR tree-optimization/57104
|
||||||
|
* tsan.c (instrument_expr): Don't instrument accesses to
|
||||||
|
DECL_HARD_REGISTER VAR_DECLs.
|
||||||
|
|
||||||
2013-04-30 Richard Biener <rguenther@suse.de>
|
2013-04-30 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
* function.h (loops_for_fn): New inline function.
|
* function.h (loops_for_fn): New inline function.
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR tree-optimization/57104
|
||||||
|
* gcc.dg/pr57104.c: New test.
|
||||||
|
|
||||||
2013-04-29 Uros Bizjak <ubizjak@gmail.com>
|
2013-04-29 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
PR target/44578
|
PR target/44578
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* PR tree-optimization/57104 */
|
||||||
|
/* { dg-do compile { target { x86_64-*-linux* && lp64 } } } */
|
||||||
|
/* { dg-options "-fsanitize=thread" } */
|
||||||
|
|
||||||
|
register int r asm ("r14");
|
||||||
|
int v;
|
||||||
|
|
||||||
|
int
|
||||||
|
foo (void)
|
||||||
|
{
|
||||||
|
return r + v;
|
||||||
|
}
|
|
@ -128,7 +128,9 @@ instrument_expr (gimple_stmt_iterator gsi, tree expr, bool is_write)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TREE_READONLY (base))
|
if (TREE_READONLY (base)
|
||||||
|
|| (TREE_CODE (base) == VAR_DECL
|
||||||
|
&& DECL_HARD_REGISTER (base)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (size == 0
|
if (size == 0
|
||||||
|
|
Loading…
Reference in New Issue