[vta] fix two thinkos in expand_debug_expr()

Alexandre Oliva aoliva@redhat.com
Thu Jan 3 06:10:00 GMT 2008


EXPAND_INITIALIZER implies EXPAND_CONST_ADDR, and it's not a bitmask.
I'm still a bit amazed that this actually worked for a while ;-)

In a conversion, taking the mode from the expansion of the operand,
rather than from what we might expect at first, guarantees that we
will perform a conversion if one is needed.  Without this, we failed
bootstrap-debug assertions on i686-pc-linux-gnu.

Installing in the vta branch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vta-expand-debug-expr-as-initializer.patch
Type: text/x-patch
Size: 1375 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080103/c63338db/attachment.bin>
-------------- next part --------------

-- 
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}


More information about the Gcc-patches mailing list