From owner-cvs-src-old@FreeBSD.ORG Tue Aug 24 00:23:52 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3354010657CD for ; Tue, 24 Aug 2010 00:23:52 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 219CE8FC0C for ; Tue, 24 Aug 2010 00:23:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o7O0Nqml095806 for ; Tue, 24 Aug 2010 00:23:52 GMT (envelope-from rpaulo@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7O0NqDU095805 for cvs-src-old@freebsd.org; Tue, 24 Aug 2010 00:23:52 GMT (envelope-from rpaulo@repoman.freebsd.org) Message-Id: <201008240023.o7O0NqDU095805@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rpaulo@repoman.freebsd.org using -f From: Rui Paulo Date: Tue, 24 Aug 2010 00:23:40 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/contrib/gcc crtstuff.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 00:23:52 -0000 rpaulo 2010-08-24 00:23:40 UTC FreeBSD src repository Modified files: contrib/gcc crtstuff.c Log: SVN rev 211729 on 2010-08-24 00:23:40Z by rpaulo Mark the following static variables as __used__ instead of __unused__: o force_to_data o __CTOR_LIST__ o __do_global_dtors_aux_fini_array_entry o __frame_dummy_init_array_entry This is necessary because Clang is smart enough to optimize out these variables was they were marked as __unused__ (and they are also static). The end result was programs segfaulting because these symbols weren't present. This follows the upstream revision 159228 and the author of that revision (Jan Hubicka ) allowed us to backport this to our GPLv2 GCC. Discussed with: core Revision Changes Path 1.2 +435 -173 src/contrib/gcc/crtstuff.c