Patch: remove can_use_bit_fields_p lang hook
Richard Guenther
richard.guenther@gmail.com
Wed Jan 10 18:12:00 GMT 2007
On 10 Jan 2007 08:48:37 -0700, Tom Tromey <tromey@redhat.com> wrote:
> The can_use_bit_fields_p lang hook is only used by gcj. It is used to
> suppress certain bit field optimizations when generating .class files.
>
> Since gcj no longer generates .class files (this is outsourced to
> ecj), this hook is not needed. So, this patch removes the hook.
>
> Bootstrapped & tested on x86 FC5.
>
> Ok?
This is ok.
Thanks,
Richard.
> Tom
>
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
> (fold_binary): Likewise.
> * langhooks.c (lhd_can_use_bit_fields_p): Removed.
> * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
> (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
> (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
> * langhooks.h (struct lang_hooks): Removed field
> 'can_use_bit_fields_p'.
>
> Index: java/ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> * lang.c (java_can_use_bit_fields_p): Removed.
> (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
More information about the Java-patches
mailing list