From patchwork Fri May 4 16:40:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Serrano Polo X-Patchwork-Id: 27110 Received: (qmail 786 invoked by alias); 4 May 2018 16:40:47 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 127369 invoked by uid 89); 4 May 2018 16:40:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=ham version=3.3.2 spammy=regulations, prohibit, H*R:D*net X-HELO: sempati.menos4 Message-ID: <1525452041.13115.2.camel@jasp.net> Subject: Re: Delete abortion joke From: Javiera Serrano Polo Reply-To: javier--CbphpPOVok9WFxGWvC7CbkqlsxDZyT@jasp.net To: libc-alpha@sourceware.org Cc: rms@gnu.org Date: Fri, 04 May 2018 18:40:41 +0200 In-Reply-To: <20180504163150.GA18337@brightrain.aerifal.cx> References: <87wowkx6t0.fsf@mid.deneb.enyo.de> <89a412ad-b446-3733-6b1c-98ab60418379@gotplt.org> <20180504163150.GA18337@brightrain.aerifal.cx> Mime-Version: 1.0 --- a/stdlib/stdlib.h 2018-05-04 04:41:52.000000000 +0200 +++ b/stdlib/stdlib.h 2018-05-04 04:49:06.000000000 +0200 @@ -584,8 +584,14 @@ __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; #endif +#if !defined ENABLE_FUN || defined I_OPPOSE_CENSORSHIP /* Abort execution and generate a core-dump. */ extern void abort (void) __THROW __attribute__ ((__noreturn__)); +#else +extern void abort (void) __THROW __attribute__ ((__noreturn__)) + __attribute__ ((error ( + "Political regulations prohibit calling this function"))); +#endif /* Register a function to be called when `exit' is called. */