i386: Pass INVALID_REGNUM as invalid register number

Backport from mainline
	* config/i386/i386.c (ix86_output_function_return): Pass
	INVALID_REGNUM, instead of -1, as invalid register number to
	indirect_thunk_name and output_indirect_thunk.

From-SVN: r257341
This commit is contained in:
H.J. Lu 2018-02-02 16:47:02 +00:00 committed by H.J. Lu
parent fc8922bb92
commit f11eef4c5a
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2018-02-02 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2018-02-02 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_output_function_return): Pass
INVALID_REGNUM, instead of -1, as invalid register number to
indirect_thunk_name and output_indirect_thunk.
2018-02-01 Uros Bizjak <ubizjak@gmail.com>
Backport from mainline

View File

@ -29146,7 +29146,8 @@ ix86_output_function_return (bool long_p)
{
bool need_thunk = (cfun->machine->function_return_type
== indirect_branch_thunk);
indirect_thunk_name (thunk_name, -1, need_bnd_p, true);
indirect_thunk_name (thunk_name, INVALID_REGNUM, need_bnd_p,
true);
if (need_bnd_p)
{
indirect_thunk_bnd_needed |= need_thunk;
@ -29159,7 +29160,7 @@ ix86_output_function_return (bool long_p)
}
}
else
output_indirect_thunk (need_bnd_p, -1);
output_indirect_thunk (need_bnd_p, INVALID_REGNUM);
return "";
}