Driver: Forward -fno-common to clang.

- <rdar://problem/6710978> ccc/clang-driver ignore -fno-common

llvm-svn: 67762
This commit is contained in:
Daniel Dunbar 2009-03-26 16:37:00 +00:00
parent 42b91a86f3
commit adf511c056
2 changed files with 7 additions and 0 deletions

View File

@ -387,6 +387,7 @@ OPTION("-fnext-runtime", fnext_runtime, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fno-blocks", fno_blocks, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fno-builtin", fno_builtin, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fno-caret-diagnostics", fno_caret_diagnostics, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fno-common", fno_common, Flag, clang_f_Group, INVALID, "", 0)
OPTION("-fno-constant-cfstrings", fno_constant_cfstrings, Flag, f_Group, INVALID, "", 0)
OPTION("-fno-eliminate-unused-debug-symbols", fno_eliminate_unused_debug_symbols, Flag, f_Group, INVALID, "", 0)
OPTION("-fno-math-errno", fno_math_errno, Flag, f_Group, INVALID, "", 0)

View File

@ -0,0 +1,6 @@
// RUN: clang -emit-llvm -S -o %t %s &&
// RUN: grep '@x = common global' %t &&
// RUN: clang -fno-common -emit-llvm -S -o %t %s &&
// RUN: grep '@x = global' %t
int x;