From: H.J. Lu Date: Fri, 2 Feb 2018 16:43:46 +0000 (+0000) Subject: i386: Pass INVALID_REGNUM as invalid register number X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=881574614d7db23be0fd91fc0fb1e024a1fa7e36;p=gcc.git i386: Pass INVALID_REGNUM as invalid register number * 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: r257340 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85ab7f6e5e8..448cc65b97e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-02 H.J. Lu + + * 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-02 Julia Koval * config.gcc: Add -march=icelake. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5fa5d9eb171..b07f581cd65 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -28940,7 +28940,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; @@ -28953,7 +28954,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 ""; }