This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, dodji at redhat dot com, konstantin dot s dot serebryany at gmail dot com, mikestump at comcast dot net, iain at codesourcery dot com, glider at google dot com
- Date: Mon, 17 Dec 2012 16:15:28 +0100
- Subject: Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin
- References: <20121216211911.GA17639@bromo.med.uc.edu> <20121217144259.GK2315@tucnak.redhat.com> <20121217151325.GA22362@bromo.med.uc.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Dec 17, 2012 at 10:13:25AM -0500, Jack Howarth wrote:
> On darwin in /usr/include/sys/resource.h, we have...
>
> #define RLIMIT_AS 5 /* address space (resident set size) */
> #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
> #define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */
>
> so I guess we could craft a setrlimit effective target proc which checks
> if RLIMIT_AS has the same rlimit ID as RLIMIT_RSS. Any suggestions on how
> to implement such a check?
Or perhaps just return 0 early for [ target *-*-darwin* ] in the setrlimit
effective target test, with a comment that it violates POSIX.
Jakub