From owner-freebsd-current@freebsd.org Fri Apr 6 00:30:07 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EB1DF8F1CD for ; Fri, 6 Apr 2018 00:30:07 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (mail.nomadlogic.org [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD5BE797DD; Fri, 6 Apr 2018 00:30:06 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.2.7] (cpe-23-243-163-13.socal.res.rr.com [23.243.163.13]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id e1676f89 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Thu, 5 Apr 2018 17:30:04 -0700 (PDT) Subject: Re: clang manual page? To: sgk@troutmask.apl.washington.edu, Conrad Meyer Cc: freebsd-current References: <20180405223852.GA43120@troutmask.apl.washington.edu> <20180406001514.GA43793@troutmask.apl.washington.edu> From: Pete Wright Message-ID: <347cc907-96b3-140d-5a8f-084f91283be5@nomadlogic.org> Date: Thu, 5 Apr 2018 17:30:04 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180406001514.GA43793@troutmask.apl.washington.edu> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Fri, 06 Apr 2018 00:30:07 -0000 On 04/05/2018 17:15, Steve Kargl wrote: > This assumes that a gcc(1) is available on the system. > > % man gcc > No manual entry for gcc > > If the system compiler is clang/clang++, then it ought to be > documented better than it currently is. Ian's suggests for > 'clang --help' is even worse > > % clang --help | grep -- -std > -cl-std= OpenCL language standard to compile for. > -std= Language standard to compile for > -stdlib= C++ standard library to use > > Does == ? > a quick google search turns up the following additional information: "clang supports the -std option, which changes what language mode clang uses. The supported modes for C are c89, gnu89, c99, gnu99, c11, gnu11, c17, gnu17, and various aliases for those modes. If no -std option is specified, clang defaults to gnu11 mode. Many C99 and C11 features are supported in earlier modes as a conforming extension, with a warning. Use |-pedantic-errors| to request an error if a feature from a later standard revision is used in an earlier mode." https://clang.llvm.org/docs/UsersManual.html -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA