fold-const.c (native_interpret_expr): Also support POINTER_TYPE and REFERENCE_TYPE...
authorRichard Guenther <rguenther@suse.de>
Fri, 16 Mar 2012 14:49:48 +0000 (14:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 16 Mar 2012 14:49:48 +0000 (14:49 +0000)
commit6814f778d841cb75ff96eaeea78ddfbf7952f475
tree667889b647704b21f167fc57a211fa1ef2fc27f9
parentada3df5081a4fb89ae83bce787fc9c949cdfc9ce
fold-const.c (native_interpret_expr): Also support POINTER_TYPE and REFERENCE_TYPE interpretations.

2012-03-16  Richard Guenther  <rguenther@suse.de>

* fold-const.c (native_interpret_expr): Also support POINTER_TYPE
and REFERENCE_TYPE interpretations.
(can_native_interpret_type_p): New function.
(fold_ternary_loc): Use native encode/interpret to fold
BIT_FIELD_REFs of constants.

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