re PR tree-optimization/35716 (gfortran.dg/assign_6.f and gfortran.dg/g77/dnrm2.f)
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Mar 2008 17:09:54 +0000 (17:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Mar 2008 17:09:54 +0000 (17:09 +0000)
commitffd837fe164a08ed4e3315009d61bb24c69fe04d
tree3800dd1b144c0ef8553b9904b57193e5438ca668
parent6b4e94bcaef89af9899da67f2dffc54496120535
re PR tree-optimization/35716 (gfortran.dg/assign_6.f and gfortran.dg/g77/dnrm2.f)

2008-03-27  Richard Guenther  <rguenther@suse.de>

PR middle-end/35716
* fold-const.c (fold_comparison): Restrict distinct decl
comparison folding to VAR_DECLs and PARM_DECLs.  Do not
solely rely on operand_equal_p.

From-SVN: r133647
gcc/ChangeLog
gcc/fold-const.c