[llvm-commits] [llvm-gcc-4.2] r43538 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Devang Patel
dpatel at apple.com
Tue Oct 30 18:05:20 PDT 2007
Author: dpatel
Date: Tue Oct 30 20:05:20 2007
New Revision: 43538
URL: http://llvm.org/viewvc/llvm-project?rev=43538&view=rev
Log:
Set 'used' bit to shut up "defined but not used" warning.
Modified:
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=43538&r1=43537&r2=43538&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Tue Oct 30 20:05:20 2007
@@ -3876,6 +3876,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