re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed...
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 2 Jul 2003 07:41:07 +0000 (09:41 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 2 Jul 2003 07:41:07 +0000 (07:41 +0000)
commit1a8c4ca62da430aa2d8920b70f1614ab0755059b
tree2f0ff7e67c577a96205f1a538d682dfa6c362eb3
parent23cdfcf71f295697ac4322f0a0e8128e22e834b4
re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)

PR optimization/11210
* expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
about the behaviour with regard to bitfields.
* fold-const (decode_field_reference): Record outermost type in
case the expression is a NOP. Strip all NOPs. Set the signedness
to that of the outermost type (if any) when the bitsize is equal
to the size of the type.

From-SVN: r68823
gcc/ChangeLog
gcc/expr.c
gcc/fold-const.c