summaryrefslogtreecommitdiff
path: root/libquadmath/quadmath_weak.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-12-11 08:45:47 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-12-11 08:45:47 +0100
commit3b14d7fad64a5ab82798955579e2d1a9b3be6853 (patch)
treeda469db3105da4817d1bd18fe673c7b123ea2bfe /libquadmath/quadmath_weak.h
parent7b1ff60122fda6e106e54b792713f8eb16424cf2 (diff)
re PR c/88430 (-Wmissing-attributes warnings when including libquadmath headers)
PR c/88430 * quadmath_weak.h (__qmath2): Add __quadmath_throw. From-SVN: r266972
Diffstat (limited to 'libquadmath/quadmath_weak.h')
-rw-r--r--libquadmath/quadmath_weak.h5
1 files changed, 3 insertions, 2 deletions
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 <burnus@net-b.de>
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)