Check-in [49e22da48c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated MUSL libc patch to not interfere with libstdc++ on non-MUSL-libc systems
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 49e22da48c8ad840ad019690fc201a1ad41e45af
User & Date: rkeene 2015-02-11 21:23:31
Context
2015-02-12
06:58
Removed changes from the MUSL patch to libgcc/gthr.h -- more appropriate patch to follow check-in: 75ef6d3349 user: rkeene tags: trunk
2015-02-11
21:23
Updated MUSL libc patch to not interfere with libstdc++ on non-MUSL-libc systems check-in: 49e22da48c user: rkeene tags: trunk
21:00
Re-enabled gold, no reason to disable it check-in: e11796b140 user: rkeene tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to patches/gcc/gcc-4.8.4-musl.diff.

810
811
812
813
814
815
816

817
818
819
820
821
822
823
824
825

826
827
828
829
830
831
+  if (!implicit && value.value && !integer_zerop (value.value))
+    constructor_zeroinit = 0;
+
   /* Handle superfluous braces around string cst as in
      char x[] = {"foo"}; */
   if (string_flag
Do not use weak references on any targets for gthread. Necessary on musl, safe elsewhere.


diff -r d6371c4d8f65 libgcc/gthr.h
--- a/libgcc/gthr.h	Thu Jan 29 19:10:06 2015 -0500
+++ b/libgcc/gthr.h	Thu Jan 29 19:10:12 2015 -0500
@@ -136,10 +136,8 @@
 /* The pe-coff weak support isn't fully compatible to ELF's weak.
    For static libraries it might would work, but as we need to deal
    with shared versions too, we disable it for mingw-targets.  */
-#ifdef __MINGW32__

 #undef GTHREAD_USE_WEAK
 #define GTHREAD_USE_WEAK 0
-#endif
 
 #ifndef GTHREAD_USE_WEAK
 #define GTHREAD_USE_WEAK 1







>

<


|




>


|
<
<
<
810
811
812
813
814
815
816
817
818

819
820
821
822
823
824
825
826
827
828
829



+  if (!implicit && value.value && !integer_zerop (value.value))
+    constructor_zeroinit = 0;
+
   /* Handle superfluous braces around string cst as in
      char x[] = {"foo"}; */
   if (string_flag
Do not use weak references on any targets for gthread. Necessary on musl, safe elsewhere.
**NOT** safe elsewhere.


--- a/libgcc/gthr.h	Thu Jan 29 19:10:06 2015 -0500
+++ b/libgcc/gthr.h	Thu Jan 29 19:10:12 2015 -0500
@@ -136,7 +136,7 @@
 /* The pe-coff weak support isn't fully compatible to ELF's weak.
    For static libraries it might would work, but as we need to deal
    with shared versions too, we disable it for mingw-targets.  */
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || (DEFAULT_LIBC == LIBC_MUSL)
 #undef GTHREAD_USE_WEAK
 #define GTHREAD_USE_WEAK 0
 #endif