Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Nov 2013 18:15:45 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257645 - head/gnu/lib/libgcc
Message-ID:  <201311041815.rA4IFjwO081492@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311041815.rA4IFjwO081492>