From owner-svn-src-head@FreeBSD.ORG Tue Nov 5 00:31:47 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 473DC270; Tue, 5 Nov 2013 00:31:47 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2AB282E98; Tue, 5 Nov 2013 00:31:45 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id u14so6035566lbd.15 for ; Mon, 04 Nov 2013 16:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=P8Oe1c7WbltcOB0a5zVRRyqlO4GqJewRD5EUK2DVAzc=; b=jo6HIbWm8D0ydrqtC7yJi4AOrl2lR7XXaPmEy4dSUDPlemeLpDgxyZNq5NCXmBspli oAvAOaSJ5e8NvetRDuDepc4Sm8qsyroZgjNY7r2Kq+1VFfst8NQVsNCRgLt5mEkvHI+O OaE2e1hQtNRD/zTd8YTjtmcqINPfYXri26DovZ0IOcpO4AQ59iHxOHjyYlBQqVdbiIkb Mg+KDwLg7tuU909L2BHe0d1MwuwSNqK3eypX9G0Qnx4+WnL+ZswXFJ32kSJUf+UCFep4 4F+1UyhYqy2LqYWpZSeF48+eheCU+sgchYTcIb5aVGfNm3evlPI+CBHKrT7c4IKnCnvo GhXQ== MIME-Version: 1.0 X-Received: by 10.152.116.7 with SMTP id js7mr13911434lab.11.1383611504194; Mon, 04 Nov 2013 16:31:44 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.23.35 with HTTP; Mon, 4 Nov 2013 16:31:44 -0800 (PST) Date: Mon, 4 Nov 2013 16:31:44 -0800 X-Google-Sender-Auth: T-QMU6r04gf-jRsrksKtHlgDz8U Message-ID: Subject: this breaks builds with gcc (Re: svn commit: r257645 - head/gnu/lib/libgcc From: Luigi Rizzo To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 00:31:47 -0000 svn257645 (below) breaks the build when gcc is used. -Wno-static-in-inline is only for CLANG. cheers luigi On Mon, Nov 4, 2013 at 10:15 AM, Sean Bruno wrote: > Author: sbruno > Date: Mon Nov 4 18:15:45 2013 > New Revision: 257645 > URL: http://svnweb.freebsd.org/changeset/base/257645 > > Log: > Quiesce warning around gcc_assert() for an inline macro that uses > a static variable. This code has been moved around in gcc, but is still > in > use in the latest trunk version of the compiler. > > gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36: > warning: static variable 'dwarf_reg_size_table' is used in an > inline > function with external linkage [-Wstatic-in-inline] > gcc_assert (index < (int) sizeof(dwarf_reg_size_table)); > > Modified: > head/gnu/lib/libgcc/Makefile > > Modified: head/gnu/lib/libgcc/Makefile > > ============================================================================== > --- head/gnu/lib/libgcc/Makefile Mon Nov 4 18:14:50 2013 > (r257644) > +++ head/gnu/lib/libgcc/Makefile Mon Nov 4 18:15:45 2013 > (r257645) > @@ -27,6 +27,17 @@ CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_F > -I${GCCDIR}/config -I${GCCDIR} -I. \ > -I${.CURDIR}/../../usr.bin/cc/cc_tools > > +# Added to quiesce warning around gcc_assert() for an inline macro that > uses > +# a static variable. This code has been moved around in gcc, but is > still in > +# use in the latest trunk version of the compiler. > +# > +# gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36: > +# warning: static variable 'dwarf_reg_size_table' is used in an > inline > +# function with external linkage [-Wstatic-in-inline] > +# gcc_assert (index < (int) sizeof(dwarf_reg_size_table)); > +# ^ > +CFLAGS+= -Wno-static-in-inline > + > LDFLAGS+= -nodefaultlibs > LDADD+= -lc > > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------