re PR tree-optimization/22278 (gcc -O2 discards cast to volatile)
authorRichard Henderson <rth@redhat.com>
Tue, 19 Jul 2005 20:20:40 +0000 (13:20 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Jul 2005 20:20:40 +0000 (13:20 -0700)
commitaf62f6f9a440d24b135f7d5023173180566a780e
treefbf02d28bdbfe2df54c4da773d527881c941eba7
parentb9b8dde3026d1e54c5bb2c8fa331a7bfd84b671d
re PR tree-optimization/22278 (gcc -O2 discards cast to volatile)

        PR tree-opt/22278
        * gimplify.c (gimplify_expr): Use main variant type for the temp
        destination for a discarded volatile read.
        * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
        casts between non-void types that change volatility.

From-SVN: r102169
gcc/ChangeLog
gcc/gimplify.c
gcc/tree-ssa.c