aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-06-16 08:33:09 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-06-16 08:33:09 +0000
commit55dea919b6f3a8a18d50644aa235680c07a7b153 (patch)
tree06bf56f3d3b7725124bc6f55e04f93dde039d096 /gcc/function.h
parentb4e19405bc16c663afd58b08aeba3f8936679ffc (diff)
downloadgcc-55dea919b6f3a8a18d50644aa235680c07a7b153.zip
gcc-55dea919b6f3a8a18d50644aa235680c07a7b153.tar.gz
gcc-55dea919b6f3a8a18d50644aa235680c07a7b153.tar.bz2
function.h (enum function_frequency): Move declaration out of struct function.
2006-06-16 Richard Guenther <rguenther@suse.de> * function.h (enum function_frequency): Move declaration out of struct function. (struct function): Move bool fields and the enum to the bitfield section. Reorder elements to avoid padding. Remove unused fields left over from the RTL inliner removal. * function.c (free_after_compilation): Do not zero removed fields. * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency. (ipa-type-escape.o): Likewise. From-SVN: r114712
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h53
1 files changed, 27 insertions, 26 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 6329525..1903b16 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -165,6 +165,17 @@ typedef struct temp_slot *temp_slot_p;
DEF_VEC_P(temp_slot_p);
DEF_VEC_ALLOC_P(temp_slot_p,gc);
+enum function_frequency {
+ /* This function most likely won't be executed at all.
+ (set only when profile feedback is available). */
+ FUNCTION_FREQUENCY_UNLIKELY_EXECUTED,
+ /* The default value. */
+ FUNCTION_FREQUENCY_NORMAL,
+ /* Optimize this function hard
+ (set only when profile feedback is available). */
+ FUNCTION_FREQUENCY_HOT
+};
+
/* This structure can save all the important global and static variables
describing the status of the current function. */
@@ -177,7 +188,6 @@ struct function GTY(())
/* The control flow graph for this function. */
struct control_flow_graph *cfg;
- bool after_inlining;
/* For function.c. */
@@ -277,18 +287,12 @@ struct function GTY(())
/* List of available temp slots. */
struct temp_slot *x_avail_temp_slots;
- /* Current nesting level for temporaries. */
- int x_temp_slot_level;
-
/* This slot is initialized as 0 and is added to
during the nested function. */
struct var_refs_queue *fixup_var_refs_queue;
- /* For integrate.c. */
- int inlinable;
- int no_debugging_symbols;
- rtvec original_arg_vector;
- tree original_decl_initial;
+ /* Current nesting level for temporaries. */
+ int x_temp_slot_level;
/* Highest label number in current function. */
int inl_max_label_num;
@@ -307,14 +311,12 @@ struct function GTY(())
/* tm.h can use this to store whatever it likes. */
struct machine_function * GTY ((maybe_undef)) machine;
+
/* The largest alignment of slot allocated on the stack. */
unsigned int stack_alignment_needed;
+
/* Preferred alignment of the end of stack frame. */
unsigned int preferred_stack_boundary;
- /* Set when the call to function itself has been emit. */
- bool recursive_call_emit;
- /* Set when the tail call has been produced. */
- bool tail_call_emit;
/* Language-specific code can use this to store whatever it likes. */
struct language_function * language;
@@ -328,19 +330,6 @@ struct function GTY(())
delay list for them is recorded here. */
rtx epilogue_delay_list;
- /* How commonly executed the function is. Initialized during branch
- probabilities pass. */
- enum function_frequency {
- /* This function most likely won't be executed at all.
- (set only when profile feedback is available). */
- FUNCTION_FREQUENCY_UNLIKELY_EXECUTED,
- /* The default value. */
- FUNCTION_FREQUENCY_NORMAL,
- /* Optimize this function hard
- (set only when profile feedback is available). */
- FUNCTION_FREQUENCY_HOT
- } function_frequency;
-
/* Maximal number of entities in the single jumptable. Used to estimate
final flowgraph size. */
int max_jumptable_ents;
@@ -454,6 +443,18 @@ struct function GTY(())
/* Nonzero if code to initialize arg_pointer_save_area has been emitted. */
unsigned int arg_pointer_save_area_init : 1;
+ unsigned int after_inlining : 1;
+
+ /* Set when the call to function itself has been emit. */
+ unsigned int recursive_call_emit : 1;
+
+ /* Set when the tail call has been produced. */
+ unsigned int tail_call_emit : 1;
+
+ /* How commonly executed the function is. Initialized during branch
+ probabilities pass. */
+ ENUM_BITFIELD (function_frequency) function_frequency : 2;
+
/* Number of units of general registers that need saving in stdarg
function. What unit is depends on the backend, either it is number
of bytes, or it can be number of registers. */