diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-02 14:55:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-02 14:55:48 +0000 |
commit | c242ef245c61731f9d7d0bcc3039761fbb786223 (patch) | |
tree | 49f9877895ff9081eac1b18d84463515b669a6b3 /clang/test/Driver/fast-math.c | |
parent | 0191bf8655855c20755bb2a094c99000299cbea7 (diff) | |
download | bcm5719-llvm-c242ef245c61731f9d7d0bcc3039761fbb786223.tar.gz bcm5719-llvm-c242ef245c61731f9d7d0bcc3039761fbb786223.zip |
Driver: Turn the default value for -fmath-errno into a proper target hook and disable it by default on more platforms.
For now -fno-math-errno is the default on BSD-derived platforms (Darwin,
DragonFlyBSD, FreeBSD, NetBSD, OpenBSD). If the default is not right for
your platform, please yell. I only verified the result with the default
compilers on Darwin and FreeBSD.
llvm-svn: 155990
Diffstat (limited to 'clang/test/Driver/fast-math.c')
-rw-r--r-- | clang/test/Driver/fast-math.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/fast-math.c b/clang/test/Driver/fast-math.c index 09d249d6c2c..8426f0950ac 100644 --- a/clang/test/Driver/fast-math.c +++ b/clang/test/Driver/fast-math.c @@ -26,6 +26,14 @@ // RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s // RUN: %clang -### -target i686-apple-darwin -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s +// RUN: %clang -### -target x86_64-unknown-freebsd -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s +// RUN: %clang -### -target x86_64-unknown-netbsd -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s +// RUN: %clang -### -target x86_64-unknown-openbsd -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s +// RUN: %clang -### -target x86_64-unknown-dragonfly -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s // CHECK-NO-MATH-ERRNO: "-cc1" // CHECK-NO-MATH-ERRNO-NOT: "-fmath-errno" // |