This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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, combine] Bit-field insertion optimization #2


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


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