From owner-svn-src-all@FreeBSD.ORG Fri Dec 28 22:06:50 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC6B6AF3; Fri, 28 Dec 2012 22:06:50 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C06688FC14; Fri, 28 Dec 2012 22:06:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBSM6o3v013020; Fri, 28 Dec 2012 22:06:50 GMT (envelope-from pfg@svn.freebsd.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBSM6ofg013019; Fri, 28 Dec 2012 22:06:50 GMT (envelope-from pfg@svn.freebsd.org) Message-Id: <201212282206.qBSM6ofg013019@svn.freebsd.org> From: "Pedro F. Giffuni" Date: Fri, 28 Dec 2012 22:06:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244792 - head/contrib/gcc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2012 22:06:50 -0000 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