Commit 5719867d by Joern Rennecke Committed by Joern Rennecke

arc.c (stdio.h): Don't include directly.

        * config/arc/arc.c (stdio.h): Don't include directly.
        (arc_frame_info): Remove GTY marker.
        (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
        Remove if (1) condition.
        (arc_encode_section_info): Fix comment.

Co-Authored-By: Diego Novillo <dnovillo@google.com>

From-SVN: r203089
parent 2df0e3c9
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
Replace commented out call_value_via_label_mixed with a Replace commented out call_value_via_label_mixed with a
plain comment about bl_s. plain comment about bl_s.
* config/arc/arc.c (stdio.h): Don't include directly.
(arc_frame_info): Remove GTY marker.
(arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
Remove if (1) condition.
(arc_encode_section_info): Fix comment.
2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com> 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
* config/arc/arc.c (arc_conditional_register_usage): * config/arc/arc.c (arc_conditional_register_usage):
......
...@@ -30,7 +30,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -30,7 +30,6 @@ along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "config.h" #include "config.h"
#include <stdio.h>
#include "system.h" #include "system.h"
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
...@@ -1809,7 +1808,7 @@ Notes: ...@@ -1809,7 +1808,7 @@ Notes:
/* Structure to be filled in by arc_compute_frame_size with register /* Structure to be filled in by arc_compute_frame_size with register
save masks, and offsets for the current function. */ save masks, and offsets for the current function. */
struct GTY (()) arc_frame_info struct arc_frame_info
{ {
unsigned int total_size; /* # bytes that the entire frame takes up. */ unsigned int total_size; /* # bytes that the entire frame takes up. */
unsigned int extra_size; /* # bytes of extra stuff. */ unsigned int extra_size; /* # bytes of extra stuff. */
...@@ -2259,15 +2258,10 @@ arc_expand_epilogue (int sibcall_p) ...@@ -2259,15 +2258,10 @@ arc_expand_epilogue (int sibcall_p)
? arc_compute_frame_size (size) ? arc_compute_frame_size (size)
: cfun->machine->frame_info.total_size); : cfun->machine->frame_info.total_size);
if (1)
{
unsigned int pretend_size = cfun->machine->frame_info.pretend_size; unsigned int pretend_size = cfun->machine->frame_info.pretend_size;
unsigned int frame_size; unsigned int frame_size;
unsigned int size_to_deallocate; unsigned int size_to_deallocate;
int restored; int restored;
#if 0
bool fp_restored_p;
#endif
int can_trust_sp_p = !cfun->calls_alloca; int can_trust_sp_p = !cfun->calls_alloca;
int first_offset = 0; int first_offset = 0;
int millicode_p = cfun->machine->frame_info.millicode_end_reg > 0; int millicode_p = cfun->machine->frame_info.millicode_end_reg > 0;
...@@ -2401,16 +2395,12 @@ arc_expand_epilogue (int sibcall_p) ...@@ -2401,16 +2395,12 @@ arc_expand_epilogue (int sibcall_p)
It makes the following a lot more readable. */ It makes the following a lot more readable. */
size_to_deallocate += first_offset; size_to_deallocate += first_offset;
restored = size - size_to_deallocate; restored = size - size_to_deallocate;
#if 0
fp_restored_p = 1;
#endif
if (size > restored) if (size > restored)
frame_stack_add (size - restored); frame_stack_add (size - restored);
/* Emit the return instruction. */ /* Emit the return instruction. */
if (sibcall_p == FALSE) if (sibcall_p == FALSE)
emit_jump_insn (gen_simple_return ()); emit_jump_insn (gen_simple_return ());
}
epilogue_done: epilogue_done:
if (!TARGET_EPILOGUE_CFI) if (!TARGET_EPILOGUE_CFI)
{ {
...@@ -3975,11 +3965,7 @@ branch_dest (rtx branch) ...@@ -3975,11 +3965,7 @@ branch_dest (rtx branch)
} }
/* Symbols in the text segment can be accessed without indirecting via the /* Implement TARGET_ENCODE_SECTION_INFO hook. */
constant pool; it may take an extra binary operation, but this is still
faster than indirecting via memory. Don't do this when not optimizing,
since we won't be calculating al of the offsets necessary to do this
simplification. */
static void static void
arc_encode_section_info (tree decl, rtx rtl, int first) arc_encode_section_info (tree decl, rtx rtl, int first)
......
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