aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-08-31 14:56:11 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-08-31 14:56:11 +0000
commitbeb32b5981c96e592c73126f3f1b89b848547fbe (patch)
tree53a16a8d5ccfed3dca1e664f77beadcd3b6b321a /gcc
parent7562df8122d83aa86ddbc2e096a96ef16e85045f (diff)
downloadgcc-beb32b5981c96e592c73126f3f1b89b848547fbe.zip
gcc-beb32b5981c96e592c73126f3f1b89b848547fbe.tar.gz
gcc-beb32b5981c96e592c73126f3f1b89b848547fbe.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/function.c2
-rw-r--r--gcc/function.h31
3 files changed, 16 insertions, 27 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e7d598a..9156b9d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+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
diff --git a/gcc/function.c b/gcc/function.c
index 015ad13..ec7c2e3 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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
diff --git a/gcc/function.h b/gcc/function.h
index 7de484c..084f05b 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)