This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86: combined usage of "-Os -mregparm=3" leads to broken codes
- From: Bin Meng <bmeng dot cn at gmail dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 23 Sep 2014 16:20:16 +0800
- Subject: Re: x86: combined usage of "-Os -mregparm=3" leads to broken codes
- Authentication-results: sourceware.org; auth=none
- References: <CAEUhbmVXbgm2casiADDTCofgFMkf2oTS+gvBFn_Zx47WX4jWmg at mail dot gmail dot com> <CAFiYyc0dREkFU6tu0RqVEPYa-OsahOcWDvSHqSgLrVPThLNcQQ at mail dot gmail dot com>
Hi Richard,
On Tue, Sep 23, 2014 at 4:09 PM, Richard Biener
<richard.guenther@gmail.com> wrote:
> Your asm constraints do not specify that they use %edx.
>
> Richard.
>
Sorry, I don't understand. The %edx is not used by the inline assembly codes.
The 'mov (%eax),%edx' corresponds to C code:
pcall = (PCALL)(r->a + r->b);
where the %edx holds the value of r->a.
Regards,
Bin