This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Please include ada-hurd.diff upstream (try2)
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: Svante Signell <svante dot signell at gmail dot com>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org, Arnaud Charlet <charlet at adacore dot com>, Matthias Klose <doko at debian dot org>
- Date: Wed, 4 May 2016 17:29:48 +0200
- Subject: Re: Please include ada-hurd.diff upstream (try2)
- Authentication-results: sourceware.org; auth=none
- References: <1456875776 dot 5852 dot 194 dot camel at gmail dot com> <20160425095016 dot GB17357 at adacore dot com> <1461580096 dot 8664 dot 262 dot camel at gmail dot com> <3112260 dot f0kR4riLZQ at polaris> <1461744364 dot 8664 dot 335 dot camel at gmail dot com>
Hello Svante,
The gcc-6 build failed. I see that one of the change is:
- -- From: /usr/include/unistd.h __getpagesize or getpagesize??
- function Get_Page_Size return int;
+ -- From: /usr/include/i386-gnu/bits/shm.h __getpagesize or getpagesize??
+ function Get_Page_Size return size_t;
+ function Get_Page_Size return Address;
Why using size_t and Address? Other OSes use int, and the prototype for
getpagesize is returning int.
Also, don't use the __ versions of the glibc functions, they are
internal aliases, the API is without __.
Samuel