public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Avoid -Wmissing-attributes warnings in libquadmath
@ 2018-12-11  8:35 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2018-12-11  8:35 UTC (permalink / raw)
  To: gcc-patches

Hi!

The following patch avoids -Wmissing-attributes warnings in quadmath
headers.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.

2018-12-11  Jakub Jelinek  <jakub@redhat.com>

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

--- libquadmath/quadmath_weak.h.jj	2018-11-07 14:44:06.583181795 +0100
+++ libquadmath/quadmath_weak.h	2018-12-10 18:30:27.326983966 +0100
@@ -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)

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-11  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11  8:35 [committed] Avoid -Wmissing-attributes warnings in libquadmath Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).