From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19507 invoked by alias); 5 May 2002 17:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 19486 invoked by uid 71); 5 May 2002 17:26:00 -0000 Resent-Date: 5 May 2002 17:26:00 -0000 Resent-Message-ID: <20020505172600.19485.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Resent-Reply-To: gcc-gnats@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Received:(qmail 19010 invoked by uid 61); 5 May 2002 17:21:22 -0000 Message-Id:<20020505172122.19009.qmail@sources.redhat.com> Date: Sun, 05 May 2002 10:26:00 -0000 From: Sylvain.Pion@sophia.inria.fr Reply-To: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:Sylvain.Pion@sophia.inria.fr Subject: target/6565: x86 : -msse does not define __SSE__ X-SW-Source: 2002-05/txt/msg00127.txt.bz2 List-Id: >Number: 6565 >Category: target >Synopsis: x86 : -msse does not define __SSE__ >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 05 10:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 3.1 and 3.2 >Organization: >Environment: Reading specs from ./gcc/Linux_trunc/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: single gcc version 3.2 20020502 (experimental) >Description: -D__SSE__ and -D__SSE2__ are only added with -march=pentium4, but -msse or -msse2 ought to be enough since they are enough to generate SSE code when -mfpmath=sse is set. On the other hand, -march=pentium4 alone (without -mfpmath=sse) defines __SSE__, but uses the i387 for math. See the thread starting at : http://gcc.gnu.org/ml/gcc/2002-05/msg00253.html In short, there should be a way (macro) to tell the programmer if SSE[2] math is going to be used instead of i387 math (which is not IEEE 754 compliant, and thus requires costly workarounds in some cases). >How-To-Repeat: touch foo.c gcc -v -c -msse -mfpmath=sse foo.c => does not define -D__SSE2__ >Fix: >Release-Note: >Audit-Trail: >Unformatted: