[cfe-commits] r67762 - in /cfe/trunk: include/clang/Driver/Options.def test/CodeGen/no-common.c

Daniel Dunbar daniel at zuster.org
Thu Mar 26 09:37:00 PDT 2009


Author: ddunbar
Date: Thu Mar 26 11:37:00 2009
New Revision: 67762

URL: http://llvm.org/viewvc/llvm-project?rev=67762&view=rev
Log:
Driver: Forward -fno-common to clang.
 - <rdar://problem/6710978> ccc/clang-driver ignore -fno-common

Added:
    cfe/trunk/test/CodeGen/no-common.c
Modified:
    cfe/trunk/include/clang/Driver/Options.def

Modified: cfe/trunk/include/clang/Driver/Options.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.def?rev=67762&r1=67761&r2=67762&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/Options.def (original)
+++ cfe/trunk/include/clang/Driver/Options.def Thu Mar 26 11:37:00 2009
@@ -387,6 +387,7 @@
 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)

Added: cfe/trunk/test/CodeGen/no-common.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/no-common.c?rev=67762&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/no-common.c (added)
+++ cfe/trunk/test/CodeGen/no-common.c Thu Mar 26 11:37:00 2009
@@ -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;





More information about the cfe-commits mailing list