From patchwork Wed Jan 6 02:29:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 563680 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A270E1402BC for ; Wed, 6 Jan 2016 13:37:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=dEWr+xLq; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=biPZ8JVFmsuFPJ+rsTrfWGosq2yL2lKHxtQB2UbGZuAHMeX+mBMaV SV0GklN+XiOrmdaDPEfTYhGkTDqXBAK93UtddDYVZucfyQodjcs3BFPkKaSnPLHD T/VpD4aI9Pa19XabDkO1/LojjM7BovHakzS/ubMEQ4pTE0DvviHdBU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=DfgNZMYiQBrNHOVwuHOYT2IdcvE=; b=dEWr+xLqTwzfKaTVnTK+/G08QPcv zCltlCiqdmKHzkE44br7gSviG3BNK01mXz0wqr+cqXQl535dLWnMRX+nbY0vsGW5 vBd7171CfeFLyor0bJKlth1L7Lz2bo0xWw7SkjnsV2iLujs1icJecVkjE+XCIhzy 9AtkKfSHWL+QnVQ= Received: (qmail 56798 invoked by alias); 6 Jan 2016 02:37:39 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 56712 invoked by uid 89); 6 Jan 2016 02:37:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=mfpmath, os, 2016010421, UD:tex X-HELO: mail-pa0-f46.google.com X-Received: by 10.66.139.166 with SMTP id qz6mr64413209pab.148.1452047847317; Tue, 05 Jan 2016 18:37:27 -0800 (PST) From: Khem Raj To: libc-alpha@sourceware.org Cc: Khem Raj Subject: [PATCH] When disabling SSE, make sure -fpmath is not set to use SSE either Date: Tue, 5 Jan 2016 18:29:52 -0800 Message-Id: <1452047392-14393-1-git-send-email-raj.khem@gmail.com> This fixes errors when we inject sse options through CFLAGS and now that we have -Werror turned on by default this warning turns to become error on x86 gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -x c /dev/null -S -mno-sse -mno-mmx generates warning /dev/null:1:0: warning: SSE instruction set disabled, using 387 arithmetics where as gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -x c /dev/null -S -mno-sse -mno-mmx -mfpmath=387 Generates no warnings Signed-off-by: Khem Raj --- ChangeLog | 5 +++++ sysdeps/i386/Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2ad1b5a..bbb7199 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-01-05 Khem Raj + + * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os): + Add -mfpmath=387. + 2016-01-05 Joseph Myers * manual/texinfo.tex: Update to version 2016-01-04.21 with diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile index 168512f..70153b3 100644 --- a/sysdeps/i386/Makefile +++ b/sysdeps/i386/Makefile @@ -89,7 +89,7 @@ ifeq ($(subdir),elf) # the first 3 mm/xmm/ymm/zmm registers are used to pass vector parameters # which must be preserved. CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\ - -mno-sse -mno-mmx) + -mno-sse -mno-mmx -mfpmath=387) tests-special += $(objpfx)tst-ld-sse-use.out $(objpfx)tst-ld-sse-use.out: ../sysdeps/i386/tst-ld-sse-use.sh $(objpfx)ld.so