summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Driver/Options.def1
-rw-r--r--clang/tools/clang-cc/clang.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Options.def b/clang/include/clang/Driver/Options.def
index dc1ce15cd59..1c16b333f7d 100644
--- a/clang/include/clang/Driver/Options.def
+++ b/clang/include/clang/Driver/Options.def
@@ -358,6 +358,7 @@ OPTION("-fblocks", fblocks, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fbootclasspath=", fbootclasspath_EQ, Joined, f_Group, INVALID, "", 0)
OPTION("-fbuiltin", fbuiltin, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fclasspath=", fclasspath_EQ, Joined, f_Group, INVALID, "", 0)
+OPTION("-fcommon", fcommon, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fcompile-resource=", fcompile_resource_EQ, Joined, f_Group, INVALID, "", 0)
OPTION("-fconstant-cfstrings", fconstant_cfstrings, Flag, f_Group, INVALID, "", 0)
OPTION("-fcreate-profile", fcreate_profile, Flag, f_Group, INVALID, "", 0)
diff --git a/clang/tools/clang-cc/clang.cpp b/clang/tools/clang-cc/clang.cpp
index 8beecd0d0a7..5d3f68dd8ef 100644
--- a/clang/tools/clang-cc/clang.cpp
+++ b/clang/tools/clang-cc/clang.cpp
@@ -1237,7 +1237,9 @@ OptSize("Os", llvm::cl::desc("Optimize for size"));
static llvm::cl::opt<bool>
NoCommon("fno-common",
- llvm::cl::desc("Compile common globals like normal definitions"));
+ llvm::cl::desc("Compile common globals like normal definitions"),
+ llvm::cl::ValueDisallowed, llvm::cl::AllowInverse,
+ llvm::cl::ZeroOrMore);
// It might be nice to add bounds to the CommandLine library directly.
struct OptLevelParser : public llvm::cl::parser<unsigned> {
OpenPOWER on IntegriCloud