m68k-m68040.patch 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. diff -Nur glibc-2.38.orig/sysdeps/m68k/m680x0/bits/flt-eval-method.h glibc-2.38/sysdeps/m68k/m680x0/bits/flt-eval-method.h
  2. --- glibc-2.38.orig/sysdeps/m68k/m680x0/bits/flt-eval-method.h 2023-07-31 19:54:16.000000000 +0200
  3. +++ glibc-2.38/sysdeps/m68k/m680x0/bits/flt-eval-method.h 1970-01-01 01:00:00.000000000 +0100
  4. @@ -1,25 +0,0 @@
  5. -/* Define __GLIBC_FLT_EVAL_METHOD. M68K version.
  6. - Copyright (C) 2016-2023 Free Software Foundation, Inc.
  7. - This file is part of the GNU C Library.
  8. -
  9. - The GNU C Library is free software; you can redistribute it and/or
  10. - modify it under the terms of the GNU Lesser General Public
  11. - License as published by the Free Software Foundation; either
  12. - version 2.1 of the License, or (at your option) any later version.
  13. -
  14. - The GNU C Library is distributed in the hope that it will be useful,
  15. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. - Lesser General Public License for more details.
  18. -
  19. - You should have received a copy of the GNU Lesser General Public
  20. - License along with the GNU C Library; if not, see
  21. - <https://www.gnu.org/licenses/>. */
  22. -
  23. -#ifndef _MATH_H
  24. -# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
  25. -#endif
  26. -
  27. -/* The m68k FPUs evaluate all values in the 96-bit floating-point
  28. - format which is also available for the user as 'long double'. */
  29. -#define __GLIBC_FLT_EVAL_METHOD 2
  30. diff -Nur glibc-2.38.orig/sysdeps/m68k/m680x0/m68020/wordcopy.S glibc-2.38/sysdeps/m68k/m680x0/m68020/wordcopy.S
  31. --- glibc-2.38.orig/sysdeps/m68k/m680x0/m68020/wordcopy.S 2023-07-31 19:54:16.000000000 +0200
  32. +++ glibc-2.38/sysdeps/m68k/m680x0/m68020/wordcopy.S 1970-01-01 01:00:00.000000000 +0100
  33. @@ -1 +0,0 @@
  34. -/* Empty, not needed. */
  35. diff -Nur glibc-2.38.orig/sysdeps/m68k/wordcopy.c glibc-2.38/sysdeps/m68k/wordcopy.c
  36. --- glibc-2.38.orig/sysdeps/m68k/wordcopy.c 1970-01-01 01:00:00.000000000 +0100
  37. +++ glibc-2.38/sysdeps/m68k/wordcopy.c 2023-08-10 16:23:10.972526508 +0200
  38. @@ -0,0 +1,21 @@
  39. +/* Definitions for memory copy functions. Motorola 68020 version.
  40. + Copyright (C) 2023 Free Software Foundation, Inc.
  41. + This file is part of the GNU C Library.
  42. +
  43. + The GNU C Library is free software; you can redistribute it and/or
  44. + modify it under the terms of the GNU Lesser General Public
  45. + License as published by the Free Software Foundation; either
  46. + version 2.1 of the License, or (at your option) any later version.
  47. +
  48. + The GNU C Library is distributed in the hope that it will be useful,
  49. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  50. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  51. + Lesser General Public License for more details.
  52. +
  53. + You should have received a copy of the GNU Lesser General Public
  54. + License along with the GNU C Library. If not, see
  55. + <https://www.gnu.org/licenses/>. */
  56. +
  57. +#if !defined(__mc68020__) && !defined(mc68020)
  58. +#include <string/wordcopy.c>
  59. +#endif