This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: new langhook for PRs 6005 and 7611
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 21 Aug 2002 13:26:29 -0600
- Subject: Re: Patch: new langhook for PRs 6005 and 7611
- References: <8765y87vw2.fsf@fleche.redhat.com><20020819231641.GD22722@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "rth" == Richard Henderson <rth@redhat.com> writes:
rth> 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.
rth> I guess this is ok for now. I'd much prefer this optimization
rth> were done later, and not in fold at all. Perhaps something to be
rth> addressed on tree-ssa-branch...
I ran the gcc test suite both with and without this patch.
There were no regressions.
So is this ok to check in now?
Tom