]> sourceware.org Git - glibc.git/commitdiff
Add *-ldbl.h headers to include/bits
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Fri, 23 Nov 2018 16:00:06 +0000 (14:00 -0200)
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Tue, 11 Dec 2018 17:00:11 +0000 (15:00 -0200)
On some platforms, long double may have either the same format as double
or another, wider format, such as the Quadruple IEC 60559 long double
format or the IBM Extended Precision format (both 128-bits wide).
Selecting between the available formats is done by using one of the
following compiler switches: -mlong-double-128, for the wider format, or
-mlong-double-64, for the narrower.  On all platforms that provide this
choice, the wider format is the default.

When the non-default format is selected by user code (i.e.: when
building with -mlong-double-64) calls to functions that take long double
parameters or return a long double type (e.g.: strfroml) are redirected
to a compat function, via assembler redirection, by headers such as
bits/stdlib-ldbl.h or bits/misc-ldbl.h.

In glibc builds, however, these headers are currently being read from
the system directories (/usr/include/bits) rather than from the source
directory.  Although this works correctly today, it raises
reproducibility concerns.  Besides that, builds for powerpc64le will
need these files from the source directory, because on powerpc64le, the
new redirections for long double with IEEE binary128 format will be
implemented in these headers.

Tested for powerpc64 and powerpc64le.

ChangeLog
include/bits/monetary-ldbl.h [new file with mode: 0644]
include/bits/printf-ldbl.h [new file with mode: 0644]
include/bits/stdio-ldbl.h [new file with mode: 0644]
include/bits/stdlib-ldbl.h [new file with mode: 0644]
include/bits/syslog-ldbl.h [new file with mode: 0644]
include/bits/wchar-ldbl.h [new file with mode: 0644]

index b8d794d43a73005090f8902e28c621e572cf269a..7a78b6b752212de9439ed1637e98697f4415369e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
+
+       * include/bits/monetary-ldbl.h: New file.
+       * include/bits/printf-ldbl.h: Likewise.
+       * include/bits/stdio-ldbl.h: Likewise.
+       * include/bits/stdlib-ldbl.h: Likewise.
+       * include/bits/syslog-ldbl.h: Likewise.
+       * include/bits/wchar-ldbl.h: Likewise.
+
 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
 
        * libio/libio.h: Remove redirection for _IO_vfprintf.
diff --git a/include/bits/monetary-ldbl.h b/include/bits/monetary-ldbl.h
new file mode 100644 (file)
index 0000000..6b6713f
--- /dev/null
@@ -0,0 +1 @@
+#include <stdlib/bits/monetary-ldbl.h>
diff --git a/include/bits/printf-ldbl.h b/include/bits/printf-ldbl.h
new file mode 100644 (file)
index 0000000..10d534b
--- /dev/null
@@ -0,0 +1 @@
+#include <stdio-common/bits/printf-ldbl.h>
diff --git a/include/bits/stdio-ldbl.h b/include/bits/stdio-ldbl.h
new file mode 100644 (file)
index 0000000..1f7d3ce
--- /dev/null
@@ -0,0 +1 @@
+#include <libio/bits/stdio-ldbl.h>
diff --git a/include/bits/stdlib-ldbl.h b/include/bits/stdlib-ldbl.h
new file mode 100644 (file)
index 0000000..6250949
--- /dev/null
@@ -0,0 +1 @@
+#include <stdlib/bits/stdlib-ldbl.h>
diff --git a/include/bits/syslog-ldbl.h b/include/bits/syslog-ldbl.h
new file mode 100644 (file)
index 0000000..e868156
--- /dev/null
@@ -0,0 +1 @@
+#include <misc/bits/syslog-ldbl.h>
diff --git a/include/bits/wchar-ldbl.h b/include/bits/wchar-ldbl.h
new file mode 100644 (file)
index 0000000..29baa2f
--- /dev/null
@@ -0,0 +1 @@
+#include <wcsmbs/bits/wchar-ldbl.h>
This page took 0.068901 seconds and 5 git commands to generate.