This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/45206] [4.6 regression] ICE on __builtin_eh_return at -Os



------- Comment #10 from ubizjak at gmail dot com  2010-09-07 09:25 -------
We just calculated SP in the code following the comment:
"/* eh_return epilogues need %ecx added to the stack pointer.  */"

So, stack pointer should be valid at the end.

I'm testing following patch:

Index: i386.c
===================================================================
--- i386.c      (revision 163940)
+++ i386.c      (working copy)
@@ -10118,6 +10118,7 @@ ix86_expand_epilogue (int style)
                }
            }
          m->fs.sp_offset = UNITS_PER_WORD;
+         m->fs.sp_valid = true;
        }
     }
   else


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45206


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]