[PATCH] Fix PR77697

2016-09-23 Thread Richard Biener
As noted in the PR defcodefor_name was quite broken - the following rectifies it. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2016-09-23 Richard Biener PR tree-optimization/77697 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code, s

[PATCH] Fix PR77697

2016-09-22 Thread Richard Biener
This fixes PR77697, an ice-on-invalid for Fortran (varasm later errors). Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2016-09-22 Richard Biener PR middle-end/77697 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into fold