svn commit: r257645 - head/gnu/lib/libgcc
Sean Bruno
sbruno at FreeBSD.org
Mon Nov 4 18:15:46 UTC 2013
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
More information about the svn-src-all
mailing list