This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Define LP_SIZE/LP_OP/ASM_ADDR/RXX_LP for x32
On Tue, May 15, 2012 at 9:53 AM, Roland McGrath <roland@hack.frob.com> wrote:
> That files needs #include <sysdeps/x86_64/sysdep.h>.
It doesn't work since
./sysdeps/unix/sysv/linux/x86_64/sysdep.h has
/* There is some commonality. */
#include <sysdeps/unix/x86_64/sysdep.h>
sysdeps/unix/x86_64/sysdep.h has
#include <sysdeps/unix/sysdep.h>
#include <sysdeps/x86_64/sysdep.h>
I also need sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h
to override SYSCALL_ERROR_HANDLER. It has
#include <sysdeps/unix/sysv/linux/x86_64/sysdep.h>
#include <sysdeps/x86_64/x32/sysdep.h>
If <sysdeps/x86_64/x32/sysdep.h> includes
<sysdeps/x86_64/sysdep.h>, <sysdeps/x86_64/sysdep.h>
will be include more than once and I got
In file included from ../sysdeps/x86_64/x32/sysdep.h:19:0,
from ../sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h:23,
from ../sysdeps/unix/syscall-template.S:47,
from <stdin>:4:
../sysdeps/x86_64/sysdep.h:71:0: warning: "PSEUDO" redefined [enabled
by default]
../sysdeps/unix/sysv/linux/x86_64/sysdep.h:77:0: note: this is the
location of the previous definition
../sysdeps/unix/syscall-template.S: Assembler messages:
../sysdeps/unix/syscall-template.S:81: Error: junk `.globl
__syscall_error' after expression
--
H.J.