mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 09:38:52 +00:00
86c2982568
This refreshes the line numbers, removes any fuzz (which would make any future forward ports easier) and standardizes the patch/file headers (which makes them easier to read). Signed-off-by: Alexey Neyman <stilor@att.net>
53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
From 999566402e3d7c69032bbf47e28b44fc0926fe62 Mon Sep 17 00:00:00 2001
|
|
From: Christopher Wellons <wellons@nullprogram.com>
|
|
Date: Sun, 18 Jul 2021 16:57:19 -0400
|
|
Subject: [PATCH] Change "uint" to "unsigned"
|
|
|
|
This fixes a defect introduced in 25162c795. The "uint" type has not
|
|
been explicitly defined here on mingw, causing compilation to fail.
|
|
|
|
On linux we have this in /usr/include/sys/types.h
|
|
|
|
/* Old compatibility names for C types. */
|
|
typedef unsigned long int ulong;
|
|
typedef unsigned short int ushort;
|
|
typedef unsigned int uint;
|
|
|
|
So it's easy to see how such bugs can creep in.
|
|
|
|
* rust-demangle.c (struct rust_demangler): Change type of
|
|
"recursion" to unsigned.
|
|
(RUST_NO_RECURSION_LIMIT): Similarly in cast.
|
|
---
|
|
libiberty/ChangeLog | 6 ++++++
|
|
libiberty/rust-demangle.c | 4 ++--
|
|
2 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
--- a/libiberty/ChangeLog
|
|
+++ b/libiberty/ChangeLog
|
|
@@ -1,3 +1,9 @@
|
|
+2021-07-19 Christopher Wellons <wellons@nullprogram.com>
|
|
+
|
|
+ * rust-demangle.c (struct rust_demangler): Change type of
|
|
+ "recursion" to unsigned.
|
|
+ (RUST_NO_RECURSION_LIMIT): Similarly in cast.
|
|
+
|
|
2021-07-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
PR 99935
|
|
--- a/libiberty/rust-demangle.c
|
|
+++ b/libiberty/rust-demangle.c
|
|
@@ -75,10 +75,10 @@
|
|
int version;
|
|
|
|
/* Recursion depth. */
|
|
- uint recursion;
|
|
+ unsigned 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) -1)
|
|
|
|
uint64_t bound_lifetime_depth;
|
|
};
|