This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Avoid -Wmissing-attributes warnings in libquadmath


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]