Skip to content

Commit 3ca5189

Browse files
committed
devkitA64: update newlib to 4.2.0.20211231
1 parent 4dc7a33 commit 3ca5189

2 files changed

Lines changed: 64 additions & 64 deletions

File tree

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/libgloss/configure b/libgloss/configure
2-
index 816b9c4b8..b79edb6c8 100755
2+
index e70c57d89..ac5c745f9 100755
33
--- a/libgloss/configure
44
+++ b/libgloss/configure
5-
@@ -2609,6 +2609,8 @@ if test "${config_libnosys}" = "true"; then
5+
@@ -2787,6 +2787,8 @@ if test "${config_libnosys}" = "true"; then
66

77
fi
88

@@ -11,12 +11,12 @@ index 816b9c4b8..b79edb6c8 100755
1111
DEPDIR="${am__leading_dot}deps"
1212

1313
ac_config_commands="$ac_config_commands depfiles"
14-
diff --git a/libgloss/configure.in b/libgloss/configure.in
15-
index 4111724e1..0e44d885e 100644
16-
--- a/libgloss/configure.in
17-
+++ b/libgloss/configure.in
14+
diff --git a/libgloss/configure.ac b/libgloss/configure.ac
15+
index 0fbe99526..577dfdec6 100644
16+
--- a/libgloss/configure.ac
17+
+++ b/libgloss/configure.ac
1818
@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
19-
AC_PREREQ(2.59)
19+
AC_PREREQ(2.69)dnl
2020
AC_INIT([libgloss],[LIBGLOSS_VERSION])
2121
AC_CONFIG_SRCDIR([libnosys])
2222
+AC_CONFIG_SRCDIR([libsysbase])
@@ -5141,11 +5141,11 @@ index 000000000..aa653c235
51415141
+
51425142
+
51435143
+
5144-
diff --git a/libgloss/libsysbase/configure.in b/libgloss/libsysbase/configure.in
5144+
diff --git a/libgloss/libsysbase/configure.ac b/libgloss/libsysbase/configure.ac
51455145
new file mode 100644
51465146
index 000000000..da85a3f46
51475147
--- /dev/null
5148-
+++ b/libgloss/libsysbase/configure.in
5148+
+++ b/libgloss/libsysbase/configure.ac
51495149
@@ -0,0 +1,202 @@
51505150
+# Copyright (c) 1995, 1996 Cygnus Support
51515151
+#
@@ -8748,10 +8748,10 @@ index 000000000..61de918bc
87488748
+ return ret;
87498749
+}
87508750
diff --git a/newlib/configure.host b/newlib/configure.host
8751-
index 1ddbb6c76..f096346dc 100644
8751+
index c429dde1c..fd3171ad2 100644
87528752
--- a/newlib/configure.host
87538753
+++ b/newlib/configure.host
8754-
@@ -687,13 +687,25 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
8754+
@@ -686,13 +686,25 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
87558755
syscall_dir=syscalls
87568756
;;
87578757
aarch64*-*-*)
@@ -8866,10 +8866,10 @@ index 000000000..a71a5d847
88668866
+
88678867
+#endif
88688868
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
8869-
index ba1a8a17e..f521cad89 100644
8869+
index 799ac494a..4174d72ab 100644
88708870
--- a/newlib/libc/include/math.h
88718871
+++ b/newlib/libc/include/math.h
8872-
@@ -426,7 +426,7 @@ extern float hypotf (float, float);
8872+
@@ -436,7 +436,7 @@ extern float hypotf (float, float);
88738873
simply call the double functions. On Cygwin the long double functions
88748874
are implemented independently from newlib to be able to use optimized
88758875
assembler functions despite using the Microsoft x86_64 ABI. */
@@ -8879,7 +8879,7 @@ index ba1a8a17e..f521cad89 100644
88798879
#ifndef __math_68881
88808880
extern long double atanl (long double);
88818881
diff --git a/newlib/libc/include/reent.h b/newlib/libc/include/reent.h
8882-
index 2b01fbe8f..7af875b81 100644
8882+
index 23d572cd3..65310c084 100644
88838883
--- a/newlib/libc/include/reent.h
88848884
+++ b/newlib/libc/include/reent.h
88858885
@@ -150,6 +150,7 @@ extern int _mkdir_r (struct _reent *, const char *, int);
@@ -8965,6 +8965,19 @@ index 000000000..4afb0e419
89658965
+#endif /* defined(_POSIX_SEMAPHORES) */
89668966
+
89678967
+#endif /* !_SEMAPHORE_H_ */
8968+
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
8969+
index 7748351f0..e87104559 100644
8970+
--- a/newlib/libc/include/stdio.h
8971+
+++ b/newlib/libc/include/stdio.h
8972+
@@ -227,7 +227,7 @@ int fgetpos (FILE *, _fpos_t *);
8973+
#else
8974+
int fgetpos (FILE *__restrict, fpos_t *__restrict);
8975+
#endif
8976+
-int fseek (FILE *, long, int);
8977+
+int fseek (FILE *, off_t, int);
8978+
#ifdef _LIBC
8979+
int fsetpos (FILE *, const _fpos_t *);
8980+
#else
89688981
diff --git a/newlib/libc/include/sys/_pthreadtypes.h b/newlib/libc/include/sys/_pthreadtypes.h
89698982
index 75e9e1cbf..dc63dbe6a 100644
89708983
--- a/newlib/libc/include/sys/_pthreadtypes.h
@@ -9154,7 +9167,7 @@ index f810b008f..ca7e11dc7 100644
91549167
+
91559168
#endif /* !_SYS__TIMESPEC_H_ */
91569169
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
9157-
index 4bc8d29bf..35c05e6af 100644
9170+
index 61a6f95d8..34aeaad3d 100644
91589171
--- a/newlib/libc/include/sys/config.h
91599172
+++ b/newlib/libc/include/sys/config.h
91609173
@@ -4,6 +4,9 @@
@@ -9236,10 +9249,10 @@ index a3fb5c02c..b208de4a7 100644
92369249
+
92379250
+#endif // _dirent_h_
92389251
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
9239-
index 218807178..93294ad2e 100644
9252+
index 45476ce4a..6ed532439 100644
92409253
--- a/newlib/libc/include/sys/features.h
92419254
+++ b/newlib/libc/include/sys/features.h
9242-
@@ -330,6 +330,16 @@ extern "C" {
9255+
@@ -331,6 +331,16 @@ extern "C" {
92439256
# define __SSP_FORTIFY_LEVEL 0
92449257
#endif
92459258

@@ -9562,7 +9575,7 @@ index 9a6f115a6..fdd6cf92b 100644
95629575
#define MAX(a,b) ((a) > (b) ? (a) : (b))
95639576
#define MIN(a,b) ((a) < (b) ? (a) : (b))
95649577
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
9565-
index 74b70e9c0..d8c5410ec 100644
9578+
index e4e36170e..5b8d06ed6 100644
95669579
--- a/newlib/libc/include/sys/reent.h
95679580
+++ b/newlib/libc/include/sys/reent.h
95689581
@@ -421,6 +421,8 @@ struct _reent
@@ -9583,7 +9596,7 @@ index 74b70e9c0..d8c5410ec 100644
95839596

95849597
#ifdef _REENT_GLOBAL_STDIO_STREAMS
95859598
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
9586-
index 8769112b0..5526e59ee 100644
9599+
index 6525272dd..d24673618 100644
95879600
--- a/newlib/libc/include/sys/stat.h
95889601
+++ b/newlib/libc/include/sys/stat.h
95899602
@@ -142,8 +142,9 @@ int mkfifo (const char *__path, mode_t __mode );
@@ -9826,10 +9839,10 @@ index a0c80843a..efabdcfc4 100644
98269839

98279840
/* Only access fixed "C" locale using this function. Fake for !_MB_CAPABLE
98289841
diff --git a/newlib/libc/machine/aarch64/Makefile.am b/newlib/libc/machine/aarch64/Makefile.am
9829-
index e8b8197fa..011f69d69 100644
9842+
index ca7c79074..c5815db9d 100644
98309843
--- a/newlib/libc/machine/aarch64/Makefile.am
98319844
+++ b/newlib/libc/machine/aarch64/Makefile.am
9832-
@@ -9,6 +9,7 @@ AM_CCASFLAGS = $(INCLUDES)
9845+
@@ -7,6 +7,7 @@ AM_CCASFLAGS = $(INCLUDES)
98339846
noinst_LIBRARIES = lib.a
98349847

98359848
lib_a_SOURCES =
@@ -9838,11 +9851,11 @@ index e8b8197fa..011f69d69 100644
98389851
lib_a_SOURCES += memchr.S
98399852
lib_a_SOURCES += memcmp-stub.c
98409853
diff --git a/newlib/libc/machine/aarch64/Makefile.in b/newlib/libc/machine/aarch64/Makefile.in
9841-
index 39b23a1ce..969512471 100644
9854+
index c854a1b96..3361b0a8c 100644
98429855
--- a/newlib/libc/machine/aarch64/Makefile.in
98439856
+++ b/newlib/libc/machine/aarch64/Makefile.in
9844-
@@ -69,22 +69,22 @@ LIBRARIES = $(noinst_LIBRARIES)
9845-
ARFLAGS = cru
9857+
@@ -75,22 +75,22 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
9858+
am__v_at_0 = @
98469859
lib_a_AR = $(AR) $(ARFLAGS)
98479860
lib_a_LIBADD =
98489861
-am_lib_a_OBJECTS = lib_a-memchr-stub.$(OBJEXT) lib_a-memchr.$(OBJEXT) \
@@ -9880,7 +9893,7 @@ index 39b23a1ce..969512471 100644
98809893
lib_a_OBJECTS = $(am_lib_a_OBJECTS)
98819894
DEFAULT_INCLUDES = -I.@am__isrc@
98829895
depcomp =
9883-
@@ -210,7 +210,7 @@ AUTOMAKE_OPTIONS = cygnus
9896+
@@ -232,7 +232,7 @@ top_srcdir = @top_srcdir@
98849897
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
98859898
AM_CCASFLAGS = $(INCLUDES)
98869899
noinst_LIBRARIES = lib.a
@@ -9889,9 +9902,9 @@ index 39b23a1ce..969512471 100644
98899902
memcpy-stub.c memcpy.S memmove-stub.c memmove.S memset-stub.c \
98909903
memset.S rawmemchr.S rawmemchr-stub.c setjmp.S stpcpy-stub.c \
98919904
stpcpy.S strchr-stub.c strchr.S strchrnul-stub.c strchrnul.S \
9892-
@@ -381,6 +381,12 @@ lib_a-strrchr.obj: strrchr.S
9905+
@@ -403,6 +403,12 @@ lib_a-strrchr.obj: strrchr.S
98939906
.c.obj:
9894-
$(COMPILE) -c `$(CYGPATH_W) '$<'`
9907+
$(AM_V_CC)$(COMPILE) -c `$(CYGPATH_W) '$<'`
98959908

98969909
+lib_a-access.o: access.c
98979910
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-access.o `test -f 'access.c' || echo '$(srcdir)/'`access.c
@@ -9900,7 +9913,7 @@ index 39b23a1ce..969512471 100644
99009913
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-access.obj `if test -f 'access.c'; then $(CYGPATH_W) 'access.c'; else $(CYGPATH_W) '$(srcdir)/access.c'; fi`
99019914
+
99029915
lib_a-memchr-stub.o: memchr-stub.c
9903-
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr-stub.o `test -f 'memchr-stub.c' || echo '$(srcdir)/'`memchr-stub.c
9916+
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr-stub.o `test -f 'memchr-stub.c' || echo '$(srcdir)/'`memchr-stub.c
99049917

99059918
diff --git a/newlib/libc/machine/aarch64/access.c b/newlib/libc/machine/aarch64/access.c
99069919
new file mode 100644
@@ -9942,10 +9955,10 @@ index 000000000..980682ef3
99429955
+}
99439956
+
99449957
diff --git a/newlib/libc/machine/arm/Makefile.am b/newlib/libc/machine/arm/Makefile.am
9945-
index 9bd35e733..731130092 100644
9958+
index 2d559464a..1e6625c05 100644
99469959
--- a/newlib/libc/machine/arm/Makefile.am
99479960
+++ b/newlib/libc/machine/arm/Makefile.am
9948-
@@ -11,7 +11,9 @@ noinst_LIBRARIES = lib.a
9961+
@@ -9,7 +9,9 @@ noinst_LIBRARIES = lib.a
99499962
lib_a_SOURCES = setjmp.S strcmp.S strcpy.c \
99509963
aeabi_memcpy.c aeabi_memcpy-armv7a.S \
99519964
aeabi_memmove.c aeabi_memmove-soft.S \
@@ -9957,10 +9970,10 @@ index 9bd35e733..731130092 100644
99579970
lib_a_SOURCES += memchr.S
99589971
lib_a_SOURCES += memcpy-stub.c
99599972
diff --git a/newlib/libc/machine/arm/Makefile.in b/newlib/libc/machine/arm/Makefile.in
9960-
index d9dbcd5c3..43712f813 100644
9973+
index 17a46a44d..b319b8349 100644
99619974
--- a/newlib/libc/machine/arm/Makefile.in
99629975
+++ b/newlib/libc/machine/arm/Makefile.in
9963-
@@ -75,10 +75,10 @@ am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT) lib_a-strcmp.$(OBJEXT) \
9976+
@@ -81,10 +81,10 @@ am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT) lib_a-strcmp.$(OBJEXT) \
99649977
lib_a-aeabi_memmove.$(OBJEXT) \
99659978
lib_a-aeabi_memmove-soft.$(OBJEXT) \
99669979
lib_a-aeabi_memset.$(OBJEXT) lib_a-aeabi_memset-soft.$(OBJEXT) \
@@ -9975,7 +9988,7 @@ index d9dbcd5c3..43712f813 100644
99759988
lib_a_OBJECTS = $(am_lib_a_OBJECTS)
99769989
DEFAULT_INCLUDES = -I.@am__isrc@
99779990
depcomp =
9978-
@@ -208,8 +208,8 @@ noinst_LIBRARIES = lib.a
9991+
@@ -230,8 +230,8 @@ noinst_LIBRARIES = lib.a
99799992
lib_a_SOURCES = setjmp.S strcmp.S strcpy.c aeabi_memcpy.c \
99809993
aeabi_memcpy-armv7a.S aeabi_memmove.c aeabi_memmove-soft.S \
99819994
aeabi_memset.c aeabi_memset-soft.S aeabi_memclr.c \
@@ -9986,9 +9999,9 @@ index d9dbcd5c3..43712f813 100644
99869999
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
998710000
lib_a_CFLAGS = $(AM_CFLAGS)
998810001
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
9989-
@@ -367,6 +367,12 @@ lib_a-aeabi_memclr.o: aeabi_memclr.c
10002+
@@ -389,6 +389,12 @@ lib_a-aeabi_memclr.o: aeabi_memclr.c
999010003
lib_a-aeabi_memclr.obj: aeabi_memclr.c
9991-
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-aeabi_memclr.obj `if test -f 'aeabi_memclr.c'; then $(CYGPATH_W) 'aeabi_memclr.c'; else $(CYGPATH_W) '$(srcdir)/aeabi_memclr.c'; fi`
10004+
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-aeabi_memclr.obj `if test -f 'aeabi_memclr.c'; then $(CYGPATH_W) 'aeabi_memclr.c'; else $(CYGPATH_W) '$(srcdir)/aeabi_memclr.c'; fi`
999210005

999310006
+lib_a-sync_synchronize.o: sync_synchronize.c
999410007
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sync_synchronize.o `test -f 'sync_synchronize.c' || echo '$(srcdir)/'`sync_synchronize.c
@@ -9997,7 +10010,7 @@ index d9dbcd5c3..43712f813 100644
999710010
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sync_synchronize.obj `if test -f 'sync_synchronize.c'; then $(CYGPATH_W) 'sync_synchronize.c'; else $(CYGPATH_W) '$(srcdir)/sync_synchronize.c'; fi`
999810011
+
999910012
lib_a-memchr-stub.o: memchr-stub.c
10000-
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr-stub.o `test -f 'memchr-stub.c' || echo '$(srcdir)/'`memchr-stub.c
10013+
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr-stub.o `test -f 'memchr-stub.c' || echo '$(srcdir)/'`memchr-stub.c
1000110014

1000210015
diff --git a/newlib/libc/machine/arm/sync_synchronize.c b/newlib/libc/machine/arm/sync_synchronize.c
1000310016
new file mode 100644
@@ -10185,7 +10198,7 @@ index d8dfdbd82..a85b5a99b 100644
1018510198
return 0;
1018610199
}
1018710200
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
10188-
index 1aaf05aa4..b67182a79 100644
10201+
index c1483c0ac..319b1972b 100644
1018910202
--- a/newlib/libc/stdio/vfprintf.c
1019010203
+++ b/newlib/libc/stdio/vfprintf.c
1019110204
@@ -108,6 +108,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
@@ -10197,7 +10210,7 @@ index 1aaf05aa4..b67182a79 100644
1019710210
#if defined(LIBC_SCCS) && !defined(lint)
1019810211
/*static char *sccsid = "from: @(#)vfprintf.c 5.50 (Berkeley) 12/16/92";*/
1019910212
static char *rcsid = "$Id$";
10200-
@@ -1434,7 +1436,7 @@ reswitch: switch (ch) {
10213+
@@ -1431,7 +1433,7 @@ reswitch: switch (ch) {
1020110214
string:
1020210215
#endif
1020310216
sign = '\0';
@@ -10206,7 +10219,7 @@ index 1aaf05aa4..b67182a79 100644
1020610219
/* Behavior is undefined if the user passed a
1020710220
NULL string when precision is not 0.
1020810221
However, if we are not optimizing for size,
10209-
@@ -1444,7 +1446,7 @@ string:
10222+
@@ -1441,7 +1443,7 @@ string:
1021010223
size = ((unsigned) prec > 6U) ? 6 : prec;
1021110224
}
1021210225
else
@@ -10216,7 +10229,7 @@ index 1aaf05aa4..b67182a79 100644
1021610229
if (ch == 'S' || (flags & LONGINT)) {
1021710230
mbstate_t ps;
1021810231
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c
10219-
index 994cee7fc..5d1d0a1cd 100644
10232+
index 037692531..b5e524c53 100644
1022010233
--- a/newlib/libc/stdio/vfscanf.c
1022110234
+++ b/newlib/libc/stdio/vfscanf.c
1022210235
@@ -74,6 +74,8 @@ These are GNU extensions.
@@ -10229,7 +10242,7 @@ index 994cee7fc..5d1d0a1cd 100644
1022910242
#include <reent.h>
1023010243
#include <newlib.h>
1023110244
diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c
10232-
index 980b31e3b..722be905e 100644
10245+
index 7384b37d3..b4e1dbde5 100644
1023310246
--- a/newlib/libc/stdio/vfwprintf.c
1023410247
+++ b/newlib/libc/stdio/vfwprintf.c
1023510248
@@ -92,6 +92,9 @@ SEEALSO
@@ -10243,7 +10256,7 @@ index 980b31e3b..722be905e 100644
1024310256

1024410257
#ifdef INTEGER_ONLY
1024510258
diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c
10246-
index f00d41a09..7e290ee8d 100644
10259+
index e9e00dfec..c38d81e17 100644
1024710260
--- a/newlib/libc/stdio/vfwscanf.c
1024810261
+++ b/newlib/libc/stdio/vfwscanf.c
1024910262
@@ -74,6 +74,9 @@ PORTABILITY
@@ -10257,10 +10270,10 @@ index f00d41a09..7e290ee8d 100644
1025710270
#include <reent.h>
1025810271
#include <newlib.h>
1025910272
diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am
10260-
index 357e37beb..7183b2100 100644
10273+
index a91bdc784..e049adc9a 100644
1026110274
--- a/newlib/libc/stdlib/Makefile.am
1026210275
+++ b/newlib/libc/stdlib/Makefile.am
10263-
@@ -110,6 +110,7 @@ MALLOCR=mallocr
10276+
@@ -112,6 +112,7 @@ MALLOCR=mallocr
1026410277
endif
1026510278

1026610279
EXTENDED_SOURCES = \
@@ -10269,10 +10282,10 @@ index 357e37beb..7183b2100 100644
1026910282
arc4random_uniform.c \
1027010283
cxa_atexit.c \
1027110284
diff --git a/newlib/libc/stdlib/Makefile.in b/newlib/libc/stdlib/Makefile.in
10272-
index 699831f13..1e6d2e612 100644
10285+
index 0fed51d79..2d8dc1325 100644
1027310286
--- a/newlib/libc/stdlib/Makefile.in
1027410287
+++ b/newlib/libc/stdlib/Makefile.in
10275-
@@ -119,7 +119,7 @@ am__objects_2 = lib_a-__adjust.$(OBJEXT) lib_a-__atexit.$(OBJEXT) \
10288+
@@ -127,7 +127,7 @@ am__objects_2 = lib_a-__adjust.$(OBJEXT) lib_a-__atexit.$(OBJEXT) \
1027610289
lib_a-wcstoumax.$(OBJEXT) lib_a-wcstombs.$(OBJEXT) \
1027710290
lib_a-wcstombs_r.$(OBJEXT) lib_a-wctomb.$(OBJEXT) \
1027810291
lib_a-wctomb_r.$(OBJEXT) $(am__objects_1)
@@ -10281,7 +10294,7 @@ index 699831f13..1e6d2e612 100644
1028110294
lib_a-arc4random_uniform.$(OBJEXT) lib_a-cxa_atexit.$(OBJEXT) \
1028210295
lib_a-cxa_finalize.$(OBJEXT) lib_a-drand48.$(OBJEXT) \
1028310296
lib_a-ecvtbuf.$(OBJEXT) lib_a-efgcvt.$(OBJEXT) \
10284-
@@ -173,7 +173,7 @@ am__objects_9 = __adjust.lo __atexit.lo __call_atexit.lo __exp10.lo \
10297+
@@ -182,7 +182,7 @@ am__objects_9 = __adjust.lo __atexit.lo __call_atexit.lo __exp10.lo \
1028510298
utoa.lo wcstod.lo wcstoimax.lo wcstol.lo wcstoul.lo \
1028610299
wcstoumax.lo wcstombs.lo wcstombs_r.lo wctomb.lo wctomb_r.lo \
1028710300
$(am__objects_8)
@@ -10290,9 +10303,9 @@ index 699831f13..1e6d2e612 100644
1029010303
cxa_finalize.lo drand48.lo ecvtbuf.lo efgcvt.lo erand48.lo \
1029110304
jrand48.lo lcong48.lo lrand48.lo mrand48.lo msize.lo mtrim.lo \
1029210305
nrand48.lo rand48.lo seed48.lo srand48.lo strtoll.lo \
10293-
@@ -1054,6 +1054,12 @@ lib_a-wcstold.o: wcstold.c
10306+
@@ -1102,6 +1102,12 @@ lib_a-wcstold.o: wcstold.c
1029410307
lib_a-wcstold.obj: wcstold.c
10295-
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-wcstold.obj `if test -f 'wcstold.c'; then $(CYGPATH_W) 'wcstold.c'; else $(CYGPATH_W) '$(srcdir)/wcstold.c'; fi`
10308+
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-wcstold.obj `if test -f 'wcstold.c'; then $(CYGPATH_W) 'wcstold.c'; else $(CYGPATH_W) '$(srcdir)/wcstold.c'; fi`
1029610309

1029710310
+lib_a-threads.o: threads.c
1029810311
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-threads.o `test -f 'threads.c' || echo '$(srcdir)/'`threads.c
@@ -10301,21 +10314,8 @@ index 699831f13..1e6d2e612 100644
1030110314
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-threads.obj `if test -f 'threads.c'; then $(CYGPATH_W) 'threads.c'; else $(CYGPATH_W) '$(srcdir)/threads.c'; fi`
1030210315
+
1030310316
lib_a-arc4random.o: arc4random.c
10304-
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-arc4random.o `test -f 'arc4random.c' || echo '$(srcdir)/'`arc4random.c
10305-
10306-
diff --git a/newlib/libc/stdlib/aligned_alloc.c b/newlib/libc/stdlib/aligned_alloc.c
10307-
index feb22c24b..3dae0c9a9 100644
10308-
--- a/newlib/libc/stdlib/aligned_alloc.c
10309-
+++ b/newlib/libc/stdlib/aligned_alloc.c
10310-
@@ -28,6 +28,8 @@
10311-
10312-
#include <reent.h>
10313-
#include <stdlib.h>
10314-
+#include <malloc.h>
10315-
+#include <errno.h>
10317+
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-arc4random.o `test -f 'arc4random.c' || echo '$(srcdir)/'`arc4random.c
1031610318

10317-
void *
10318-
aligned_alloc (size_t align, size_t size)
1031910319
diff --git a/newlib/libc/stdlib/mbtowc_r.c b/newlib/libc/stdlib/mbtowc_r.c
1032010320
index 920a7ea3c..ba5ee7652 100644
1032110321
--- a/newlib/libc/stdlib/mbtowc_r.c

select_toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ case "$VERSION" in
5151
"3" )
5252
GCC_VER=11.2.0
5353
BINUTILS_VER=2.32
54-
NEWLIB_VER=4.1.0
54+
NEWLIB_VER=4.2.0.20211231
5555
basedir='dka64'
5656
package=devkitA64
5757
target=aarch64-none-elf

0 commit comments

Comments
 (0)