Re: [PATCH] Fix folding of volatile values (PR 86617)

2018-07-23 Thread Richard Biener
On Mon, 23 Jul 2018, Bernd Edlinger wrote: > Hi! > > This fixes PR c/86617, where volatile values are folded > incorrectly, because LHS and RHS of PLUS_EXPR and > MINUS_EXPR are the same pointer. > > > Bootstrapped and reg-tested on x86_64-pc-linux-gnu. > Is it OK for trunk (and active branches

[PATCH] Fix folding of volatile values (PR 86617)

2018-07-23 Thread Bernd Edlinger
Hi! This fixes PR c/86617, where volatile values are folded incorrectly, because LHS and RHS of PLUS_EXPR and MINUS_EXPR are the same pointer. Bootstrapped and reg-tested on x86_64-pc-linux-gnu. Is it OK for trunk (and active branches, 8.2 in particular)? Thanks Bernd.gcc: 2018-07-23 Bernd Ed