Skip to content

Commit

Permalink
re PR c/88430 (-Wmissing-attributes warnings when including libquadma…
Browse files Browse the repository at this point in the history
…th headers)

	PR c/88430
	* quadmath_weak.h (__qmath2): Add __quadmath_throw.

From-SVN: r266972
  • Loading branch information
jakubjelinek committed Dec 11, 2018
1 parent 7b1ff60 commit 3b14d7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libquadmath/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-12-11 Jakub Jelinek <[email protected]>

PR c/88430
* quadmath_weak.h (__qmath2): Add __quadmath_throw.

2018-11-07 Joseph Myers <[email protected]>

* quadmath-imp.h (ieee854_float128): Use mantissa0, mantissa1,
Expand Down
5 changes: 3 additions & 2 deletions libquadmath/quadmath_weak.h
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
This file is part of the libquadmath library.
Expand All @@ -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)
Expand Down

0 comments on commit 3b14d7f

Please sign in to comment.