alpha-protos.h (alpha_find_lo_sum_using_gp): Return a bool.
gcc/ * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return a bool. * config/alpha/alpha.c (find_lo_sum_using_gp): Delete. (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool. From-SVN: r216756
This commit is contained in:
parent
f9a20af005
commit
4dba355399
|
@ -1,3 +1,10 @@
|
|||
2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
|
||||
a bool.
|
||||
* config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
|
||||
(alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
|
||||
|
||||
2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* config/alpha/alpha.c (alpha_set_memflags_1): Delete.
|
||||
|
|
|
@ -75,7 +75,7 @@ extern rtx function_value (const_tree, const_tree, enum machine_mode);
|
|||
extern void alpha_start_function (FILE *, const char *, tree);
|
||||
extern void alpha_end_function (FILE *, const char *, tree);
|
||||
|
||||
extern int alpha_find_lo_sum_using_gp (rtx);
|
||||
extern bool alpha_find_lo_sum_using_gp (rtx);
|
||||
|
||||
#ifdef REAL_VALUE_TYPE
|
||||
extern int check_float_value (enum machine_mode, REAL_VALUE_TYPE *, int);
|
||||
|
|
|
@ -7562,16 +7562,17 @@ vms_output_aligned_decl_common(FILE *file, tree decl, const char *name,
|
|||
|
||||
#endif
|
||||
|
||||
static int
|
||||
find_lo_sum_using_gp (rtx *px, void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return GET_CODE (*px) == LO_SUM && XEXP (*px, 0) == pic_offset_table_rtx;
|
||||
}
|
||||
|
||||
int
|
||||
bool
|
||||
alpha_find_lo_sum_using_gp (rtx insn)
|
||||
{
|
||||
return for_each_rtx (&PATTERN (insn), find_lo_sum_using_gp, NULL) > 0;
|
||||
subrtx_iterator::array_type array;
|
||||
FOR_EACH_SUBRTX (iter, array, PATTERN (insn), NONCONST)
|
||||
{
|
||||
const_rtx x = *iter;
|
||||
if (GET_CODE (x) == LO_SUM && XEXP (x, 0) == pic_offset_table_rtx)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue