From: Jakub Jelinek Date: Tue, 11 Dec 2018 07:45:47 +0000 (+0100) Subject: re PR c/88430 (-Wmissing-attributes warnings when including libquadmath headers) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b14d7fad64a5ab82798955579e2d1a9b3be6853;p=gcc.git re PR c/88430 (-Wmissing-attributes warnings when including libquadmath headers) PR c/88430 * quadmath_weak.h (__qmath2): Add __quadmath_throw. From-SVN: r266972 --- diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index 51c9ad2be9c..3c3197e72a4 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,8 @@ +2018-12-11 Jakub Jelinek + + PR c/88430 + * quadmath_weak.h (__qmath2): Add __quadmath_throw. + 2018-11-07 Joseph Myers * quadmath-imp.h (ieee854_float128): Use mantissa0, mantissa1, diff --git a/libquadmath/quadmath_weak.h b/libquadmath/quadmath_weak.h index f7100ded224..a97c813a013 100644 --- a/libquadmath/quadmath_weak.h +++ b/libquadmath/quadmath_weak.h @@ -1,5 +1,5 @@ /* GCC Quad-Precision Math Library - Copyright (C) 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2010-2018 Free Software Foundation, Inc. Written by Tobias Burnus This file is part of the libquadmath library. @@ -25,7 +25,8 @@ Boston, MA 02110-1301, USA. */ #if SUPPORTS_WEAK # define __qmath2(name,name2,type) \ - static __typeof(type) name __attribute__ ((__weakref__(#name2))); + static __typeof(type) name __attribute__ ((__weakref__(#name2))) \ + __quadmath_throw; # define __qmath_(name) __qmath_ ## name #else # define __qmath2(name,name2,type)