https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101

--- Comment #3 from dave.anglin at bell dot net ---
On 2024-02-25 2:21 p.m., redi at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114101
>
> Jonathan Wakely <redi at gcc dot gnu.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             See Also|                            |https://gcc.gnu.org/bugzill
>                     |                            |a/show_bug.cgi?id=86553
If a target has inconsistent declarations for any standard C99 functions, they
should be fixed
using a fixincludes hack.

Originally, I wrote a patch to add declarations for missing C99 functions on
hpux to math.h.
They were declared when __cplusplus was defined.  But then I realized they
would be
better in cmath as then all targets could potentially benefit.

They could be guarded by something like _GLIBCXX_NEED_C99_DECLARATIONS.  It
could
go in os_defines.h.  On hpux11, the configure checks are sufficient.  I think
they are also
sufficient on linux (test in progress).

Reply via email to