This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR c++/20280] hoist indirect_ref out of addressable cond_exprs
On Mar 4, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
>> we should be doing the same for all types (well except for
>> bitfields) and not just "addressable" types,
> Agreed. That's relatively easy to fix.
Rats. Not that easy. A number of regressions showed up with the
`improved' patch :-(
It has to do with the uses of build_address, that marks variables and
fields as addressable and used, so we end up having to emit them,
instead of optimizing them out as intended.
It seems like we may indeed need something more elaborate at
gimplification time, instead of modifying the up-front representation.
I'll keep digging.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}