[vta,vta4.3] handle negative bitpos expanding debug stmts

Alexandre Oliva aoliva@redhat.com
Wed Sep 10 08:55:00 GMT 2008


crtstuff computes __CTOR_END__ - 1, and this ICEd while testing
-fcompare-debug.  It's normally compiled with -g0, but I introduced
-gtoggle for -fcompare-debug, so it ended up compiled for comparison
with -g2, and the assignment p = __CTOR_END__ - 1; generated a debug
stmt with the expression &__CTOR_END__[-1], which exposed the failure
of expand_debug_expr() to handle negative bitpos.  Fixed as follows.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vta-expand-debug-negative-offset.patch
Type: text/x-patch
Size: 838 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080910/74b0333d/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}
FSFLA Board Member       ?S? Libre! => http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}


More information about the Gcc-patches mailing list