Commit 4025c040 by Richard Henderson Committed by Richard Henderson

function.h (struct function): Remove x_whole_function_mode_p.

        * function.h (struct function): Remove x_whole_function_mode_p.
        * c-decl.c (store_parm_decls): Don't set it.
        * tree-optimize.c (tree_rest_of_compilation): Likewise.
        * passes.c (rest_of_compilation): Don't check it.
        * stmt.c (expand_fixup): Likewise.
        * function.c (fixup_var_refs_insn): Remove unused variable.
fortran/
        * trans-decl.c (gfc_generate_function_code): Don't set
        x_whole_function_mode_p.
        (gfc_generate_constructors): Likewise.

From-SVN: r83947
parent 6a0bec2c
2004-06-30 Richard Henderson <rth@redhat.com> 2004-06-30 Richard Henderson <rth@redhat.com>
* function.h (struct function): Remove x_whole_function_mode_p.
* c-decl.c (store_parm_decls): Don't set it.
* tree-optimize.c (tree_rest_of_compilation): Likewise.
* passes.c (rest_of_compilation): Don't check it.
* stmt.c (expand_fixup): Likewise.
* function.c (fixup_var_refs_insn): Remove unused variable.
2004-06-30 Richard Henderson <rth@redhat.com>
* tree.h (immediate_size_expand): Delete. * tree.h (immediate_size_expand): Delete.
* stor-layout.c (immediate_size_expand): Delete. * stor-layout.c (immediate_size_expand): Delete.
(variable_size): Don't look at it. (variable_size): Don't look at it.
......
...@@ -6151,9 +6151,6 @@ store_parm_decls (void) ...@@ -6151,9 +6151,6 @@ store_parm_decls (void)
} }
} }
/* This function is being processed in whole-function mode. */
cfun->x_whole_function_mode_p = 1;
/* Even though we're inside a function body, we still don't want to /* Even though we're inside a function body, we still don't want to
call expand_expr to calculate the size of a variable-sized array. call expand_expr to calculate the size of a variable-sized array.
We haven't necessarily assigned RTL to all variables yet, so it's We haven't necessarily assigned RTL to all variables yet, so it's
......
2004-06-30 Richard Henderson <rth@redhat.com> 2004-06-30 Richard Henderson <rth@redhat.com>
* trans-decl.c (gfc_generate_function_code): Don't set * trans-decl.c (gfc_generate_function_code): Don't set
x_whole_function_mode_p.
(gfc_generate_constructors): Likewise.
2004-06-30 Richard Henderson <rth@redhat.com>
* trans-decl.c (gfc_generate_function_code): Don't set
immediate_size_expand. immediate_size_expand.
(gfc_generate_constructors): Likewise. (gfc_generate_constructors): Likewise.
......
...@@ -2028,9 +2028,6 @@ gfc_generate_function_code (gfc_namespace * ns) ...@@ -2028,9 +2028,6 @@ gfc_generate_function_code (gfc_namespace * ns)
/* line and file should not be 0 */ /* line and file should not be 0 */
init_function_start (fndecl); init_function_start (fndecl);
/* We're in function-at-a-time mode. */
cfun->x_whole_function_mode_p = 1;
/* Even though we're inside a function body, we still don't want to /* Even though we're inside a function body, we still don't want to
call expand_expr to calculate the size of a variable-sized array. call expand_expr to calculate the size of a variable-sized array.
We haven't necessarily assigned RTL to all variables yet, so it's We haven't necessarily assigned RTL to all variables yet, so it's
...@@ -2188,8 +2185,6 @@ gfc_generate_constructors (void) ...@@ -2188,8 +2185,6 @@ gfc_generate_constructors (void)
init_function_start (fndecl, input_filename, input_line); init_function_start (fndecl, input_filename, input_line);
cfun->x_whole_function_mode_p = 1;
pushlevel (0); pushlevel (0);
for (; gfc_static_ctors; gfc_static_ctors = TREE_CHAIN (gfc_static_ctors)) for (; gfc_static_ctors; gfc_static_ctors = TREE_CHAIN (gfc_static_ctors))
......
...@@ -1768,7 +1768,6 @@ fixup_var_refs_insn (rtx insn, rtx var, enum machine_mode promoted_mode, ...@@ -1768,7 +1768,6 @@ fixup_var_refs_insn (rtx insn, rtx var, enum machine_mode promoted_mode,
else else
{ {
struct fixup_replacement *replacements = 0; struct fixup_replacement *replacements = 0;
rtx next_insn = NEXT_INSN (insn);
if (SMALL_REGISTER_CLASSES) if (SMALL_REGISTER_CLASSES)
{ {
......
...@@ -461,12 +461,6 @@ struct function GTY(()) ...@@ -461,12 +461,6 @@ struct function GTY(())
/* 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;
/* Nonzero if this function is being processed in function-at-a-time
mode. In other words, if all tree structure for this function,
including the BLOCK tree, is created before RTL generation
commences. */
unsigned int x_whole_function_mode_p : 1;
/* Nonzero if the back-end should not keep track of expressions that /* Nonzero if the back-end should not keep track of expressions that
determine the size of variable-sized objects. Normally, such determine the size of variable-sized objects. Normally, such
expressions are saved away, and then expanded when the next expressions are saved away, and then expanded when the next
......
...@@ -1376,14 +1376,8 @@ rest_of_compilation (void) ...@@ -1376,14 +1376,8 @@ rest_of_compilation (void)
if (!cfun->dont_emit_block_notes) if (!cfun->dont_emit_block_notes)
{ {
/* First, make sure that NOTE_BLOCK is set correctly for each
NOTE_INSN_BLOCK_BEG/NOTE_INSN_BLOCK_END note. */
if (!cfun->x_whole_function_mode_p)
identify_blocks ();
/* In function-at-a-time mode, we do not attempt to keep the BLOCK /* In function-at-a-time mode, we do not attempt to keep the BLOCK
tree in sensible shape. So, we just recalculate it here. */ tree in sensible shape. So, we just recalculate it here. */
if (cfun->x_whole_function_mode_p)
reorder_blocks (); reorder_blocks ();
} }
else else
......
...@@ -745,23 +745,16 @@ expand_fixup (tree tree_label, rtx rtl_label, rtx last_insn) ...@@ -745,23 +745,16 @@ expand_fixup (tree tree_label, rtx rtl_label, rtx last_insn)
block = make_node (BLOCK); block = make_node (BLOCK);
TREE_USED (block) = 1; TREE_USED (block) = 1;
if (!cfun->x_whole_function_mode_p)
lang_hooks.decls.insert_block (block);
else
{
BLOCK_CHAIN (block) BLOCK_CHAIN (block)
= BLOCK_CHAIN (DECL_INITIAL (current_function_decl)); = BLOCK_CHAIN (DECL_INITIAL (current_function_decl));
BLOCK_CHAIN (DECL_INITIAL (current_function_decl)) BLOCK_CHAIN (DECL_INITIAL (current_function_decl))
= block; = block;
}
start_sequence (); start_sequence ();
start = emit_note (NOTE_INSN_BLOCK_BEG); start = emit_note (NOTE_INSN_BLOCK_BEG);
if (cfun->x_whole_function_mode_p)
NOTE_BLOCK (start) = block; NOTE_BLOCK (start) = block;
fixup->before_jump = emit_note (NOTE_INSN_DELETED); fixup->before_jump = emit_note (NOTE_INSN_DELETED);
end = emit_note (NOTE_INSN_BLOCK_END); end = emit_note (NOTE_INSN_BLOCK_END);
if (cfun->x_whole_function_mode_p)
NOTE_BLOCK (end) = block; NOTE_BLOCK (end) = block;
fixup->context = block; fixup->context = block;
end_sequence (); end_sequence ();
......
...@@ -467,9 +467,6 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) ...@@ -467,9 +467,6 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
input_location = DECL_SOURCE_LOCATION (fndecl); input_location = DECL_SOURCE_LOCATION (fndecl);
init_function_start (fndecl); init_function_start (fndecl);
/* This function is being processed in whole-function mode. */
cfun->x_whole_function_mode_p = 1;
/* Even though we're inside a function body, we still don't want to /* Even though we're inside a function body, we still don't want to
call expand_expr to calculate the size of a variable-sized array. call expand_expr to calculate the size of a variable-sized array.
We haven't necessarily assigned RTL to all variables yet, so it's We haven't necessarily assigned RTL to all variables yet, so it's
......
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