logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0003-Remove-support-for-long-double-in-error-formatter.patch (1513B)


  1. From dab3e5da03770ba254c95d0c1d8c9f029dd57257 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 6 Sep 2021 18:51:05 -0700
  4. Subject: [PATCH] Remove support for long double in error formatter
  5. No bfd errors try to format long double, so there is no point in
  6. supporting it in the formatter.
  7. ---
  8. bfd/bfd.c | 9 ++-------
  9. 1 file changed, 2 insertions(+), 7 deletions(-)
  10. diff --git a/bfd/bfd.c b/bfd/bfd.c
  11. index a2f294da983..3e59057d07a 100644
  12. --- a/bfd/bfd.c
  13. +++ b/bfd/bfd.c
  14. @@ -871,7 +871,6 @@ union _bfd_doprnt_args
  15. long l;
  16. long long ll;
  17. double d;
  18. - long double ld;
  19. void *p;
  20. enum
  21. {
  22. @@ -880,7 +879,6 @@ union _bfd_doprnt_args
  23. Long,
  24. LongLong,
  25. Double,
  26. - LongDouble,
  27. Ptr
  28. } type;
  29. };
  30. @@ -1066,7 +1064,7 @@ _bfd_doprnt (FILE *stream, const char *format, union _bfd_doprnt_args *args)
  31. if (wide_width == 0)
  32. PRINT_TYPE (double, d);
  33. else
  34. - PRINT_TYPE (long double, ld);
  35. + abort();
  36. }
  37. break;
  38. case 's':
  39. @@ -1283,7 +1281,7 @@ _bfd_doprnt_scan (const char *format, union _bfd_doprnt_args *args)
  40. if (wide_width == 0)
  41. arg_type = Double;
  42. else
  43. - arg_type = LongDouble;
  44. + abort();
  45. }
  46. break;
  47. case 's':
  48. @@ -1334,9 +1332,6 @@ error_handler_internal (const char *fmt, va_list ap)
  49. case Double:
  50. args[i].d = va_arg (ap, double);
  51. break;
  52. - case LongDouble:
  53. - args[i].ld = va_arg (ap, long double);
  54. - break;
  55. case Ptr:
  56. args[i].p = va_arg (ap, void *);
  57. break;
  58. --
  59. 2.34.1