Date: Fri, 28 Dec 2012 22:06:50 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244792 - head/contrib/gcc Message-ID: <201212282206.qBSM6ofg013019@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Fri Dec 28 22:06:50 2012 New Revision: 244792 URL: http://svnweb.freebsd.org/changeset/base/244792 Log: gcc: avoid generating negative values to DW_AT_byte_size. The previous change was actually a NOP because size is unsigned and compilers are dumb. Submitted by: Christoph Mallon MFC after: 1 week Modified: head/contrib/gcc/dwarf2out.c Modified: head/contrib/gcc/dwarf2out.c ============================================================================== --- head/contrib/gcc/dwarf2out.c Fri Dec 28 22:06:33 2012 (r244791) +++ head/contrib/gcc/dwarf2out.c Fri Dec 28 22:06:50 2012 (r244792) @@ -10814,7 +10814,7 @@ add_byte_size_attribute (dw_die_ref die, indicates that the byte size of the entity in question is variable. We have no good way of expressing this fact in Dwarf at the present time. GCC/35998: Avoid passing negative sizes to Dtrace and gdb. */ - add_AT_unsigned (die, DW_AT_byte_size, (size > 0 ? size : 0)); + add_AT_unsigned (die, DW_AT_byte_size, (size != (unsigned)-1 ? size : 0)); } /* For a FIELD_DECL node which represents a bit-field, output an attribute
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212282206.qBSM6ofg013019>