Patch: new langhook for PRs 6005 and 7611
Richard Henderson
rth@redhat.com
Mon Aug 19 16:16:00 GMT 2002
On Sat, Aug 17, 2002 at 08:17:49PM -0600, Tom Tromey wrote:
> For PR java/6005 and PR java/7611:
> * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
> (fold): Likewise.
> * langhooks.c (lhd_can_use_bit_fields_p): New function.
> * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
> (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
> (LANG_HOOKS_INITIALIZER): Use it.
> * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
> field.
I guess this is ok for now. I'd much prefer this optimization
were done later, and not in fold at all. Perhaps something to
be addressed on tree-ssa-branch...
r~
More information about the Java-patches
mailing list