Commit 9bd01837 by Thomas Preud'homme Committed by Thomas Preud'homme

[ARM] Rename *_compute_save_reg_mask ()

2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
    (arm_compute_save_core_reg_mask): This.
    (thumb1_compute_save_reg_mask): Rename into ...
    (thumb1_compute_save_core_reg_mask): This.
    (arm_compute_save_reg0_reg12_mask): Adapt comment.
    (arm_compute_frame_layout): Likewise.

From-SVN: r248920
parent 331dc840
2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
(arm_compute_save_core_reg_mask): This.
(thumb1_compute_save_reg_mask): Rename into ...
(thumb1_compute_save_core_reg_mask): This.
(arm_compute_save_reg0_reg12_mask): Adapt comment.
(arm_compute_frame_layout): Likewise.
2017-06-06 Richard Biener <rguenther@suse.de> 2017-06-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/80974 PR tree-optimization/80974
......
...@@ -130,7 +130,7 @@ static void push_minipool_fix (rtx_insn *, HOST_WIDE_INT, rtx *, ...@@ -130,7 +130,7 @@ static void push_minipool_fix (rtx_insn *, HOST_WIDE_INT, rtx *,
static void arm_reorg (void); static void arm_reorg (void);
static void note_invalid_constants (rtx_insn *, HOST_WIDE_INT, int); static void note_invalid_constants (rtx_insn *, HOST_WIDE_INT, int);
static unsigned long arm_compute_save_reg0_reg12_mask (void); static unsigned long arm_compute_save_reg0_reg12_mask (void);
static unsigned long arm_compute_save_reg_mask (void); static unsigned long arm_compute_save_core_reg_mask (void);
static unsigned long arm_isr_value (tree); static unsigned long arm_isr_value (tree);
static unsigned long arm_compute_func_type (void); static unsigned long arm_compute_func_type (void);
static tree arm_handle_fndecl_attribute (tree *, tree, tree, int, bool *); static tree arm_handle_fndecl_attribute (tree *, tree, tree, int, bool *);
...@@ -19018,7 +19018,7 @@ output_ascii_pseudo_op (FILE *stream, const unsigned char *p, int len) ...@@ -19018,7 +19018,7 @@ output_ascii_pseudo_op (FILE *stream, const unsigned char *p, int len)
&& reg >= FIRST_HI_REGNUM && reg <= LAST_HI_REGNUM)) && reg >= FIRST_HI_REGNUM && reg <= LAST_HI_REGNUM))
/* Compute the register save mask for registers 0 through 12 /* Compute the register save mask for registers 0 through 12
inclusive. This code is used by arm_compute_save_reg_mask. */ inclusive. This code is used by arm_compute_save_core_reg_mask (). */
static unsigned long static unsigned long
arm_compute_save_reg0_reg12_mask (void) arm_compute_save_reg0_reg12_mask (void)
...@@ -19145,12 +19145,12 @@ arm_compute_static_chain_stack_bytes (void) ...@@ -19145,12 +19145,12 @@ arm_compute_static_chain_stack_bytes (void)
return 0; return 0;
} }
/* Compute a bit mask of which registers need to be /* Compute a bit mask of which core registers need to be
saved on the stack for the current function. saved on the stack for the current function.
This is used by arm_compute_frame_layout, which may add extra registers. */ This is used by arm_compute_frame_layout, which may add extra registers. */
static unsigned long static unsigned long
arm_compute_save_reg_mask (void) arm_compute_save_core_reg_mask (void)
{ {
unsigned int save_reg_mask = 0; unsigned int save_reg_mask = 0;
unsigned long func_type = arm_current_func_type (); unsigned long func_type = arm_current_func_type ();
...@@ -19232,10 +19232,10 @@ arm_compute_save_reg_mask (void) ...@@ -19232,10 +19232,10 @@ arm_compute_save_reg_mask (void)
return save_reg_mask; return save_reg_mask;
} }
/* Compute a bit mask of which registers need to be /* Compute a bit mask of which core registers need to be
saved on the stack for the current function. */ saved on the stack for the current function. */
static unsigned long static unsigned long
thumb1_compute_save_reg_mask (void) thumb1_compute_save_core_reg_mask (void)
{ {
unsigned long mask; unsigned long mask;
unsigned reg; unsigned reg;
...@@ -20771,7 +20771,7 @@ any_sibcall_could_use_r3 (void) ...@@ -20771,7 +20771,7 @@ any_sibcall_could_use_r3 (void)
eliminating some of the registers. eliminating some of the registers.
The values returned by this function must reflect the behavior The values returned by this function must reflect the behavior
of arm_expand_prologue() and arm_compute_save_reg_mask(). of arm_expand_prologue () and arm_compute_save_core_reg_mask ().
The sign of the number returned reflects the direction of stack The sign of the number returned reflects the direction of stack
growth, so the values are positive for all eliminations except growth, so the values are positive for all eliminations except
...@@ -20827,7 +20827,7 @@ arm_compute_frame_layout (void) ...@@ -20827,7 +20827,7 @@ arm_compute_frame_layout (void)
{ {
unsigned int regno; unsigned int regno;
offsets->saved_regs_mask = arm_compute_save_reg_mask (); offsets->saved_regs_mask = arm_compute_save_core_reg_mask ();
core_saved = bit_count (offsets->saved_regs_mask) * 4; core_saved = bit_count (offsets->saved_regs_mask) * 4;
saved = core_saved; saved = core_saved;
...@@ -20853,7 +20853,7 @@ arm_compute_frame_layout (void) ...@@ -20853,7 +20853,7 @@ arm_compute_frame_layout (void)
} }
else /* TARGET_THUMB1 */ else /* TARGET_THUMB1 */
{ {
offsets->saved_regs_mask = thumb1_compute_save_reg_mask (); offsets->saved_regs_mask = thumb1_compute_save_core_reg_mask ();
core_saved = bit_count (offsets->saved_regs_mask) * 4; core_saved = bit_count (offsets->saved_regs_mask) * 4;
saved = core_saved; saved = core_saved;
if (TARGET_BACKTRACE) if (TARGET_BACKTRACE)
......
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