diff options
Diffstat (limited to 'PATCHES/0020-binutil-2.37_RUST_NO_RECURSION_LIMIT_mingw.patch')
-rw-r--r-- | PATCHES/0020-binutil-2.37_RUST_NO_RECURSION_LIMIT_mingw.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/PATCHES/0020-binutil-2.37_RUST_NO_RECURSION_LIMIT_mingw.patch b/PATCHES/0020-binutil-2.37_RUST_NO_RECURSION_LIMIT_mingw.patch new file mode 100644 index 0000000..42a09d4 --- /dev/null +++ b/PATCHES/0020-binutil-2.37_RUST_NO_RECURSION_LIMIT_mingw.patch @@ -0,0 +1,16 @@ +diff -ruNb binutils-2.37.orig/libiberty/rust-demangle.c binutils-2.37/libiberty/rust-demangle.c +--- binutils-2.37.orig/libiberty/rust-demangle.c 2021-07-15 16:19:46.000000000 +0200 ++++ binutils-2.37/libiberty/rust-demangle.c 2021-09-24 07:38:20.014724822 +0200 +@@ -75,10 +75,10 @@ + int version; + + /* Recursion depth. */ +- uint recursion; ++ unsigned int recursion; + /* Maximum number of times demangle_path may be called recursively. */ + #define RUST_MAX_RECURSION_COUNT 1024 +-#define RUST_NO_RECURSION_LIMIT ((uint) -1) ++#define RUST_NO_RECURSION_LIMIT ((unsigned int) -1) + + uint64_t bound_lifetime_depth; + }; |