Compare commits

..

4 Commits

Author SHA1 Message Date
Dave Murphy
174e0edc3f
devkitARM: fix c89 building 2026-04-11 17:35:30 +01:00
Dave Murphy
d2e6e22b37
remove stale patches 2026-02-20 15:55:30 +00:00
Dave Murphy
f1a462cc36
devkitPPC: update newlib patch 2026-02-20 15:54:52 +00:00
Dave Murphy
9681963375
devkitA64: update newlib patch 2026-02-20 15:52:39 +00:00
4 changed files with 57 additions and 13454 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
#---------------------------------------------------------------------------------
# devkitARM release 67.1
# devkitPPC release 49.1
# devkitA64 release 29.1
# devkitARM release 67.2
# devkitPPC release 49.2
# devkitA64 release 29.2
#---------------------------------------------------------------------------------
if [ 0 -eq 1 ] ; then

File diff suppressed because it is too large Load Diff

View File

@ -7241,10 +7241,10 @@ index 000000000..5c5831cdf
+}
diff --git a/libgloss/libsysbase/flock.c b/libgloss/libsysbase/flock.c
new file mode 100644
index 000000000..8a66cd19f
index 000000000..e9d2200d4
--- /dev/null
+++ b/libgloss/libsysbase/flock.c
@@ -0,0 +1,22 @@
@@ -0,0 +1,43 @@
+#include <config.h>
+#include <_ansi.h>
+#include <_syslist.h>
@ -7267,6 +7267,28 @@ index 000000000..8a66cd19f
+ __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock);
+}
+
+void flockfile(FILE *fp)
+{
+ if (!(fp->_flags & __SSTR)) {
+ __lock_acquire_recursive(fp->_lock);
+ }
+}
+
+void funlockfile(FILE *fp)
+{
+ if (!(fp->_flags & __SSTR)) {
+ __lock_release_recursive(fp->_lock);
+ }
+}
+
+int ftrylockfile(FILE *fp)
+{
+ if (!(fp->_flags & __SSTR)) {
+ return __lock_try_acquire_recursive(fp->_lock);
+ }
+ return 0;
+}
\ No newline at end of file
diff --git a/libgloss/libsysbase/fnmatch.c b/libgloss/libsysbase/fnmatch.c
new file mode 100644
index 000000000..893b662ab
@ -7966,10 +7988,10 @@ index 000000000..5e81c5d42
+#endif
diff --git a/libgloss/libsysbase/iosupport.c b/libgloss/libsysbase/iosupport.c
new file mode 100644
index 000000000..3fdf9749f
index 000000000..d766b3a17
--- /dev/null
+++ b/libgloss/libsysbase/iosupport.c
@@ -0,0 +1,132 @@
@@ -0,0 +1,108 @@
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
@ -7994,34 +8016,10 @@ index 000000000..3fdf9749f
+//---------------------------------------------------------------------------------
+const devoptab_t dotab_stdnull = {
+//---------------------------------------------------------------------------------
+ "stdnull", // device name
+ 0, // size of file structure
+ NULL, // device open
+ NULL, // device close
+ null_write, // device write
+ NULL, // device read
+ NULL, // device seek
+ NULL, // device fstat
+ NULL, // device stat
+ NULL, // device link
+ NULL, // device unlink
+ NULL, // device chdir
+ NULL, // device rename
+ NULL, // device mkdir
+ 0, // dirStateSize
+ NULL, // device diropen_r
+ NULL, // device dirreset_r
+ NULL, // device dirnext_r
+ NULL, // device dirclose_r
+ NULL, // device statvfs_r
+ NULL, // device ftruncate_r
+ NULL, // device fsync_r
+ NULL, // deviceData
+ NULL, // chmod_r
+ NULL, // fchmod_r
+ NULL, // rmdir_r
+ NULL, // lstat_r
+ NULL, // utimes_r
+ .name = "stdnull",
+ .structSize = 0,
+ .write_r = null_write,
+ .dirStateSize = 0
+};
+
+//---------------------------------------------------------------------------------
@ -11821,6 +11819,19 @@ index 000000000..380329d34
+
+#endif // _SYS_STATVFS_H
\ No newline at end of file
diff --git a/newlib/libc/include/sys/stdio.h b/newlib/libc/include/sys/stdio.h
index 91a274596..f264adb74 100644
--- a/newlib/libc/include/sys/stdio.h
+++ b/newlib/libc/include/sys/stdio.h
@@ -24,4 +24,8 @@
#endif
#endif
+void flockfile (FILE *fp);
+void funlockfile (FILE *fp);
+int ftrylockfile (FILE *fp);
+
#endif /* _NEWLIB_STDIO_H */
diff --git a/newlib/libc/include/sys/syslimits.h b/newlib/libc/include/sys/syslimits.h
index c872d2018..b3800187f 100644
--- a/newlib/libc/include/sys/syslimits.h
@ -12501,10 +12512,10 @@ index 000000000..3618eea85
+#endif // __SYS_LOCK_H__
diff --git a/newlib/libc/machine/powerpc/sys/stdio.h b/newlib/libc/machine/powerpc/sys/stdio.h
new file mode 100644
index 000000000..04ebd1ee0
index 000000000..ed88fef8a
--- /dev/null
+++ b/newlib/libc/machine/powerpc/sys/stdio.h
@@ -0,0 +1,25 @@
@@ -0,0 +1,29 @@
+#ifndef _NEWLIB_STDIO_H
+#define _NEWLIB_STDIO_H
+
@ -12528,6 +12539,10 @@ index 000000000..04ebd1ee0
+# endif
+#endif /* __SINGLE_THREAD__ */
+
+void flockfile (FILE *fp);
+void funlockfile (FILE *fp);
+int ftrylockfile (FILE *fp);
+
+#endif /* _NEWLIB_STDIO_H */
+
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
@ -13284,7 +13299,7 @@ index 000000000..2aaca6080
+#endif // _dirent_h_
diff --git a/newlib/libc/sys/arm/sys/lock.h b/newlib/libc/sys/arm/sys/lock.h
new file mode 100644
index 000000000..ccce683f1
index 000000000..9d9ffa3bb
--- /dev/null
+++ b/newlib/libc/sys/arm/sys/lock.h
@@ -0,0 +1,122 @@
@ -13324,7 +13339,7 @@ index 000000000..ccce683f1
+ *lock = __LOCK_INITIALIZER_RECURSIVE;
+}
+
+static inline void __libc_lock_close_recursive(_LOCK_RECURSIVE_T *lock ) {}
+static __inline void __libc_lock_close_recursive(_LOCK_RECURSIVE_T *lock ) {}
+
+extern void __libc_lock_acquire(_LOCK_T *lock);
+extern void __libc_lock_acquire_recursive(_LOCK_RECURSIVE_T *lock);

View File

@ -35,7 +35,7 @@ case "$VERSION" in
NEWLIB_VER=4.6.0.20260123
BINUTILS_PKGREL=2
GCC_PKGREL=7
NEWLIB_PKGREL=4
NEWLIB_PKGREL=5
basedir='dkarm-eabi'
package=devkitARM
target=arm-none-eabi
@ -52,7 +52,7 @@ case "$VERSION" in
NEWLIB_VER=4.6.0.20260123
BINUTILS_PKGREL=2
GCC_PKGREL=7
NEWLIB_PKGREL=2
NEWLIB_PKGREL=4
basedir='dkppc'
package=devkitPPC
target=powerpc-eabi
@ -69,7 +69,7 @@ case "$VERSION" in
NEWLIB_VER=4.6.0.20260123
BINUTILS_PKGREL=2
GCC_PKGREL=7
NEWLIB_PKGREL=3
NEWLIB_PKGREL=4
basedir='dka64'
package=devkitA64
target=aarch64-none-elf