diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2017-08-10 15:42:25 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2017-08-10 15:42:25 +0000 |
commit | c038841e8be7ad7ffec4d07c0175a5f037b554a7 (patch) | |
tree | 68cd40d1a2f7dda8837cf94c343c3cd1d4e9cec3 /clang/test/Driver/mips-features.c | |
parent | 3306e3a8e84d9d34ea65e8baa5ce9f2c33aae6dd (diff) | |
download | bcm5719-llvm-c038841e8be7ad7ffec4d07c0175a5f037b554a7.tar.gz bcm5719-llvm-c038841e8be7ad7ffec4d07c0175a5f037b554a7.zip |
[mips] Show warning in case of mixing -mlong-calls and -mabicalls options
While we do not support `-mshared / -mno-shared` properly, show warning
and ignore `-mlong-calls` option in case of implicitly or explicitly
provided `-mabicalls` option.
Differential revision: https://reviews.llvm.org/D36551
llvm-svn: 310614
Diffstat (limited to 'clang/test/Driver/mips-features.c')
-rw-r--r-- | clang/test/Driver/mips-features.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/Driver/mips-features.c b/clang/test/Driver/mips-features.c index d2814fec4a5..56fbbb103ef 100644 --- a/clang/test/Driver/mips-features.c +++ b/clang/test/Driver/mips-features.c @@ -336,12 +336,16 @@ // CHECK-IMG-SINGLEFLOAT-FPXX: "-target-feature" "+fpxx" // -mlong-call -// RUN: %clang -target mips-img-linux-gnu -### -c %s -mlong-calls 2>&1 \ +// RUN: %clang -target mips-img-linux-gnu -### -c %s \ +// RUN: -mno-abicalls -mlong-calls 2>&1 \ // RUN: | FileCheck --check-prefix=LONG-CALLS-ON %s -// RUN: %clang -target mips-img-linux-gnu -### -c %s -mno-long-calls 2>&1 \ +// RUN: %clang -target mips-img-linux-gnu -### -c %s \ +// RUN: -mno-abicalls -mno-long-calls 2>&1 \ // RUN: | FileCheck --check-prefix=LONG-CALLS-OFF %s // RUN: %clang -target mips-img-linux-gnu -### -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=LONG-CALLS-DEF %s +// RUN: %clang -target mips-img-linux-gnu -### -c %s -mlong-calls 2>&1 \ +// RUN: | FileCheck --check-prefix=LONG-CALLS-DEF %s // LONG-CALLS-ON: "-target-feature" "+long-calls" // LONG-CALLS-OFF: "-target-feature" "-long-calls" // LONG-CALLS-DEF-NOT: "long-calls" |