* cgraph.h (cgraph_rtl_info): Move to rtl.h
(cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
and instance.
* rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
* cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
doesn't exist.
* calls.c: Include hard-reg-set.h before rtl.h.
* ira.c: Likewise.
===================================================================
*************** struct GTY(()) cgraph_global_info {
cgraph_node *inlined_to;
};
- /* Information about the function that is propagated by the RTL backend.
- Available only for functions that has been already assembled. */
-
- struct GTY(()) cgraph_rtl_info {
- unsigned int preferred_incoming_stack_boundary;
-
- /* Call unsaved hard registers really used by the corresponding
- function (including ones used by functions called by the
- function). */
- HARD_REG_SET function_used_regs;
- /* Set if function_used_regs is valid. */
- unsigned function_used_regs_valid: 1;
- };
-
/* Represent which DECL tree (or reference to such tree)
will be replaced by another tree while versioning. */
struct GTY(()) ipa_replace_map
*************** public:
static cgraph_local_info *local_info (tree decl);
/* Return local info for the compiled function. */
! static cgraph_rtl_info *rtl_info (tree);
/* Return the cgraph node that has ASMNAME for its DECL_ASSEMBLER_NAME.
Return NULL if there's no such node. */
static cgraph_local_info *local_info (tree decl);
/* Return local info for the compiled function. */
! static struct cgraph_rtl_info *rtl_info (tree);
/* Return the cgraph node that has ASMNAME for its DECL_ASSEMBLER_NAME.
Return NULL if there's no such node. */
*************** public:
cgraph_local_info local;
cgraph_global_info global;
! cgraph_rtl_info rtl;
cgraph_clone_info clone;
cgraph_thunk_info thunk;
cgraph_local_info local;
cgraph_global_info global;
! struct cgraph_rtl_info *rtl;
cgraph_clone_info clone;
cgraph_thunk_info thunk;
===================================================================
*************** extern void _fatal_insn (const char *, c
/* reginfo.c */
extern tree GTY(()) global_regs_decl[FIRST_PSEUDO_REGISTER];
+ #ifdef HARD_CONST
+ /* Information about the function that is propagated by the RTL backend.
+ Available only for functions that has been already assembled. */
+
+ struct GTY(()) cgraph_rtl_info {
+ unsigned int preferred_incoming_stack_boundary;
+
+ /* Call unsaved hard registers really used by the corresponding
+ function (including ones used by functions called by the
+ function). */
+ HARD_REG_SET function_used_regs;
+ /* Set if function_used_regs is valid. */
+ unsigned function_used_regs_valid: 1;
+ };
+ #endif
+
+
#endif /* ! GCC_RTL_H */
===================================================================
*************** cgraph_node::rtl_info (tree decl)
if (node->decl != current_function_decl
&& !TREE_ASM_WRITTEN (node->decl))
return NULL;
! return &node->ultimate_alias_target ()->rtl;
}
/* Return a string describing the failure REASON. */
if (node->decl != current_function_decl
&& !TREE_ASM_WRITTEN (node->decl))
return NULL;
! /* Allocate if it doesnt exist. */
! if (node->ultimate_alias_target ()->rtl == NULL)
! node->ultimate_alias_target ()->rtl = ggc_cleared_alloc<cgraph_rtl_info> ();
! return node->ultimate_alias_target ()->rtl;
}
/* Return a string describing the failure REASON. */
===================================================================
*************** along with GCC; see the file COPYING3.
#include "system.h"
#include "coretypes.h"
#include "tm.h"
+ #include "hard-reg-set.h"
#include "rtl.h"
#include "input.h"
#include "alias.h"
*************** along with GCC; see the file COPYING3.
#include "stringpool.h"
#include "attribs.h"
#include "predict.h"
- #include "hard-reg-set.h"
#include "function.h"
#include "basic-block.h"
#include "tree-ssa-alias.h"
===================================================================
*************** along with GCC; see the file COPYING3.
#include "alias.h"
#include "symtab.h"
#include "tree.h"
#include "rtl.h"
#include "tm_p.h"
#include "target.h"
#include "flags.h"
#include "obstack.h"
#include "bitmap.h"
- #include "hard-reg-set.h"
#include "predict.h"
#include "function.h"
#include "dominance.h"
#include "alias.h"
#include "symtab.h"
#include "tree.h"
+ #include "hard-reg-set.h"
#include "rtl.h"
#include "tm_p.h"
#include "target.h"
#include "flags.h"
#include "obstack.h"
#include "bitmap.h"
#include "predict.h"
#include "function.h"
#include "dominance.h"