Commit beb32b59 by Richard Guenther Committed by Richard Biener

function.c (allocate_struct_function): Do not set current_function_returns_pointer.

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.

From-SVN: r127994
parent 7562df81
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.
2007-08-31 Nick Clifton <nickc@redhat.com> 2007-08-31 Nick Clifton <nickc@redhat.com>
* tree-ssa-coalesce.c (compare_pairs): Use the elements as * tree-ssa-coalesce.c (compare_pairs): Use the elements as
......
...@@ -3828,8 +3828,6 @@ allocate_struct_function (tree fndecl) ...@@ -3828,8 +3828,6 @@ allocate_struct_function (tree fndecl)
current_function_returns_struct = 1; current_function_returns_struct = 1;
} }
current_function_returns_pointer = POINTER_TYPE_P (TREE_TYPE (result));
current_function_stdarg current_function_stdarg
= (fntype = (fntype
&& TYPE_ARG_TYPES (fntype) != 0 && TYPE_ARG_TYPES (fntype) != 0
......
...@@ -20,17 +20,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -20,17 +20,10 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_FUNCTION_H #ifndef GCC_FUNCTION_H
#define GCC_FUNCTION_H #define GCC_FUNCTION_H
#include "tree.h" #include "tree.h"
#include "hashtab.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'. /* Stack of pending (incomplete) sequences saved by `start_sequence'.
Each element describes one pending sequence. Each element describes one pending sequence.
The main insn-chain is saved in the last element of the chain, The main insn-chain is saved in the last element of the chain,
...@@ -43,14 +36,6 @@ struct sequence_stack GTY(()) ...@@ -43,14 +36,6 @@ struct sequence_stack GTY(())
rtx last; rtx last;
struct sequence_stack *next; struct sequence_stack *next;
}; };
/* Stack of single obstacks. */
struct simple_obstack_stack
{
struct obstack *obstack;
struct simple_obstack_stack *next;
};
struct emit_status GTY(()) struct emit_status GTY(())
{ {
...@@ -292,10 +277,6 @@ struct function GTY(()) ...@@ -292,10 +277,6 @@ struct function GTY(())
/* List of available temp slots. */ /* List of available temp slots. */
struct temp_slot *x_avail_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. */ /* Current nesting level for temporaries. */
int x_temp_slot_level; int x_temp_slot_level;
...@@ -374,6 +355,7 @@ struct function GTY(()) ...@@ -374,6 +355,7 @@ struct function GTY(())
function. */ function. */
unsigned int va_list_fpr_size : 8; unsigned int va_list_fpr_size : 8;
/* How commonly executed the function is. Initialized during branch /* How commonly executed the function is. Initialized during branch
probabilities pass. */ probabilities pass. */
ENUM_BITFIELD (function_frequency) function_frequency : 2; ENUM_BITFIELD (function_frequency) function_frequency : 2;
...@@ -386,9 +368,6 @@ struct function GTY(()) ...@@ -386,9 +368,6 @@ struct function GTY(())
return the address of where it has put a structure value. */ return the address of where it has put a structure value. */
unsigned int returns_pcc_struct : 1; 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. */ /* Nonzero if function being compiled can call setjmp. */
unsigned int calls_setjmp : 1; unsigned int calls_setjmp : 1;
...@@ -403,6 +382,7 @@ struct function GTY(()) ...@@ -403,6 +382,7 @@ struct function GTY(())
/* Nonzero if the function calls __builtin_eh_return. */ /* Nonzero if the function calls __builtin_eh_return. */
unsigned int calls_eh_return : 1; unsigned int calls_eh_return : 1;
/* Nonzero if function being compiled receives nonlocal gotos /* Nonzero if function being compiled receives nonlocal gotos
from nested functions. */ from nested functions. */
unsigned int has_nonlocal_label : 1; unsigned int has_nonlocal_label : 1;
...@@ -437,6 +417,7 @@ struct function GTY(()) ...@@ -437,6 +417,7 @@ struct function GTY(())
function. */ function. */
unsigned int limit_stack : 1; unsigned int limit_stack : 1;
/* Nonzero if current function uses stdarg.h or equivalent. */ /* Nonzero if current function uses stdarg.h or equivalent. */
unsigned int stdarg : 1; unsigned int stdarg : 1;
...@@ -466,13 +447,14 @@ struct function GTY(()) ...@@ -466,13 +447,14 @@ struct function GTY(())
/* Set when the call to function itself has been emit. */ /* Set when the call to function itself has been emit. */
unsigned int recursive_call_emit : 1; unsigned int recursive_call_emit : 1;
/* Set when the tail call has been produced. */ /* Set when the tail call has been produced. */
unsigned int tail_call_emit : 1; unsigned int tail_call_emit : 1;
/* FIXME tuples: This bit is temporarily here to mark when a /* FIXME tuples: This bit is temporarily here to mark when a
function has been gimplified, so we can make sure we're not function has been gimplified, so we can make sure we're not
creating non GIMPLE tuples after gimplification. */ 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 /* 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; ...@@ -496,7 +478,6 @@ extern int trampolines_created;
#define current_function_pops_args (cfun->pops_args) #define current_function_pops_args (cfun->pops_args)
#define current_function_returns_struct (cfun->returns_struct) #define current_function_returns_struct (cfun->returns_struct)
#define current_function_returns_pcc_struct (cfun->returns_pcc_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_setjmp (cfun->calls_setjmp)
#define current_function_calls_alloca (cfun->calls_alloca) #define current_function_calls_alloca (cfun->calls_alloca)
#define current_function_accesses_prior_frames (cfun->accesses_prior_frames) #define current_function_accesses_prior_frames (cfun->accesses_prior_frames)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment