rs6000.c (rs6000_function_arg): Ensure type is non-NULL.
* config/rs6000/rs6000.c (rs6000_function_arg): Ensure type is non-NULL. (rs6000_arg_partial_bytes): Same. From-SVN: r267104
This commit is contained in:
parent
d1573fe051
commit
ab0cdfdd97
@ -1,3 +1,9 @@
|
|||||||
|
2018-12-13 David Edelsohn <dje.gcc@gmail.com>
|
||||||
|
|
||||||
|
* config/rs6000/rs6000.c (rs6000_function_arg): Ensure type is
|
||||||
|
non-NULL.
|
||||||
|
(rs6000_arg_partial_bytes): Same.
|
||||||
|
|
||||||
2018-12-13 Jason Merrill <jason@redhat.com>
|
2018-12-13 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
* gdbinit.in (pp): New macro.
|
* gdbinit.in (pp): New macro.
|
||||||
|
@ -11999,7 +11999,8 @@ rs6000_function_arg (cumulative_args_t cum_v, machine_mode mode,
|
|||||||
cum->fregno++;
|
cum->fregno++;
|
||||||
|
|
||||||
if (USE_FP_FOR_ARG_P (cum, elt_mode)
|
if (USE_FP_FOR_ARG_P (cum, elt_mode)
|
||||||
&& !(TARGET_AIX && !TARGET_ELF && AGGREGATE_TYPE_P (type)))
|
&& !(TARGET_AIX && !TARGET_ELF
|
||||||
|
&& type != NULL && AGGREGATE_TYPE_P (type)))
|
||||||
{
|
{
|
||||||
rtx rvec[GP_ARG_NUM_REG + AGGR_ARG_NUM_REG + 1];
|
rtx rvec[GP_ARG_NUM_REG + AGGR_ARG_NUM_REG + 1];
|
||||||
rtx r, off;
|
rtx r, off;
|
||||||
@ -12136,7 +12137,8 @@ rs6000_arg_partial_bytes (cumulative_args_t cum_v, machine_mode mode,
|
|||||||
align_words = rs6000_parm_start (mode, type, cum->words);
|
align_words = rs6000_parm_start (mode, type, cum->words);
|
||||||
|
|
||||||
if (USE_FP_FOR_ARG_P (cum, elt_mode)
|
if (USE_FP_FOR_ARG_P (cum, elt_mode)
|
||||||
&& !(TARGET_AIX && !TARGET_ELF && AGGREGATE_TYPE_P (type)))
|
&& !(TARGET_AIX && !TARGET_ELF
|
||||||
|
&& type != NULL && AGGREGATE_TYPE_P (type)))
|
||||||
{
|
{
|
||||||
unsigned long n_fpreg = (GET_MODE_SIZE (elt_mode) + 7) >> 3;
|
unsigned long n_fpreg = (GET_MODE_SIZE (elt_mode) + 7) >> 3;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user