[llvm-commits] [llvm-gcc-4.0] r43537 - /llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
Devang Patel
dpatel at apple.com
Tue Oct 30 18:03:47 PDT 2007
Author: dpatel
Date: Tue Oct 30 20:03:47 2007
New Revision: 43537
URL: http://llvm.org/viewvc/llvm-project?rev=43537&view=rev
Log:
Set 'used' bit to shut up "defined but not used" warning.
Modified:
llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.0/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/objc/objc-act.c?rev=43537&r1=43536&r2=43537&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.0/trunk/gcc/objc/objc-act.c Tue Oct 30 20:03:47 2007
@@ -3868,6 +3868,7 @@
set_user_assembler_name (var, IDENTIFIER_POINTER (DECL_NAME (var)));
/* Let optimizer know that this var is not removable. */
DECL_PRESERVE_P (var) = 1;
+ TREE_USED(var) = 1;
}
else
/* Fall through. Build using 'name' */
More information about the llvm-commits
mailing list