Re: Passing 64-bit function arguments to assembler

2012-10-12 Thread Florian Weimer
On 10/12/2012 10:55 AM, Mischa Baars wrote: As can be seen from the objdump output, 64-bit arguments are passed in 32-bit registers x86_64 clears the upper 32 bit of a 64 bit register if the lower 32 bit are written to, so this isn't a bug. -- Florian Weimer / Red Hat Product Security Team

Re: Passing 64-bit function arguments to assembler

2012-10-12 Thread Andrew Pinski
On Fri, Oct 12, 2012 at 1:55 AM, Mischa Baars wrote: > Hi, > > Here's a possible bug in the compiler: > > As can be seen from the objdump output, 64-bit arguments are passed in > 32-bit registers > > 0040049c : > 40049c:55 push rbp > 40049d:48 89 e5