From a9259c2c9783e79ce6814dec20782cf76f7b9bdf Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 3 Oct 2013 17:06:43 +0000 Subject: [PATCH] Ignore -mieee-fp. It looks like clang always produce code with the ieee comparisons, so it is safe to ignore this flag (we still error on -mno-ieee-fp). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191912 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 1 + test/Driver/x86_features.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 515fcb3638..07ce9509cb 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -937,6 +937,7 @@ def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group, Group; def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group; +def mieee_fp : Flag<["-"], "mieee-fp">, Group; def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group; def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group; def mfpu_EQ : Joined<["-"], "mfpu=">, Group; diff --git a/test/Driver/x86_features.c b/test/Driver/x86_features.c index 6fbf5ca4ae..52ba7c30d2 100644 --- a/test/Driver/x86_features.c +++ b/test/Driver/x86_features.c @@ -1,3 +1,6 @@ // RUN: %clang -target i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2>&1 | FileCheck %s // CHECK: "pentium4" "-target-feature" "+sse4" "-target-feature" "-mmx" "-target-feature" "+sse" // Note that we filter out all but the last -m(no)sse. + +// Test that we don't produce an error with -mieee-fp. +// RUN: %clang -S %s -mieee-fp -- 2.40.0