[Bug tree-optimization/91812] [7/8/9 Regression] GCC ignores volatile modifier

2019-10-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91812

--- Comment #9 from Richard Biener  ---
Author: rguenth
Date: Wed Oct 16 09:25:34 2019
New Revision: 277055

URL: https://gcc.gnu.org/viewcvs?rev=277055=gcc=rev
Log:
2019-10-16  Richard Biener  

Backport from mainline
2019-10-04  Richard Biener  

PR lto/91968
* tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
BLOCK_VARS.

2019-10-02  Richard Biener  

PR c++/91606
* decl.c (build_ptrmemfunc_type): Mark pointer-to-member
fat pointer structure members as DECL_NONADDRESSABLE_P.

* g++.dg/torture/pr91606.C: New testcase.

2019-09-19  Richard Biener  

PR tree-optimization/91812
* tree-ssa-phiprop.c (propagate_with_phi): Do not replace
volatile loads.

* gcc.dg/torture/pr91812.c: New testcase.

2019-09-17  Richard Biener  

PR debug/91772
* dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
was missing generate locations only once.

2019-09-17  Richard Biener  

PR tree-optimization/91790
* tree-vect-stmts.c (vectorizable_load): For BB vectorization
use the correct DR for setting up realignment.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr91606.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr91812.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cp/ChangeLog
branches/gcc-9-branch/gcc/cp/decl.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/tree-ssa-phiprop.c
branches/gcc-9-branch/gcc/tree-vect-stmts.c
branches/gcc-9-branch/gcc/tree.c

[Bug tree-optimization/91812] [7/8/9 Regression] GCC ignores volatile modifier

2019-09-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91812

Richard Biener  changed:

   What|Removed |Added

  Component|c   |tree-optimization
  Known to work||10.0
   Target Milestone|--- |7.5
Summary|GCC ignores volatile|[7/8/9 Regression] GCC
   |modifier|ignores volatile modifier

--- Comment #8 from Richard Biener  ---
Fixed on trunk sofar.  Regression from before phiprop addition.