projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de26760
)
Don't warn about -w not being used in a link. Necessary to get sane
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 17 Nov 2010 20:37:10 +0000
(20:37 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 17 Nov 2010 20:37:10 +0000
(20:37 +0000)
results in the gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119552
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Driver/Tools.cpp
patch
|
blob
|
history
diff --git
a/lib/Driver/Tools.cpp
b/lib/Driver/Tools.cpp
index ca45468f107d5e722db661f6647538063e9930c0..3754d2c4ccf29bdc0b2f7d7d2d5ca003d7a5e530 100644
(file)
--- a/
lib/Driver/Tools.cpp
+++ b/
lib/Driver/Tools.cpp
@@
-3212,6
+3212,9
@@
void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA,
// Silence warning for "clang -g foo.o -o foo"
Args.ClaimAllArgs(options::OPT_g_Group);
+ // and for "clang -g foo.o -o foo". Other warning options are already
+ // handled somewhere else.
+ Args.ClaimAllArgs(options::OPT_w);
if (Arg *A = Args.getLastArg(options::OPT__sysroot_EQ)) {
CmdArgs.push_back("--sysroot");