From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5542 invoked by alias); 27 Nov 2009 09:39:09 -0000 Received: (qmail 5526 invoked by uid 22791); 27 Nov 2009 09:39:08 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Nov 2009 09:39:02 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAR9cw8o017221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Nov 2009 04:38:58 -0500 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAR9cqGM017499; Fri, 27 Nov 2009 04:38:57 -0500 Message-ID: <4B0F9E2B.9000803@redhat.com> Date: Fri, 27 Nov 2009 09:39:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Ben Elliston CC: gcc-patches@gcc.gnu.org, java@gcc.gnu.org Subject: Re: PATCH, boehm-gc: silence os_dep.c warnings References: <1259289740.16929.4.camel@bapbop> In-Reply-To: <1259289740.16929.4.camel@bapbop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00062.txt.bz2 Ben Elliston wrote: > GNU/Linux systems warn about the BSD signal functions like sigsetmask: > > warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:199) > > This patch rearranges some of the code in boehm-gc/os_dep.c so that > modern systems providing the POSIX signals API are used in preference to > the BSD API. This is important on systems like GNU/Linux where both > APIs are provided. > > As autoconf tests are not used in boehm-gc, I have followed the style of > tests already used in this file. Bootstrapping is underway on > x86_64-linux-gnu. Okay for the trunk? > > Ben > > > 2009-11-27 Ben Elliston > > * os_dep.c: Use the POSIX signal API in preference to the BSD API. > Generate a compilation error if neither the POSIX nor BSD APIs can > be detected. OK. Andrew.