This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: remove can_use_bit_fields_p lang hook


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]