From b9204e5d960971dc0f27daaf16cd306471ce0eb1 Mon Sep 17 00:00:00 2001
From: drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 16 Apr 2000 00:08:56 +0000
Subject: [PATCH] (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
 using ret $N.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33174 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/config/i386/i386.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index d5ebd677dd40..516c27449347 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -2106,11 +2106,11 @@ ix86_expand_epilogue (emit_return)
     {
       rtx popc = GEN_INT (current_function_pops_args);
 
-      /* i386 can only pop 32K bytes (maybe 64K?  Is it signed?).  If
-	 asked to pop more, pop return address, do explicit add, and jump
-	 indirectly to the caller. */
+      /* i386 can only pop 64K bytes.  If asked to pop more, pop
+	 return address, do explicit add, and jump indirectly to the
+	 caller. */
 
-      if (current_function_pops_args >= 32768)
+      if (current_function_pops_args >= 65536)
 	{
 	  rtx ecx = gen_rtx_REG (SImode, 2);
 
-- 
GitLab