2012-03-16 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2012 14:49:48 +0000 (14:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2012 14:49:48 +0000 (14:49 +0000)
commit7e5db579a8500e0fdfd2eba55d6499178bb5bcf7
tree667889b647704b21f167fc57a211fa1ef2fc27f9
parentae37ffafe757533bbdb7ca1abc6abe8b18a78b79
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185469 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c