diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 14:56:11 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 14:56:11 +0000 |
commit | 458cf3349633fff836292c88efddd0701f038598 (patch) | |
tree | 53a16a8d5ccfed3dca1e664f77beadcd3b6b321a /gcc/function.h | |
parent | 6a0a4c31e872d3ef97ef084da9c0ead37248bc30 (diff) | |
download | gcc-458cf3349633fff836292c88efddd0701f038598.tar.gz |
2007-08-31 Richard Guenther <rguenther@suse.de>
* function.c (allocate_struct_function): Do not set
current_function_returns_pointer.
* function.h (struct var_refs_queue): Remove.
(struct simple_obstack_stack): Likewise.
(struct function): Remove fixup_var_refs_queue member.
Remove returns_pointer flag.
(current_function_returns_pointer): Remove define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/gcc/function.h b/gcc/function.h index 7de484c2814..084f05b77b1 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -20,17 +20,10 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_FUNCTION_H #define GCC_FUNCTION_H + #include "tree.h" #include "hashtab.h" -struct var_refs_queue GTY(()) -{ - rtx modified; - enum machine_mode promoted_mode; - int unsignedp; - struct var_refs_queue *next; -}; - /* Stack of pending (incomplete) sequences saved by `start_sequence'. Each element describes one pending sequence. The main insn-chain is saved in the last element of the chain, @@ -43,14 +36,6 @@ struct sequence_stack GTY(()) rtx last; struct sequence_stack *next; }; - -/* Stack of single obstacks. */ - -struct simple_obstack_stack -{ - struct obstack *obstack; - struct simple_obstack_stack *next; -}; struct emit_status GTY(()) { @@ -292,10 +277,6 @@ struct function GTY(()) /* List of available temp slots. */ struct temp_slot *x_avail_temp_slots; - /* This slot is initialized as 0 and is added to - during the nested function. */ - struct var_refs_queue *fixup_var_refs_queue; - /* Current nesting level for temporaries. */ int x_temp_slot_level; @@ -374,6 +355,7 @@ struct function GTY(()) function. */ unsigned int va_list_fpr_size : 8; + /* How commonly executed the function is. Initialized during branch probabilities pass. */ ENUM_BITFIELD (function_frequency) function_frequency : 2; @@ -386,9 +368,6 @@ struct function GTY(()) return the address of where it has put a structure value. */ unsigned int returns_pcc_struct : 1; - /* Nonzero if the current function returns a pointer type. */ - unsigned int returns_pointer : 1; - /* Nonzero if function being compiled can call setjmp. */ unsigned int calls_setjmp : 1; @@ -403,6 +382,7 @@ struct function GTY(()) /* Nonzero if the function calls __builtin_eh_return. */ unsigned int calls_eh_return : 1; + /* Nonzero if function being compiled receives nonlocal gotos from nested functions. */ unsigned int has_nonlocal_label : 1; @@ -437,6 +417,7 @@ struct function GTY(()) function. */ unsigned int limit_stack : 1; + /* Nonzero if current function uses stdarg.h or equivalent. */ unsigned int stdarg : 1; @@ -466,13 +447,14 @@ struct function GTY(()) /* 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; /* FIXME tuples: This bit is temporarily here to mark when a function has been gimplified, so we can make sure we're not creating non GIMPLE tuples after gimplification. */ - unsigned gimplified : 1; + unsigned int gimplified : 1; }; /* If va_list_[gf]pr_size is set to this, it means we don't know how @@ -496,7 +478,6 @@ extern int trampolines_created; #define current_function_pops_args (cfun->pops_args) #define current_function_returns_struct (cfun->returns_struct) #define current_function_returns_pcc_struct (cfun->returns_pcc_struct) -#define current_function_returns_pointer (cfun->returns_pointer) #define current_function_calls_setjmp (cfun->calls_setjmp) #define current_function_calls_alloca (cfun->calls_alloca) #define current_function_accesses_prior_frames (cfun->accesses_prior_frames) |