On 07/25/2012 09:30 AM, Eric Botcazou wrote:
> 2012-07-25 Eric Botcazou
>
> * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
> of BIT_FIELD_REF for ignored results.
> * fold-const.c (fold_ternary_loc) : Check that the
> CONSTRUCTOR has vector type before us
As documented in tree.def and checked in tree-cfg.c, the second and third
operands of BIT_FIELD_REF are INTEGER_CSTs so there is no need to do fancy
things on them. The patch also removes the now unused build6 stuff and fixes a
buglet in the folder.
Tested on x86_64-suse-linux, OK for the main