Commit ed89e76a by Martin Liska Committed by Martin Liska

Revert last commit.

From-SVN: r253638
parent 78188a05
2017-10-11 Martin Liska <mliska@suse.cz>
Revert r253637:
PR sanitizer/82484
* sanopt.c (sanitize_rewrite_addressable_params): Do not handle
volatile arguments.
2017-10-11 Martin Liska <mliska@suse.cz>
PR sanitizer/82484
* sanopt.c (sanitize_rewrite_addressable_params): Do not handle
volatile arguments.
......@@ -1140,9 +1140,7 @@ sanitize_rewrite_addressable_params (function *fun)
arg; arg = DECL_CHAIN (arg))
{
tree type = TREE_TYPE (arg);
if (TREE_ADDRESSABLE (arg)
&& !TREE_ADDRESSABLE (type)
&& !TREE_THIS_VOLATILE (arg)
if (TREE_ADDRESSABLE (arg) && !TREE_ADDRESSABLE (type)
&& TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
{
TREE_ADDRESSABLE (arg) = 0;
......
2017-10-11 Martin Liska <mliska@suse.cz>
Revert r253637:
PR sanitizer/82484
* gcc.dg/asan/pr82484.c: New test.
2017-10-11 Martin Liska <mliska@suse.cz>
PR sanitizer/82484
* gcc.dg/asan/pr82484.c: New test.
......
/* PR sanitizer/82484 */
/* { dg-do compile } */
void foo(volatile int *ptr);
void a (volatile int b) { foo(&b); }
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