diff --git a/main/gcc/0026-ada-musl-support-fixes.patch b/main/gcc/0026-ada-musl-support-fixes.patch index 98b7f90eb7e..91a8268ab8b 100644 --- a/main/gcc/0026-ada-musl-support-fixes.patch +++ b/main/gcc/0026-ada-musl-support-fixes.patch @@ -4,17 +4,17 @@ Date: Fri, 21 Aug 2020 07:07:48 +0000 Subject: [PATCH 26/35] ada: musl support fixes --- - gcc/ada/Makefile.rtl | 10 +++++----- + gcc/ada/Makefile.rtl | 16 ++++++++-------- gcc/ada/adaint.c | 34 +++++++++++++++++++--------------- gcc/ada/adaint.h | 10 ++++------ gcc/ada/terminals.c | 8 ++++---- - 4 files changed, 32 insertions(+), 30 deletions(-) + 4 files changed, 35 insertions(+), 33 deletions(-) diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl -index 96306f8cc9a..090b6770ae5 100644 +index 32cbdb692..463028fbe 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl -@@ -1549,7 +1549,7 @@ ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),) +@@ -1558,7 +1558,7 @@ ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),) s-intman.adb #include #endif @@ -84,7 +102,7 @@ index 8522094164e..92b230a462b 100644 #ifdef __PikeOS__ #define __BSD_VISIBLE 1 -@@ -3438,7 +3443,6 @@ __gnat_lwp_self (void) +@@ -3465,7 +3470,6 @@ __gnat_lwp_self (void) #endif #if defined (__linux__) @@ -92,7 +110,7 @@ index 8522094164e..92b230a462b 100644 /* glibc versions earlier than 2.7 do not define the routines to handle dynamically allocated CPU sets. For these targets, we use the static -@@ -3448,7 +3452,7 @@ __gnat_lwp_self (void) +@@ -3475,7 +3479,7 @@ __gnat_lwp_self (void) /* Dynamic cpu sets */ @@ -101,7 +119,7 @@ index 8522094164e..92b230a462b 100644 __gnat_cpu_alloc (size_t count) { return CPU_ALLOC (count); -@@ -3461,33 +3465,33 @@ __gnat_cpu_alloc_size (size_t count) +@@ -3488,33 +3492,33 @@ __gnat_cpu_alloc_size (size_t count) } void @@ -143,7 +161,7 @@ index 8522094164e..92b230a462b 100644 } size_t -@@ -3497,23 +3501,23 @@ __gnat_cpu_alloc_size (size_t count ATTRIBUTE_UNUSED) +@@ -3524,23 +3528,23 @@ __gnat_cpu_alloc_size (size_t count ATTRIBUTE_UNUSED) } void @@ -173,7 +191,7 @@ index 8522094164e..92b230a462b 100644 #endif /* !CPU_ALLOC */ #endif /* __linux__ */ diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h -index 987432c9307..4d782f07de9 100644 +index 0cbfd0e15..f97ed905b 100644 --- a/gcc/ada/adaint.h +++ b/gcc/ada/adaint.h @@ -319,13 +319,11 @@ extern void *__gnat_lwp_self (void); @@ -195,10 +213,10 @@ index 987432c9307..4d782f07de9 100644 #if defined (_WIN32) diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c -index c0ee4a16bb1..ed796a48c1b 100644 +index 05af82c27..626ac35bc 100644 --- a/gcc/ada/terminals.c +++ b/gcc/ada/terminals.c -@@ -1127,7 +1127,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED, +@@ -1134,7 +1134,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED, /* POSIX does not specify how to open the master side of a terminal.Several methods are available (system specific): 1- using a cloning device (USE_CLONE_DEVICE) @@ -207,7 +225,7 @@ index c0ee4a16bb1..ed796a48c1b 100644 3- openpty (USE_OPENPTY) When using the cloning device method, the macro USE_CLONE_DEVICE should -@@ -1141,7 +1141,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED, +@@ -1148,7 +1148,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED, #if defined (__APPLE__) || defined (BSD) #define USE_OPENPTY #elif defined (__linux__) @@ -216,7 +234,7 @@ index c0ee4a16bb1..ed796a48c1b 100644 #elif defined (__sun__) #define USE_CLONE_DEVICE "/dev/ptmx" #elif defined (_AIX) -@@ -1190,8 +1190,8 @@ allocate_pty_desc (pty_desc **desc) { +@@ -1197,8 +1197,8 @@ allocate_pty_desc (pty_desc **desc) { int master_fd = -1; char *slave_name = NULL; @@ -227,6 +245,3 @@ index c0ee4a16bb1..ed796a48c1b 100644 #elif defined (USE_OPENPTY) status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL); #elif defined (USE_CLONE_DEVICE) --- -2.41.0 - diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index cfee02e62d0..c65828908c1 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -833,7 +833,7 @@ f382eb5f7c2c60c5a23fac587c9629a3059d7be0898e97a1feaf9b9cbe1ef4693cc1177eb29333e8 abf845792433a21fed5dd06167b9f6cf5e8f8026a409acce93824e466c5148e192bf5f404a271931fe4b65283499329bf67bb01019f2f3e02501f20619404e6c 0023-riscv-disable-multilib-support.patch ab88a2f63e3545bbc36537aa9a86f2c6c35e41bbf702d6e13743a405cdac4f901eed5737189b780da96647fea9f5d863fdc76373f25a00064106dcb5514d6d87 0024-always-build-libgcc_eh.a.patch 8fdbe0c8bf4ca60f458a33e59027de03d15ac91933fe46d8ca62119346d20b9bc2447c0bf22bceb63d0cf8613ab61512d9197f4e6c2224af473b63ef9f254295 0025-ada-libgnarl-compatibility-for-musl.patch -5fd23a506b55c88d4f000e01c539eb25d6da2516949c9d7a1c9ee20f4c6b627e4788541284d9c14c33bafa7cb43ce2e0469dd91006152f00e30815107150320f 0026-ada-musl-support-fixes.patch +684bf2db12aa45e8db7a895ab0f227b4e4351f611b4fcc6e1745d7ad94d31b3554f39d8cf9e2203520b3c6ee35cf309b417d4a842e7a8cd55a2b2accb23f2f24 0026-ada-musl-support-fixes.patch 3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch 720a4001f9a1fa4122e456077ecff8d3eb8af7c83d0a81f9da6a6cca05b23664206a82a349e34482c48bfe40e99aa5f21567613d0913f6a24f282bc84a994496 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch 2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch