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>
* tree-ssa-coalesce.c (compare_pairs): Use the elements as
......
......@@ -3828,8 +3828,6 @@ allocate_struct_function (tree fndecl)
current_function_returns_struct = 1;
}
current_function_returns_pointer = POINTER_TYPE_P (TREE_TYPE (result));
current_function_stdarg
= (fntype
&& TYPE_ARG_TYPES (fntype) != 0
......
......@@ -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,
......@@ -44,14 +37,6 @@ struct sequence_stack GTY(())
struct sequence_stack *next;
};
/* Stack of single obstacks. */
struct simple_obstack_stack
{
struct obstack *obstack;
struct simple_obstack_stack *next;
};
struct emit_status GTY(())
{
/* This is reset to LAST_VIRTUAL_REGISTER + 1 at the start of each function.
......@@ -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)
......
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