Re: [PATCH] x86: Always update EH return address in word_mode

2018-08-20 Thread H.J. Lu
u" Date: Mon, 20 Aug 2018 10:04:35 -0700 Subject: [PATCH] x86: Always update EH return address in word_mode On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. gcc/ PR target/87014 * config/i386/i386.md (eh_return): Alway

Re: [PATCH] x86: Always update EH return address in word_mode

2018-08-20 Thread Uros Bizjak
On Mon, Aug 20, 2018 at 8:19 PM, H.J. Lu wrote: > On x86, return address is always popped in word_mode. eh_return needs > to put EH return address in word_mode on stack. > > Tested on x86-64 with x32. OK for trunk and release branches? OK. Perhaps the testcase should go into g++.dg/torture, sinc

[PATCH] x86: Always update EH return address in word_mode

2018-08-20 Thread H.J. Lu
On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. Tested on x86-64 with x32. OK for trunk and release branches? Thanks. H.J. --- gcc/ PR target/87014 * config/i386/i386.md (eh_return): Always update EH return