[llvm-commits] [gcc-plugin] r79525 - /gcc-plugin/trunk/llvm-cache.c
Duncan Sands
baldrick at free.fr
Thu Aug 20 04:52:09 PDT 2009
Author: baldrick
Date: Thu Aug 20 06:52:09 2009
New Revision: 79525
URL: http://llvm.org/viewvc/llvm-project?rev=79525&view=rev
Log:
Mark the GTY debugging routine with attribute used:
it is used, but by passing its name to the gty system.
Modified:
gcc-plugin/trunk/llvm-cache.c
Modified: gcc-plugin/trunk/llvm-cache.c
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-cache.c?rev=79525&r1=79524&r2=79525&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-cache.c (original)
+++ gcc-plugin/trunk/llvm-cache.c Thu Aug 20 06:52:09 2009
@@ -37,12 +37,12 @@
#define tree_llvm_map_hash tree_map_base_hash
#define tree_llvm_map_marked_p tree_map_base_marked_p
-static int debugging_tree_llvm_map_marked_p (const void *p) {//QQ
- printf("debugging_ggc call for %p\n", p);
+__attribute__((used)) static int debug_tree_llvm_map_marked_p (const void *p) {//QQ
+ printf("debug_ggc call for %p\n", p);
return tree_map_base_marked_p(p);
}
-static GTY ((if_marked ("debugging_tree_llvm_map_marked_p"),
+static GTY ((if_marked ("debug_tree_llvm_map_marked_p"),
param_is (struct tree_llvm_map)))
htab_t llvm_cache;
More information about the llvm-commits
mailing list