https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70439
--- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> --- Author: hjl Date: Wed Mar 30 12:38:36 2016 New Revision: 234559 URL: https://gcc.gnu.org/viewcvs?rev=234559&root=gcc&view=rev Log: Properly check conflict between DRAP register and __builtin_eh_return Since %ecx can't be used for both DRAP register and __builtin_eh_return, we need to check if crtl->drap_reg uses %ecx before using %ecx for __builtin_eh_return. PR target/70439 * config/i386/i386.c (ix86_expand_epilogue): Properly check conflict between DRAP register and __builtin_eh_return. Modified: trunk/gcc/config/i386/i386.c