This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: [PATCH] ppc64 libc-start changes


Roland McGrath writes:

> > Because argc is an int and sizeof(int) != sizeof(long) and powerpc is
> > bigendian (I need the lower 32-bits of a 64-bit dword).
> >
> > I suppose argc = (int)(*(long *__unbounded) stack_on_entry); might
work.
>
> All three are equivalent.  The cast is implied by the assignment.
>

Oops. I was thinking Java again. Can't get away with that stuff there ;-)

I'll fix it up and resubmit.




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