This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, combine] Bit-field insertion optimization #2
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Chung-Lin Tang <cltang at codesourcery dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 9 Dec 2010 15:12:31 -0800
- Subject: Re: [patch, combine] Bit-field insertion optimization #2
- References: <4D010FFC.6040805@codesourcery.com>
On Thu, Dec 9, 2010 at 9:21 AM, Chung-Lin Tang <cltang@codesourcery.com> wrote:
> Hi, asides from Andrew's patch, we also have this alternate patch using
> combine. With respect to the bitfield case here, the two patches are mostly
> similar in effect, but we thought we'd post both for discussion anyways.
This patch will not bootstrap anywhere because of the warning:
/data/src/gcc-cavium/clean/trunk/src/gcc/combine.c: In function
âcombinable_i3patâ:
/data/src/gcc-cavium/clean/trunk/src/gcc/combine.c:1941: warning:
initialization discards qualifiers from pointer target type
+ rtx exppat = expand_field_assignment (x);
expand_field_assignment returns a const_rtx.
-- Pinski