This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]