summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-23 16:29:33 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-23 16:29:33 +0000
commit9fac1c660cc9bd0691cafeec669ce7a61ca4d2ad (patch)
treea53e7634a67bdd62e10ed93275097fbd631441ef
parentb7d1c9e6e36362cba03c772b1b7974aff173de2e (diff)
downloadgcc-9fac1c660cc9bd0691cafeec669ce7a61ca4d2ad.tar.gz
2009-03-23 Richard Guenther <rguenther@suse.de>
* cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts. * tree.h (struct tree_type): Likewise. * reload.h (struct insn_chain): Likewise. * dwarf2out.c (struct dw_loc_descr_struct): Likewise. * function.h (struct function): Likewise. * tree-ssa-structalias.c (struct equiv_class_label): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145009 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/cgraph.h8
-rw-r--r--gcc/dwarf2out.c2
-rw-r--r--gcc/function.h6
-rw-r--r--gcc/reload.h26
-rw-r--r--gcc/tree-ssa-structalias.c2
-rw-r--r--gcc/tree.h2
7 files changed, 33 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 261b13538f1..00290b54fa5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2009-03-23 Richard Guenther <rguenther@suse.de>
+
+ * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
+ * tree.h (struct tree_type): Likewise.
+ * reload.h (struct insn_chain): Likewise.
+ * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
+ * function.h (struct function): Likewise.
+ * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
+
2009-03-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/39516
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 57d4772cdd5..29fc1ba4a4d 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -163,6 +163,10 @@ struct cgraph_node GTY((chain_next ("%h.next"), chain_prev ("%h.previous")))
/* Ordering of all cgraph nodes. */
int order;
+ /* unique id for profiling. pid is not suitable because of different
+ number of cfg nodes with -fprofile-generate and -fprofile-use */
+ int pid;
+
/* Set when function must be output - it is externally visible
or its address is taken. */
unsigned needed : 1;
@@ -186,10 +190,6 @@ struct cgraph_node GTY((chain_next ("%h.next"), chain_prev ("%h.previous")))
into clone before compiling so the function in original form can be
inlined later. This pointer points to the clone. */
tree inline_decl;
-
- /* unique id for profiling. pid is not suitable because of different
- number of cfg nodes with -fprofile-generate and -fprofile-use */
- int pid;
};
struct cgraph_edge GTY((chain_next ("%h.next_caller"), chain_prev ("%h.prev_caller")))
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 133136b5bc5..af5c99484bc 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3499,9 +3499,9 @@ typedef struct dw_loc_descr_struct GTY(())
{
dw_loc_descr_ref dw_loc_next;
enum dwarf_location_atom dw_loc_opc;
+ int dw_loc_addr;
dw_val_node dw_loc_oprnd1;
dw_val_node dw_loc_oprnd2;
- int dw_loc_addr;
}
dw_loc_descr_node;
diff --git a/gcc/function.h b/gcc/function.h
index f9bdda8594d..31d223a3d39 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -501,9 +501,6 @@ struct function GTY(())
pointer. */
tree nonlocal_goto_save_area;
- /* Function sequence number for profiling, debugging, etc. */
- int funcdef_no;
-
/* List of function local variables, functions, types and constants. */
tree local_decls;
@@ -521,6 +518,9 @@ struct function GTY(())
/* Last statement uid. */
int last_stmt_uid;
+ /* Function sequence number for profiling, debugging, etc. */
+ int funcdef_no;
+
/* Line number of the start of the function for debugging purposes. */
location_t function_start_locus;
diff --git a/gcc/reload.h b/gcc/reload.h
index 17d8a3e04b2..3789680f7ca 100644
--- a/gcc/reload.h
+++ b/gcc/reload.h
@@ -205,10 +205,22 @@ struct insn_chain
all insns that need reloading. */
struct insn_chain *next_need_reload;
- /* The basic block this insn is in. */
- int block;
/* The rtx of the insn. */
rtx insn;
+
+ /* The basic block this insn is in. */
+ int block;
+
+ /* Nonzero if find_reloads said the insn requires reloading. */
+ unsigned int need_reload:1;
+ /* Nonzero if find_reloads needs to be run during reload_as_needed to
+ perform modifications on any operands. */
+ unsigned int need_operand_change:1;
+ /* Nonzero if eliminate_regs_in_insn said it requires eliminations. */
+ unsigned int need_elim:1;
+ /* Nonzero if this insn was inserted by perform_caller_saves. */
+ unsigned int is_caller_save_insn:1;
+
/* Register life information: record all live hard registers, and
all live pseudos that have a hard register. This set also
contains pseudos spilled by IRA. */
@@ -221,16 +233,6 @@ struct insn_chain
/* Indicates which registers have already been used for spills. */
HARD_REG_SET used_spill_regs;
-
- /* Nonzero if find_reloads said the insn requires reloading. */
- unsigned int need_reload:1;
- /* Nonzero if find_reloads needs to be run during reload_as_needed to
- perform modifications on any operands. */
- unsigned int need_operand_change:1;
- /* Nonzero if eliminate_regs_in_insn said it requires eliminations. */
- unsigned int need_elim:1;
- /* Nonzero if this insn was inserted by perform_caller_saves. */
- unsigned int is_caller_save_insn:1;
};
/* A chain of insn_chain structures to describe all non-note insns in
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 732bc6f7938..384fe1867cd 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -1817,9 +1817,9 @@ compute_topo_order (constraint_graph_t graph,
typedef struct equiv_class_label
{
+ hashval_t hashcode;
unsigned int equivalence_class;
bitmap labels;
- hashval_t hashcode;
} *equiv_class_label_t;
typedef const struct equiv_class_label *const_equiv_class_label_t;
diff --git a/gcc/tree.h b/gcc/tree.h
index 1f70e0461ea..e1c52e135b3 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2286,6 +2286,7 @@ struct tree_type GTY(())
unsigned user_align : 1;
unsigned int align;
+ alias_set_type alias_set;
tree pointer_to;
tree reference_to;
union tree_type_symtab {
@@ -2302,7 +2303,6 @@ struct tree_type GTY(())
tree binfo;
tree context;
tree canonical;
- alias_set_type alias_set;
/* Points to a structure whose details depend on the language in use. */
struct lang_type *lang_specific;
};