From patchwork Mon Jun 23 16:12:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 32376 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DCADF203AC for ; Mon, 23 Jun 2014 16:13:19 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id i13sf25592286veh.7 for ; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=OeiU1agUfjddXxvcu0tlE+/xOhXPuUFMQWtdGg2gzbw=; b=WtewPbqwE5HS5wuokhPWZm2ssKAHAlgqkrqIktJ+sjMSx/NUKmcmx+dCsUv7E/1OOP DWJM1b9wt8xCt+L4KcojnaA17tUCZAKU9DomZ9gd3bib4KGdVYd6gFuT0Cs7J0yjjho0 h7cHJtFzusAdGe3CbgACMatGSoKqhaeBIrwS+2nBDWI+xgThPdvVRY56SZghTx2DGHff OSLtjMdETIwLs13cE/V50Irp5UTBGa0rrHg4c09HAgFp3MvNjQfIH1P0UEIL6QERbGeI kuspOmohzH5CgL21WIDYlDXsL0V1azNkHADNBQxV2b+eWn8EMOE/P/k7+URD5j1U0zU/ wrsg== X-Gm-Message-State: ALoCoQlKo9/eMfVxkdl/+II1OTsGqToJCKgrG8W38NKS3VcYSAoRJx3rd8E6/UlGvIEARYutxuoU X-Received: by 10.236.150.114 with SMTP id y78mr9683938yhj.7.1403539999653; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.6 with SMTP id h6ls1970700qge.45.gmail; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) X-Received: by 10.221.68.135 with SMTP id xy7mr1418347vcb.65.1403539999542; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [2607:f8b0:400c:c03::22c]) by mx.google.com with ESMTPS id p7si5051214vda.40.2014.06.23.09.13.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 09:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22c as permitted sender) client-ip=2607:f8b0:400c:c03::22c; Received: by mail-vc0-f172.google.com with SMTP id hy10so6161177vcb.31 for ; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) X-Received: by 10.58.24.38 with SMTP id r6mr2430135vef.41.1403539999319; Mon, 23 Jun 2014 09:13:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp142601vcb; Mon, 23 Jun 2014 09:13:18 -0700 (PDT) X-Received: by 10.66.119.136 with SMTP id ku8mr30251084pab.121.1403539998566; Mon, 23 Jun 2014 09:13:18 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g7si22623070pat.225.2014.06.23.09.13.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jun 2014 09:13:18 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-51069-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 17029 invoked by alias); 23 Jun 2014 16:13:09 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 17020 invoked by uid 89); 23 Jun 2014 16:13:08 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f179.google.com X-Received: by 10.180.83.105 with SMTP id p9mr27122601wiy.8.1403539954982; Mon, 23 Jun 2014 09:12:34 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH 1/2] misc/sys/cdefs.h: Add _Noreturn macro for pre-C11 compilers Date: Mon, 23 Jun 2014 17:12:25 +0100 Message-Id: <1403539946-436-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22c as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 From: Paul Eggert 2014-03-28 Paul Eggert * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers. --- misc/sys/cdefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 4d958ea..a5c3224 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -382,6 +382,14 @@ # define __glibc_likely(cond) (cond) #endif +#if !defined _Noreturn && __STDC_VERSION__ < 201112 && !__GNUC_PREREQ (4,7) +# if __GNUC_PREREQ (2,8) +# define _Noreturn __attribute__ ((__noreturn__)) +# else +# define _Noreturn +# endif +#endif + #include #if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH