This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Enable building of libsanitizer on sparc linux again.
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: David Miller <davem at davemloft dot net>
- Cc: ebotcazou at adacore dot com, dodji at redhat dot com, gcc-patches at gcc dot gnu dot org, dnovillo at google dot com, konstantin dot s dot serebryany at gmail dot com, hongjiu dot lu at intel dot com
- Date: Sat, 17 Nov 2012 16:06:23 -0800
- Subject: Re: [PATCH] Enable building of libsanitizer on sparc linux again.
- References: <87vcd7w2vr.fsf@redhat.com> <4043740.6QbVnOngHO@polaris> <20121117.190414.258577562122919313.davem@davemloft.net>
On Sat, Nov 17, 2012 at 4:04 PM, David Miller <davem@davemloft.net> wrote:
> From: Eric Botcazou <ebotcazou@adacore.com>
> Date: Sun, 18 Nov 2012 00:18:15 +0100
>
>> error: '__NR_mmap2' was not declared in this scope
>> return (void *)syscall(__NR_mmap2, addr, length, prot, flags, fd, offset);
>
> The people making libsanitizer changes are really going to have to
> stop making i386 specific changes to these generic files.
>
> Specifically, in this case, they are checking for whether mmap2 is
> available using __x86_64__ cpp tests. A more appropriate test is
> necessary.
>
> Oh nevermind, H.J. Liu added this build regression, I should have
> known.
>
> H.J., either fix or revert this code back to using __WORDSIZE if you
> cannot come up with an appropriate test.
Please follow:
http://gcc.gnu.org/ml/gcc-patches/2012-11/msg00951.html
--
H.J.