diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-03 17:06:43 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-03 17:06:43 +0000 |
| commit | 72f55d46c8873a76d9070ca200eeede6aca64d7c (patch) | |
| tree | 5392bcfbdd24a2b9c0abce6c01d7f10d88783e09 | |
| parent | 8f5d425160a7fe5ef2bead9a60ad778bed24e636 (diff) | |
| download | bcm5719-llvm-72f55d46c8873a76d9070ca200eeede6aca64d7c.tar.gz bcm5719-llvm-72f55d46c8873a76d9070ca200eeede6aca64d7c.zip | |
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).
llvm-svn: 191912
| -rw-r--r-- | clang/include/clang/Driver/Options.td | 1 | ||||
| -rw-r--r-- | clang/test/Driver/x86_features.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 515fcb3638c..07ce9509cb4 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -937,6 +937,7 @@ def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group<clang_ignore def mcpu_EQ : Joined<["-"], "mcpu=">, Group<m_Group>; def mdynamic_no_pic : Joined<["-"], "mdynamic-no-pic">, Group<m_Group>; def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group<clang_ignored_m_Group>; +def mieee_fp : Flag<["-"], "mieee-fp">, Group<clang_ignored_m_Group>; def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group<m_Group>; def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group<m_Group>; def mfpu_EQ : Joined<["-"], "mfpu=">, Group<m_Group>; diff --git a/clang/test/Driver/x86_features.c b/clang/test/Driver/x86_features.c index 6fbf5ca4aec..52ba7c30d28 100644 --- a/clang/test/Driver/x86_features.c +++ b/clang/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 |

