From patchwork Sat Oct 31 18:32:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 538678 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 7D6AA14138C for ; Sun, 1 Nov 2015 05:33:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=N0BUTWUd; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AB49488778; Sat, 31 Oct 2015 18:33:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12BIo2Q7HPiJ; Sat, 31 Oct 2015 18:33:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 44998888B0; Sat, 31 Oct 2015 18:33:15 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 812421C11FD for ; Sat, 31 Oct 2015 18:33:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7CEEE2CE19 for ; Sat, 31 Oct 2015 18:33:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OWTQv5kAg9Q3 for ; Sat, 31 Oct 2015 18:33:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by silver.osuosl.org (Postfix) with ESMTPS id DEF422DA94 for ; Sat, 31 Oct 2015 18:33:11 +0000 (UTC) Received: by qkcn129 with SMTP id n129so43620729qkc.1 for ; Sat, 31 Oct 2015 11:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mS3bMdgLknSZk3/ULHLFCQrGYVr3J5GQ26P1I6PHgCI=; b=N0BUTWUdFREia2MrAXGtR6b523mosZc+D4a7DOQbM0Nrc1L73wIUS7YE+cnBoEvYFf Tz/MsPNA+VoOxtQEW2lKCM+DIsnvrwvF+ICvQ35XHeCA9kKwPcnBPXdVLnpfBnq5UDht atWIXUGEx5117MAwG8AtozXtc11/4rqB4rTY4XgxblMzW9zJyGCsT4aNo57KDhsHyn4N ZgwYH3IXVJ1bahKW1CymBP6iLNwPuv3RCN3rMtTIf8OZKTIMc2fIitHIGFMQGRkrSue5 saBrnnOTdwdduCDNoISn+WvPKxaIOQx83B8z+9fKz34RQFkNdU0lRbjBCwA/Wj4wpkf9 Kvog== X-Received: by 10.55.71.146 with SMTP id u140mr18401345qka.17.1446316391106; Sat, 31 Oct 2015 11:33:11 -0700 (PDT) Received: from khem-dvm-001.sys.comcast.net (a-96-119-177-31.sys.comcast.net. [96.119.177.31]) by smtp.gmail.com with ESMTPSA id n48sm4817436qgd.35.2015.10.31.11.33.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 Oct 2015 11:33:10 -0700 (PDT) From: Khem Raj To: uclibc@uclibc.org Subject: [PATCH 5/9] Always use -O2 for compiling fork.c Date: Sat, 31 Oct 2015 18:32:57 +0000 Message-Id: <1446316381-5070-5-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446316381-5070-1-git-send-email-raj.khem@gmail.com> References: <1446316381-5070-1-git-send-email-raj.khem@gmail.com> X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" 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 --- libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch index 0ea0b29..0767e9c 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch @@ -21,3 +21,9 @@ ASFLAGS-pt-vfork.S = -marm CFLAGS-OMIT-pt-vfork.S = -mthumb ASFLAGS-vfork.S = -marm CFLAGS-OMIT-vfork.S = -mthumb + +# For arm fork.c does not compile with -Os when compiling +# in thumb1 mode +ifeq ($(COMPILE_IN_THUMB_MODE),y) +CFLAGS-fork.c = -O2 +endif