This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug math/19205] New: bits/math-finite.h conditions do not match math.h and bits/mathcalls.h


https://sourceware.org/bugzilla/show_bug.cgi?id=19205

            Bug ID: 19205
           Summary: bits/math-finite.h conditions do not match math.h and
                    bits/mathcalls.h
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---

bits/math-finite.h declares -ffinite-math-only variants of various functions
under conditions not matching those under which the normal versions are
declared.

* math.h only ever includes bits/mathcalls.h to declare float and long double
functions if __USE_ISOC99, but bits/math-finite.h declares some float functions
regardless (long double ones are conditioned on __MATH_DECLARE_LDOUBLE).

* Some functions are defined as inlines using lgamma_r functions under
conditions where those lgamma_r functions are not themselves declared.

* hypot is declared under __USE_XOPEN || __USE_ISOC99 in bits/mathcalls.h,
__USE_ISOC99 only in bits/math-finite.h.

* float and long double versions of Bessel functions should be limited to
__USE_MISC (as in bug 18977).

* gamma should not be declared for __USE_XOPEN2K (as in bug 18967).

* remainder should be restricted to __USE_XOPEN_EXTENDED || __USE_ISOC99, not
unconditional.

* scalb should not be declared for __USE_XOPEN2K8, and scalbf and scalbl are
non-POSIX (as in bug 18967).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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