Commit ab0cdfdd by David Edelsohn Committed by David Edelsohn

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
parent d1573fe0
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, ...@@ -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, ...@@ -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;
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