* tree.c (is_global_var): Move ...
* tree-flow-inline.h (is_global_var): ... here.
* tree.h (is_global_var): Remove declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123303
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-03-28 Richard Guenther <rguenther@suse.de>
+
+ * tree.c (is_global_var): Move ...
+ * tree-flow-inline.h (is_global_var): ... here.
+ * tree.h (is_global_var): Remove declaration.
+
2007-03-28 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
return false;
}
+/* Return true if T (assumed to be a DECL) is a global variable. */
+
+static inline bool
+is_global_var (tree t)
+{
+ if (MTAG_P (t))
+ return (TREE_STATIC (t) || MTAG_GLOBAL (t));
+ else
+ return (TREE_STATIC (t) || DECL_EXTERNAL (t));
+}
+
/* PHI nodes should contain only ssa_names and invariants. A test
for ssa_name is definitely simpler; don't let invalid contents
slip in in the meantime. */
return true;
}
-/* Return true if T (assumed to be a DECL) is a global variable. */
-
-bool
-is_global_var (tree t)
-{
- if (MTAG_P (t))
- return (TREE_STATIC (t) || MTAG_GLOBAL (t));
- else
- return (TREE_STATIC (t) || DECL_EXTERNAL (t));
-}
-
/* Return true if T (assumed to be a DECL) must be assigned a memory
location. */
extern void stack_protect_prologue (void);
extern void stack_protect_epilogue (void);
extern void recompute_tree_invariant_for_addr_expr (tree);
-extern bool is_global_var (tree t);
extern bool needs_to_live_in_memory (tree);
extern tree reconstruct_complex_type (tree, tree);