From 67bfbda18f4e6d0d30ad8f8790f1d0d4653131ed Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 25 May 2020 13:48:57 +0200 Subject: [PATCH] tree-optimization/95308 - really avoid forward propagating of &TMR This fixes a hole that still allowed forwarding of TARGET_MEM_REF addresses. 2020-05-25 Richard Biener PR tree-optimization/95308 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize test for TARGET_MEM_REFs. * g++.dg/torture/pr95308.C: New testcase. --- gcc/ChangeLog | 6 ++++++ gcc/testsuite/ChangeLog | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 150dc096c7a..d5844590274 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-05-25 Richard Biener + + PR tree-optimization/95308 + * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize + test for TARGET_MEM_REFs. + 2020-05-25 Richard Biener PR tree-optimization/95295 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cba153f166e..dfb92ec5748 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-05-25 Richard Biener + + PR tree-optimization/95308 + * g++.dg/torture/pr95308.C: New testcase. + 2020-05-25 Richard Biener PR tree-optimization/95295 -- 2.30.2