This is the mail archive of the gcc@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]

Re: x86: combined usage of "-Os -mregparm=3" leads to broken codes


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


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