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: RFC/RFA: patch for PR 22156: improve SRA for bit-fields


On Apr 20, 2007, "Andrew Pinski" <pinskia@gmail.com> wrote:

> On 4/20/07, Alexandre Oliva <aoliva@redhat.com> wrote:
>> I can think of a few possible ways to do it, but I don't understand
>> why this should be necessary.  Could anyone give me an idea of why
>> these (D)s should cause any problem?

> Yes because they are using uninitialized variables,

So, I've fixed this in the patch I posted the other day, by arranging
for the initial value of these multi-[bit-]field variables to be set
to zero.  This gets optimized away when the variable is first assigned
to, so we end up with better code.

Can you confirm that this fixes the problem you ran into, or give me
directions on how to cross-test spu-elf?  I don't think I got a
simulator when I built top-of-the-tree srcware/sim --target=spu-elf

Thanks,

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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