svn commit: r257645 - head/gnu/lib/libgcc
Dimitry Andric
dim at FreeBSD.org
Mon Nov 4 21:43:59 UTC 2013
On 04 Nov 2013, at 19:15, 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));
The warning is actually correct, since _Unwind_SetGR() is an extern
inline function (although it is not explicitly declared as such), but it
does access a static variable. It would probably be safest to make the
variable non-static instead, since the function itself cannot be changed
to static inline.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20131104/663d1da9/attachment.sig>
More information about the svn-src-all
mailing list