Lots of warning compiling libquadmath

Janne Blomqvist blomqvist.janne@gmail.com
Mon Dec 10 14:09:00 GMT 2018


On Mon, Dec 10, 2018 at 2:02 AM Paul Richard Thomas <
paul.richard.thomas@gmail.com> wrote:

> Hi Janne and Jerry,
>
> I have been working on a library file to implement CFI descriptors.
> These warnings come up all the time. It would be nice to get rid of
> them but I haven't stopped to see what the problems are.
>
> Cheers
>
> Paul
>
> On Sun, 9 Dec 2018 at 19:37, Janne Blomqvist <blomqvist.janne@gmail.com>
> wrote:
> >
> > On Sun, Dec 9, 2018 at 9:24 PM Jerry DeLisle <jvdelisle@charter.net>
> wrote:
> >
> > > Recent changes are giving a bunch of warnings now when building
> > > libquadmath.
> > >
> > > Does someone know how to get rid of these warnings?
> > >
> > > For one of the functions for example:
> > >
> > > In file included from ../../../../trunk/libgfortran/libgfortran.h:61,
> > >                   from
> ../../../../trunk/libgfortran/ieee/ieee_helper.c:26:
> > > ../../../../trunk/libgfortran/../libquadmath/quadmath_weak.h:36:33:
> > > warning: ‘__qmath_crealq’ specifies less restrictive attribute than its
> > > target ‘crealq’: ‘nothrow’ [-Wmissing-attributes]
> > >     36 | #define __qmath3(name) __qmath2(__qmath_ ## name,name,name)
> > >        |                                 ^~~~~~~~
> > > ../../../../trunk/libgfortran/../libquadmath/quadmath_weak.h:28:25:
> > > note: in definition of macro ‘__qmath2’
> > >     28 |   static __typeof(type) name __attribute__
> > > ((__weakref__(#name2)));
> > >        |                         ^~~~
> > > ../../../../trunk/libgfortran/../libquadmath/quadmath_weak.h:113:1:
> > > note: in expansion of macro ‘__qmath3’
> > >    113 | __qmath3 (crealq)
> > >        | ^~~~~~~~
> > >
> >
> > I've seen those in the past month or so as well. According to 'git
> blame',
> > no relevant changes have been made to the libquadmath headers recently,
> so
> > I guess this is the result of some changes in the warnings?
> >
> >
> > --
> > Janne Blomqvist
>
>
>
> --
> "If you can't explain it simply, you don't understand it well enough"
> - Albert Einstein
>

FWIW, I just filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88430 about
this issue.
-- 
Janne Blomqvist



More information about the Fortran mailing list