logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: fd9d8083718b83a7982003b5befb28253d17b40c
parent 0894c6243440284b9e3a81e94e8828087683c968
Author: Michael Forney <mforney@mforney.org>
Date:   Mon,  6 Sep 2021 18:53:37 -0700

binutils: Remove unused support for formatting long doubles

Diffstat:

Apkg/binutils/patch/0004-Remove-support-for-long-double-in-error-formatter.patch62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpkg/binutils/ver2+-
2 files changed, 63 insertions(+), 1 deletion(-)

diff --git a/pkg/binutils/patch/0004-Remove-support-for-long-double-in-error-formatter.patch b/pkg/binutils/patch/0004-Remove-support-for-long-double-in-error-formatter.patch @@ -0,0 +1,62 @@ +From 0051e56e6ba95eb552f70720f4b09b485a937115 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 6 Sep 2021 18:51:05 -0700 +Subject: [PATCH] Remove support for long double in error formatter + +No bfd errors try to format long double, so there is no point in +supporting it in the formatter. +--- + bfd/bfd.c | 9 ++------- + 1 file changed, 2 insertions(+), 7 deletions(-) + +diff --git a/bfd/bfd.c b/bfd/bfd.c +index 0952aaea19c..9c29a77edc0 100644 +--- a/bfd/bfd.c ++++ b/bfd/bfd.c +@@ -868,7 +868,6 @@ union _bfd_doprnt_args + long l; + long long ll; + double d; +- long double ld; + void *p; + enum + { +@@ -877,7 +876,6 @@ union _bfd_doprnt_args + Long, + LongLong, + Double, +- LongDouble, + Ptr + } type; + }; +@@ -1063,7 +1061,7 @@ _bfd_doprnt (FILE *stream, const char *format, union _bfd_doprnt_args *args) + if (wide_width == 0) + PRINT_TYPE (double, d); + else +- PRINT_TYPE (long double, ld); ++ abort(); + } + break; + case 's': +@@ -1280,7 +1278,7 @@ _bfd_doprnt_scan (const char *format, union _bfd_doprnt_args *args) + if (wide_width == 0) + arg_type = Double; + else +- arg_type = LongDouble; ++ abort(); + } + break; + case 's': +@@ -1331,9 +1329,6 @@ error_handler_internal (const char *fmt, va_list ap) + case Double: + args[i].d = va_arg (ap, double); + break; +- case LongDouble: +- args[i].ld = va_arg (ap, long double); +- break; + case Ptr: + args[i].p = va_arg (ap, void *); + break; +-- +2.32.0 + diff --git a/pkg/binutils/ver b/pkg/binutils/ver @@ -1 +1 @@ -2.37 r0 +2.37 r1