This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] Merge status
On Sat, 20 Mar 2004, Andreas Jaeger wrote:
> > #define IXDR_GET_LONG(buf) ((long)IXDR_GET_INT32(buf))
> If I use this definition, the assembler code on AMD64 looks different:
First guess as to why there might be different code, the existing
definition looks like it will zero-extend the unsigned result of ntohl
while the definition I gave will sign-extend it. I suspect sign-extension
is correct (given the separate _U_LONG definitions), but maybe
#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))
will be more compatible with the current definition.
Joseph S. Myers