]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Pass INVALID_REGNUM as invalid register number
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 16 Apr 2018 19:05:09 +0000 (19:05 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 16 Apr 2018 19:05:09 +0000 (12:05 -0700)
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: r259419

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

index 52b7e740314104ca6d059c85d07404918b39f973..61e22395998326f07ddd0feb4cc1e48b7360afb7 100644 (file)
@@ -1,3 +1,12 @@
+2018-04-16  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-04-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backport from mainline
index 40126579c223e7d55a8600f5ecfe6a135bc01ce5..66502ee6da6bcf1f0d94502ff5ebb0a39f993331 100644 (file)
@@ -28056,7 +28056,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;
@@ -28069,7 +28070,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 "";
     }