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 64 bit function argument bug?


On Sun, 2003-05-04 at 11:54, Falk Hueffner wrote:
> Stephen Biggs <xyzzy@hotpop.com> writes:
> 
> > I want to take an address of an argument and dereference it to
> > access the value that is passed to a function on the stack.
> 
> That should work just fine. If it doesn't, it's a bug.

Ah, now we understand each other.  I am saying that the x86 behavior for
64 bit value arguments is a bug.

> 
> Note that many architectures don't actually pass arguments on the
> stack; but if you take the address of an argument, it's pushed there.
> 
> > Basically I am trying to do varargs/stdarg without using varargs or
> > any built-in functions.
> 
> That is impossible to do portably.

Granted.  I would be satisfied with it working in GCC, and it does on
the x86 except for 64 bit values.

> 
> -- 
> 	Falk
> 




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