diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-10 04:57:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-10 04:57:27 +0000 |
commit | f84a4a469d8a45c76cb941595582a0fd3b9b15d3 (patch) | |
tree | 376457d5a5933f50c4b0a7519cf72fabdc1c98f3 | |
parent | b163ef7e7a5d904ef0962a7c38c460be083c4d63 (diff) |
Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support that yet. PR4941.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81430 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/Tools.cpp | 4 | ||||
-rw-r--r-- | test/Driver/arm-darwin-builtin.c | 14 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index ad335b3121..ca986e508c 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -730,6 +730,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } // Default to -fno-builtin-str{cat,cpy} on Darwin for ARM. + // + // FIXME: This is disabled until clang-cc supports -fno-builtin-foo. PR4941. +#if 0 if (getToolChain().getTriple().getOS() == llvm::Triple::Darwin && (getToolChain().getTriple().getArch() == llvm::Triple::arm || getToolChain().getTriple().getArch() == llvm::Triple::thumb)) { @@ -738,6 +741,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (!Args.hasArg(options::OPT_fbuiltin_strcpy)) CmdArgs.push_back("-fno-builtin-strcpy"); } +#endif if (Arg *A = Args.getLastArg(options::OPT_traditional, options::OPT_traditional_cpp)) diff --git a/test/Driver/arm-darwin-builtin.c b/test/Driver/arm-darwin-builtin.c index f79a167f01..5da8074ee3 100644 --- a/test/Driver/arm-darwin-builtin.c +++ b/test/Driver/arm-darwin-builtin.c @@ -1,10 +1,12 @@ -// RUN: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s 2> %t && -// RUN: grep -- "-fno-builtin-strcat" %t && -// RUN: grep -- "-fno-builtin-strcpy" %t && +// FIXME: Disable pending PR4941. +// RUX: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s 2> %t && +// RUX: grep -- "-fno-builtin-strcat" %t && +// RUX: grep -- "-fno-builtin-strcpy" %t && -// RUN: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t && -// RUN: not grep -- "-fno-builtin-strcat" %t && -// RUN: not grep -- "-fno-builtin-strcpy" %t && +// FIXME: Disable pending PR4941. +// RUX: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t && +// RUX: not grep -- "-fno-builtin-strcat" %t && +// RUX: not grep -- "-fno-builtin-strcpy" %t && // RUN: clang -ccc-no-clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t && // RUN: not grep -- "-fno-builtin-strcat" %t && |