0001-fix-crossgcc-build-error.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From d65dc4f977d095e4f4b71522d85fc22fcf452fe8 Mon Sep 17 00:00:00 2001
  2. From: Leah Rowe <leah@libreboot.org>
  3. Date: Sat, 19 Nov 2022 14:55:44 +0000
  4. Subject: [PATCH 1/1] fix crossgcc build error
  5. ---
  6. util/crossgcc/patches/gcc-11.2.0_gnat.patch | 32 ++++++++++++++++++++-
  7. 1 file changed, 31 insertions(+), 1 deletion(-)
  8. diff --git a/util/crossgcc/patches/gcc-11.2.0_gnat.patch b/util/crossgcc/patches/gcc-11.2.0_gnat.patch
  9. index 2d7cecee24..c22cec45d0 100644
  10. --- a/util/crossgcc/patches/gcc-11.2.0_gnat.patch
  11. +++ b/util/crossgcc/patches/gcc-11.2.0_gnat.patch
  12. @@ -5,7 +5,37 @@
  13. # Extra flags to pass to recursive makes.
  14. -COMMON_ADAFLAGS= -gnatpg
  15. -+COMMON_ADAFLAGS= -gnatpg -gnatwGUR
  16. ++COMMON_ADAFLAGS= -gnatpg -gnatwn
  17. ifeq ($(TREECHECKING),)
  18. CHECKING_ADAFLAGS=
  19. else
  20. +diff -Nurp gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in gcc-11.2.0.new/gcc/ada/gcc-interface/Make-lang.in
  21. +--- gcc-11.2.0/gcc/ada/gcc-interface/Make-lang.in 2022-06-03 00:31:57.993273717 +0200
  22. ++++ gcc-11.2.0.new/gcc/ada/gcc-interface/Make-lang.in 2022-06-03 00:30:50.214166847 +0200
  23. +@@ -334,6 +334,7 @@ GNAT_ADA_OBJS = \
  24. + ada/hostparm.o \
  25. + ada/impunit.o \
  26. + ada/inline.o \
  27. ++ ada/libgnat/i-c.o \
  28. + ada/libgnat/interfac.o \
  29. + ada/itypes.o \
  30. + ada/krunch.o \
  31. +@@ -364,7 +365,10 @@ GNAT_ADA_OBJS = \
  32. + ada/rtsfind.o \
  33. + ada/libgnat/s-addope.o \
  34. + ada/libgnat/s-addima.o \
  35. ++ ada/libgnat/s-aotase.o \
  36. + ada/libgnat/s-assert.o \
  37. ++ ada/libgnat/s-atoope.o \
  38. ++ ada/libgnat/s-atopri.o \
  39. + ada/libgnat/s-bitops.o \
  40. + ada/libgnat/s-carun8.o \
  41. + ada/libgnat/s-casuti.o \
  42. +@@ -548,6 +552,7 @@ GNATBIND_OBJS = \
  43. + ada/hostparm.o \
  44. + ada/init.o \
  45. + ada/initialize.o \
  46. ++ ada/libgnat/i-c.o \
  47. + ada/libgnat/interfac.o \
  48. + ada/krunch.o \
  49. + ada/lib.o \
  50. --
  51. 2.25.1