this breaks builds with gcc (Re: svn commit: r257645 - head/gnu/lib/libgcc

Luigi Rizzo rizzo at iet.unipi.it
Tue Nov 5 00:31:47 UTC 2013


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 <sbruno at freebsd.org> 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 at 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)
-----------------------------------------+-------------------------------


More information about the svn-src-head mailing list