From owner-freebsd-current@FreeBSD.ORG Wed May 13 16:05:32 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BF313B08 for ; Wed, 13 May 2015 16:05:32 +0000 (UTC) Received: from nm17-vm1.bullet.mail.bf1.yahoo.com (nm17-vm1.bullet.mail.bf1.yahoo.com [98.139.213.55]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7123C1155 for ; Wed, 13 May 2015 16:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1431533125; bh=fT152/dXoxQ8p8FtFCSNCF512BWbCDIA7YWCDH+DXfw=; h=Date:From:To:Subject:From:Subject; b=iUkvZMfyAbTLZ/G0YpOMAWvPTq6AH7fk4D+JBpDEMEXz4YEO2v+Y7+vCOCqidZOmcNe3uMxIzXc8nVszxgERMJuHn1sRAN+Xe4nd8myu8ry2Tw18KLA1CTBogAYwkTYzYfIC3HKB9h9QPHbLsllK5qB/q2HyU9GWRAN1cr7j1Wy/Vcrnlb7ihlBKYXrBHk/jYuAYhQ3S0E+hY/CtkP/ioK4pj9uG4KjpJefzIc/3QMJ3U4yEq9Nt5tXw4t1z9yTnw9v/Pbhuo9+i/PW+1IB+VZKbUKy3PW+/khwqImtOQtKCPqpcjGqx91FXaqbfzUanOd47cKg1kvUkr4/JGQKpQA== Received: from [98.139.170.182] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 13 May 2015 16:05:25 -0000 Received: from [98.139.211.160] by tm25.bullet.mail.bf1.yahoo.com with NNFMP; 13 May 2015 16:05:25 -0000 Received: from [127.0.0.1] by smtp217.mail.bf1.yahoo.com with NNFMP; 13 May 2015 16:05:25 -0000 X-Yahoo-Newman-Id: 509801.18377.bm@smtp217.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 0FdL2WwVM1mH2LGNWX9u6slsseSwnY3CqkTkwSOoq8gsXT3 x5Z3LhLf6YXmQGWymJhj3AykfZuJdTDaCZJM.tIAQ8veym06t66IOk.DEwAl Sf4los.dLuc.0jrphq16lqWGrF1UJ5vLSpo_s0vbG.1JMUZbxR7uZNJS5n9d xuMuxpz8lghPXveTX5rELTk2u7We7qSOARgE8AarAhq._HtkyAOcd9Ap4QN2 TFIoiTdJGXtfpAd0QCsP20vrLBXvUU5TNJODnVa3Tk4LolufSqLKjyQr9TT7 1qRp03ZrUrgKRRowzygbc9zB82CcMFdIu2yrb.KuMoBh8JsbfLYoylaYOQfr _FYnC3m5B2C4fqVwEtSrRpjrT6mrGVyqXpA0mL.S1CiHEVG2SNb.28vVoUp6 p.7DYLgF9dWEqRpxBt54qh66XE.gz9betw.pDfCjKo.Xp2w165NLcqfmIFhj 8Rn_CKTLzspqhhA6FTYySmNjOulgNMxJVUSlUBcFxnxBgu0_wUdolMBudOvi t8VEiCeoJRAEV.wqUfpteb7EU_yhje.co X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <5553764A.9010202@FreeBSD.org> Date: Wed, 13 May 2015 11:05:30 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: FreeBSD Current Subject: CFR: a new __unreachable() builtin Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2015 16:05:32 -0000 Hello; I am looking at the cdefs in other BSDs hoping to avoid adopting the same definitions with incompatible names and I noticed NetBSD is using a new __builtin_unreachable (void) function from gcc 4.6: https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html Apparently it was interesting enough that clang implemented it too so I created a code review differential for it. https://reviews.freebsd.org/D2536 I don't want to add new C definitions unless they are going to be used so feel free to comment on the convenience or not of having it. Pedro.