From patchwork Wed Jan 13 01:48:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 10356 Received: (qmail 112888 invoked by alias); 13 Jan 2016 01:49:06 -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 112688 invoked by uid 89); 13 Jan 2016 01:49:04 -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=ifeq, mtune, Hx-languages-length:1574 X-HELO: mail-qg0-f51.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tKoFOW1Tom0uxnloIuatsoEQRkMVbgR8qV6ol6xNj+8=; b=hCz/SFjJ7jTePplk86frWvBt7YvTuMCUH6x4sySY8ZjO/Xe7Kg0XjrR3T17M2BIg0r KRh2r3PzWOCRvKhO1VgffuxAz84m3d5l1cSY50fK675swo3A6V+sAjtVi35YDCSmga67 4gBl0AyecQJip65vm7PpBHhiKz7J2c5LqgsilfTaKqS1jQw+J7rYAklBUACN/N+tmI/M XGu4VeTxMEStsr3W4c3euy6JxjtcKyn/TvOjpNKg6rSZqvhWhml9nFghwwJG+AQTmZ04 cC61F6N+/fEp6F/FNcL4J9HeanNdFjTiBfrtjktjIUEqaKTTvmfdcQqOFr5MJUKFP3V0 /0/g== X-Gm-Message-State: ALoCoQmfRzQiyst2PjGtJDPxp4/ii2/YdG2Sv3AwYM2qHptwoGGv2tSBPziqzM0tw4orQ+dgCBMmyqTVEnf1gNTzUchl4Es0zQ== X-Received: by 10.140.249.2 with SMTP id u2mr183366923qhc.53.1452649741471; Tue, 12 Jan 2016 17:49:01 -0800 (PST) From: Khem Raj To: libc-alpha@sourceware.org Cc: Khem Raj Subject: [PATCH V2] Ensure -fpmath != sse when SSE is disabled [BZ #17950] Date: Wed, 13 Jan 2016 01:48:55 +0000 Message-Id: <1452649735-11069-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 --- Changes since v1: - Add BZ enry to ChangeLog and commit message ChangeLog | 6 ++++++ sysdeps/i386/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 600c3dd..a44f877 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-01-12 Khem Raj + + [BZ #17950] + * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os): + Add -mfpmath=387. + 2016-01-11 Andreas Schwab [BZ #19253] 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