mirror of
git://git.yoctoproject.org/poky
synced 2026-08-15 09:15:57 +00:00
Document the patches (From OE-Core rev: 746e8ffa66850bf9050cd6baf94eb76c492eb535) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
862 B
Diff
22 lines
862 B
Diff
When compiling in thumb mode for arm with -Os gcc gives up since it can not find registers
|
|
to spill. So we use -O2 option for compiling fork.c It may be addressable in gcc.
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Upstream-Status: Pending
|
|
|
|
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch
|
|
index 329d8a9..41e3646 100644
|
|
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch
|
|
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch
|
|
@@ -30,3 +30,9 @@ CFLAGS-OMIT-libc-lowlevellock.c = -DNOT_IN_libc -DIS_IN_libpthread
|
|
# This macro should be alternatively implemented in THUMB
|
|
# assembly.
|
|
ASFLAGS-vfork.S = -marm
|
|
+
|
|
+# For arm fork.c does not compile with -Os when in compiling
|
|
+# in thumb1 mode
|
|
+ifeq ($(COMPILE_IN_THUMB_MODE),y)
|
|
+CFLAGS-fork.c = -O2
|
|
+endif
|