1
- From 928f527624c6cbc1d897c5f36309981971f47873 Mon Sep 17 00:00:00 2001
1
+ From 24fb12a2a1a46d759221b3d59b41502021cc877b Mon Sep 17 00:00:00 2001
2
2
From: Volodymyr Turanskyy <
[email protected] >
3
3
Date: Thu, 2 Jan 2025 16:23:27 +0000
4
4
Subject: [PATCH] Update patch for newlib-4.5.0 tag
@@ -12,11 +12,12 @@ Change-Id: Iec24f4305ad35a3a6df1672bb14555bf81249130
12
12
libgloss/arm/linux-crt0.c | 2 +-
13
13
libgloss/arm/syscalls.c | 6 +-
14
14
libgloss/arm/trap.S | 2 +-
15
- newlib/libc/include/sys/features.h | 2 +
15
+ newlib/libc/include/sys/features.h | 3 +
16
16
newlib/libc/machine/arm/setjmp.S | 4 +-
17
+ newlib/libc/string/wcwidth.c | 2 +-
17
18
newlib/libc/sys/arm/crt0.S | 2 +-
18
19
newlib/libc/sys/arm/trap.S | 2 +-
19
- 11 files changed, 73 insertions(+), 64 deletions(-)
20
+ 12 files changed, 75 insertions(+), 65 deletions(-)
20
21
21
22
diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in
22
23
index 54a00614d..be1450749 100644
@@ -398,14 +399,15 @@ index 845ad0173..2056c2adf 100644
398
399
.global __rt_stkovf_split_small
399
400
400
401
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
401
- index 325acdf5f..12cb6465b 100644
402
+ index 325acdf5f..dfaba8fe7 100644
402
403
--- a/newlib/libc/include/sys/features.h
403
404
+++ b/newlib/libc/include/sys/features.h
404
- @@ -27,6 +27,8 @@ extern "C" {
405
+ @@ -27,6 +27,9 @@ extern "C" {
405
406
406
407
#include <_newlib_version.h>
407
408
408
409
+ #define _DEFAULT_SOURCE
410
+ + #define _GNU_SOURCE
409
411
+
410
412
/* Macro to test version of GCC. Returns 0 for non-GCC or too old GCC. */
411
413
#ifndef __GNUC_PREREQ
@@ -427,6 +429,19 @@ index 0070f17cd..a53f7918e 100644
427
429
.arch_extension mve
428
430
# endif
429
431
#endif
432
+ diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
433
+ index 8348eefe8..65604c061 100644
434
+ --- a/newlib/libc/string/wcwidth.c
435
+ +++ b/newlib/libc/string/wcwidth.c
436
+ @@ -230,7 +230,7 @@ __wcwidth (const wint_t ucs)
437
+ }
438
+
439
+ int
440
+ - wcwidth (const wint_t wc)
441
+ + wcwidth (const wchar_t wc)
442
+ {
443
+ wint_t wi = wc;
444
+
430
445
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
431
446
index dae0f0465..51e86d549 100644
432
447
--- a/newlib/libc/sys/arm/crt0.S
0 commit comments