i386: Pass INVALID_REGNUM as invalid register number
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 2 Feb 2018 16:43:46 +0000 (16:43 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 2 Feb 2018 16:43:46 +0000 (08:43 -0800)
* 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

gcc/ChangeLog
gcc/config/i386/i386.c

index 85ab7f6e5e876eec2e2ae9043ca730edab78a3fa..448cc65b97ebeb7a67b0d1d79d51b0a1abc38405 100644 (file)
@@ -1,3 +1,9 @@
+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-02  Julia Koval  <julia.koval@intel.com>
 
        * config.gcc: Add -march=icelake.
index 5fa5d9eb17143b6534117a72e32dd55f617f1695..b07f581cd65cb4eb49face8fe0b4a570c03d3c0b 100644 (file)
@@ -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 "";
     }