32/64bit glibc and header files
Jakub Jelinek
jakub@redhat.com
Tue Sep 26 01:03:00 GMT 2000
On Sun, Sep 24, 2000 at 07:49:15AM -0700, Ulrich Drepper wrote:
> Thorsten Kukuk <kukuk@suse.de> writes:
>
> > same on 32bit and 64bit systems (bits/endian.h [no real problem],
> > bits/siginfo.h, bits/syscall.h, gnu/stubs.h and ieee754.h).
> >
> > Is there any solution ? Can gcc search in different subdirectories
> > depending if I use -m32 or -m 64 ?
>
> All these headers should have appropriate #ifs to recognize the
> current platform. This is already done in some/most/all? places.
Thorsten is right with these, I'll work on a patch.
It will be harder with bits/syscall.h and gnu/stubs.h (because they are
generated) and ieee754.h (probably I'll just copy the ldbl-128 version to
sysdeps/sparc/sparc32) though.
Jakub
More information about the Libc-hacker
mailing list