forked from pool/gcc12
119c595406
gcc12-riscv-pthread.patch: handle subword size inline atomics (needed by several openSUSE packages) Rev devel:gcc/66 Md5 3912ce2789cdde6ba7164e5f802e5f58 2022-09-26 11:43:42 rguenther 1006095
22 lines
875 B
Diff
22 lines
875 B
Diff
Index: gcc-12.0.1+git192423/gcc/config/riscv/linux.h
|
|
===================================================================
|
|
--- gcc-12.0.1+git192423.orig/gcc/config/riscv/linux.h
|
|
+++ gcc-12.0.1+git192423/gcc/config/riscv/linux.h
|
|
@@ -35,16 +35,6 @@ along with GCC; see the file COPYING3.
|
|
#undef MUSL_DYNAMIC_LINKER
|
|
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-riscv" XLEN_SPEC MUSL_ABI_SUFFIX ".so.1"
|
|
|
|
-/* Because RISC-V only has word-sized atomics, it requries libatomic where
|
|
- others do not. So link libatomic by default, as needed. */
|
|
-#undef LIB_SPEC
|
|
-#ifdef LD_AS_NEEDED_OPTION
|
|
-#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC \
|
|
- " %{pthread:" LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION "}"
|
|
-#else
|
|
-#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC " -latomic "
|
|
-#endif
|
|
-
|
|
#define ICACHE_FLUSH_FUNC "__riscv_flush_icache"
|
|
|
|
#define CPP_SPEC "%{pthread:-D_REENTRANT}"
|