aboutsummaryrefslogtreecommitdiff
path: root/gcc/sanopt.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-10-11 14:29:13 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-10-11 12:29:13 +0000
commited89e76a35f8dc067b747a57a143d2d74516afc4 (patch)
tree883f0f74bdf011ca6d2d86c216536c9994361f89 /gcc/sanopt.c
parent78188a05d0f423b99edee82bce01fdad35e3c37b (diff)
downloadgcc-ed89e76a35f8dc067b747a57a143d2d74516afc4.zip
gcc-ed89e76a35f8dc067b747a57a143d2d74516afc4.tar.gz
gcc-ed89e76a35f8dc067b747a57a143d2d74516afc4.tar.bz2
Revert last commit.
From-SVN: r253638
Diffstat (limited to 'gcc/sanopt.c')
-rw-r--r--gcc/sanopt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/sanopt.c b/gcc/sanopt.c
index 019cf9f..997bcfd 100644
--- a/gcc/sanopt.c
+++ b/gcc/sanopt.c
@@ -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;