[Midnightbsd-cvs] src [9693] clang 3.4

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Dec 16 13:50:30 EST 2017


Revision: 9693
          http://svnweb.midnightbsd.org/src/?rev=9693
Author:   laffer1
Date:     2017-12-16 13:50:30 -0500 (Sat, 16 Dec 2017)
Log Message:
-----------
clang 3.4

Modified Paths:
--------------
    trunk/usr.bin/clang/clang/Makefile
    trunk/usr.bin/clang/clang/clang.1

Added Paths:
-----------
    trunk/usr.bin/clang/clang/CC.sh

Property Changed:
----------------
    trunk/usr.bin/clang/clang/clang.1

Added: trunk/usr.bin/clang/clang/CC.sh
===================================================================
--- trunk/usr.bin/clang/clang/CC.sh	                        (rev 0)
+++ trunk/usr.bin/clang/clang/CC.sh	2017-12-16 18:50:30 UTC (rev 9693)
@@ -0,0 +1,5 @@
+#!/bin/sh
+# $MidnightBSD$
+# $FreeBSD: stable/10/usr.bin/clang/clang/CC.sh 293782 2016-01-12 19:33:43Z dim $
+# This file is in the public domain.
+exec /usr/bin/c++ "$@"


Property changes on: trunk/usr.bin/clang/clang/CC.sh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/usr.bin/clang/clang/Makefile
===================================================================
--- trunk/usr.bin/clang/clang/Makefile	2017-12-16 18:48:55 UTC (rev 9692)
+++ trunk/usr.bin/clang/clang/Makefile	2017-12-16 18:50:30 UTC (rev 9693)
@@ -1,4 +1,5 @@
 # $MidnightBSD$
+# $FreeBSD: stable/10/usr.bin/clang/clang/Makefile 293782 2016-01-12 19:33:43Z dim $
 
 .include <bsd.own.mk>
 
@@ -18,9 +19,11 @@
 MLINKS=	clang.1 clang++.1 \
 	clang.1 clang-cpp.1
 .if ${MK_CLANG_IS_CC} != "no"
+SCRIPTS=CC.sh
+SCRIPTSNAME=CC
+
 LINKS+=	${BINDIR}/clang ${BINDIR}/cc \
 	${BINDIR}/clang ${BINDIR}/c++ \
-	${BINDIR}/clang ${BINDIR}/CC \
 	${BINDIR}/clang ${BINDIR}/cpp
 MLINKS+= clang.1 cc.1 \
 	clang.1 c++.1 \
@@ -63,6 +66,7 @@
 	clangast \
 	clangbasic \
 	clanglex \
+	llvmoption \
 	llvmlinker \
 	llvmirreader \
 	llvmipo \
@@ -84,9 +88,16 @@
 	llvmmipsinfo \
 	llvmmipsinstprinter \
 	llvmpowerpccodegen \
+	llvmpowerpcasmparser \
 	llvmpowerpcdesc \
 	llvmpowerpcinfo \
 	llvmpowerpcinstprinter \
+	llvmsparcdisassembler \
+	llvmsparccodegen \
+	llvmsparcasmparser \
+	llvmsparcdesc \
+	llvmsparcinfo \
+	llvmsparcinstprinter \
 	llvmx86disassembler \
 	llvmx86asmparser \
 	llvmx86codegen \

Modified: trunk/usr.bin/clang/clang/clang.1
===================================================================
--- trunk/usr.bin/clang/clang/clang.1	2017-12-16 18:48:55 UTC (rev 9692)
+++ trunk/usr.bin/clang/clang/clang.1	2017-12-16 18:50:30 UTC (rev 9693)
@@ -1,6 +1,6 @@
 .\" $MidnightBSD$
-.\" $FreeBSD: release/9.2.0/usr.bin/clang/clang/clang.1 252723 2013-07-04 20:17:04Z dim $
-.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.20)
+.\" $FreeBSD: stable/10/usr.bin/clang/clang/clang.1 263508 2014-03-21 17:53:59Z dim $
+.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
@@ -40,6 +40,8 @@
 .    ds PI \(*p
 .    ds L" ``
 .    ds R" ''
+.    ds C`
+.    ds C'
 'br\}
 .\"
 .\" Escape single quotes in literal strings from groff's Unicode transform.
@@ -50,17 +52,24 @@
 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
 .\" entries marked with X<> in POD.  Of course, you'll have to process the
 .\" output yourself in some meaningful fashion.
-.ie \nF \{\
-.    de IX
-.    tm Index:\\$1\t\\n%\t"\\$2"
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
 ..
-.    nr % 0
-.    rr F
-.\}
-.el \{\
-.    de IX
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+.    if \nF \{
+.        de IX
+.        tm Index:\\$1\t\\n%\t"\\$2"
 ..
+.        if !\nF==2 \{
+.            nr % 0
+.            nr F 2
+.        \}
+.    \}
 .\}
+.rr rF
 .\"
 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
@@ -126,7 +135,7 @@
 .\" ========================================================================
 .\"
 .IX Title "CLANG 1"
-.TH CLANG 1 "2013-06-10" "clang 3.3" "Clang Tools Documentation"
+.TH CLANG 1 "2014-01-01" "clang 3.4" "Clang Tools Documentation"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -136,7 +145,7 @@
 .SH "SYNOPSIS"
 .IX Header "SYNOPSIS"
 \&\fBclang\fR [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] \fB\-std=\fR\fIstandard\fR \fB\-g\fR
-  [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O3\fR|\fB\-Ofast\fR|\fB\-O4\fR]
+  [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-O3\fR|\fB\-Ofast\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O\fR|\fB\-O4\fR]
   \fB\-W\fR\fIwarnings...\fR \fB\-pedantic\fR
   \fB\-I\fR\fIdir...\fR \fB\-L\fR\fIdir...\fR
   \fB\-D\fR\fImacro[=defn]\fR
@@ -173,8 +182,8 @@
 parse errors.  The output of this stage is an \*(L"Abstract Syntax Tree\*(R" (\s-1AST\s0).
 .IP "\fBCode Generation and Optimization\fR" 4
 .IX Item "Code Generation and Optimization"
-This stage translates an \s-1AST\s0 into low-level intermediate code (known as \*(L"\s-1LLVM\s0
-\&\s-1IR\s0\*(R") and ultimately to machine code.  This phase is responsible for optimizing
+This stage translates an \s-1AST\s0 into low-level intermediate code (known as \*(L"\s-1LLVM
+IR\*(R"\s0) and ultimately to machine code.  This phase is responsible for optimizing
 the generated code and handling target-specific code generation.  The output of
 this stage is typically called a \*(L".s\*(R" file or \*(L"assembly\*(R" file.
 .Sp
@@ -199,7 +208,8 @@
 .PP
 The Clang Static Analyzer is a tool that scans source code to try to find bugs
 through code analysis.  This tool uses many parts of Clang and is built into the
-same driver.
+same driver.  Please see <http://clang\-analyzer.llvm.org> for more details
+on how to use the static analyzer.
 .SH "OPTIONS"
 .IX Header "OPTIONS"
 .SS "Stage Selection Options"
@@ -221,9 +231,6 @@
 .IX Item "no stage selection option"
 If no stage selection option is specified, all stages above are run, and the
 linker is run to combine the results into an executable or shared library.
-.IP "\fB\-\-analyze\fR" 4
-.IX Item "--analyze"
-Run the Clang Static Analyzer.
 .SS "Language Selection and Mode Options"
 .IX Subsection "Language Selection and Mode Options"
 .IP "\fB\-x\fR \fIlanguage\fR" 4
@@ -292,7 +299,7 @@
 .IP "\fB\-fobjc\-abi\-version\fR=\fIversion\fR" 4
 .IX Item "-fobjc-abi-version=version"
 Select the Objective-C \s-1ABI\s0 version to use. Available versions are 1 (legacy
-\&\*(L"fragile\*(R" \s-1ABI\s0), 2 (non-fragile \s-1ABI\s0 1), and 3 (non-fragile \s-1ABI\s0 2).
+\&\*(L"fragile\*(R" \s-1ABI\s0), 2 (non-fragile \s-1ABI 1\s0), and 3 (non-fragile \s-1ABI 2\s0).
 .IP "\fB\-fobjc\-nonfragile\-abi\-version\fR=\fIversion\fR" 4
 .IX Item "-fobjc-nonfragile-abi-version=version"
 Select the Objective-C non-fragile \s-1ABI\s0 version to use by default. This will only
@@ -300,8 +307,8 @@
 \&\-fobjc\-nonfragile\-abi, or because it is the platform default).
 .IP "\fB\-fobjc\-nonfragile\-abi\fR" 4
 .IX Item "-fobjc-nonfragile-abi"
-Enable use of the Objective-C non-fragile \s-1ABI\s0. On platforms for which this is
-the default \s-1ABI\s0, it can be disabled with \fB\-fno\-objc\-nonfragile\-abi\fR.
+Enable use of the Objective-C non-fragile \s-1ABI.\s0 On platforms for which this is
+the default \s-1ABI,\s0 it can be disabled with \fB\-fno\-objc\-nonfragile\-abi\fR.
 .SS "Target Selection Options"
 .IX Subsection "Target Selection Options"
 Clang fully supports cross compilation as an inherent part of its design.
@@ -312,11 +319,11 @@
 Specify the architecture to build for.
 .IP "\fB\-mmacosx\-version\-min\fR=\fIversion\fR" 4
 .IX Item "-mmacosx-version-min=version"
-When building for Mac \s-1OS/X\s0, specify the minimum version supported by your
+When building for Mac \s-1OS/X,\s0 specify the minimum version supported by your
 application.
 .IP "\fB\-miphoneos\-version\-min\fR" 4
 .IX Item "-miphoneos-version-min"
-When building for iPhone \s-1OS\s0, specify the minimum version supported by your
+When building for iPhone \s-1OS,\s0 specify the minimum version supported by your
 application.
 .IP "\fB\-march\fR=\fIcpu\fR" 4
 .IX Item "-march=cpu"
@@ -326,20 +333,43 @@
 may not exist on earlier ones.
 .SS "Code Generation Options"
 .IX Subsection "Code Generation Options"
-.IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O3\fR \fB\-Ofast\fR \fB\-O4\fR" 4
-.IX Item "-O0 -O1 -O2 -Os -Oz -O3 -Ofast -O4"
-Specify which optimization level to use.  \fB\-O0\fR means \*(L"no optimization\*(R": this
-level compiles the fastest and generates the most debuggable code.  \fB\-O2\fR is a
-moderate level of optimization which enables most optimizations.  \fB\-Os\fR is like
-\&\fB\-O2\fR with extra optimizations to reduce code size.  \fB\-Oz\fR is like \fB\-Os\fR 
-(and thus \fB\-O2\fR), but reduces code size further.  \fB\-O3\fR is like \fB\-O2\fR,
-except that it enables optimizations that take longer to perform or that may
-generate larger code (in an attempt to make the program run faster).
-\&\fB\-Ofast\fR enables all the optimizations from \fB\-O3\fR along with other aggressive
-optimizations that may violate strict compliance with language standards. On
-supported platforms, \fB\-O4\fR enables link-time optimization; object files are
-stored in the \s-1LLVM\s0 bitcode file format and whole program optimization is done at
-link time. \fB\-O1\fR is somewhere between \fB\-O0\fR and \fB\-O2\fR.
+.IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-O3\fR \fB\-Ofast\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O\fR \fB\-O4\fR" 4
+.IX Item "-O0 -O1 -O2 -O3 -Ofast -Os -Oz -O -O4"
+Specify which optimization level to use:
+.RS 4
+.IP "\fB\-O0\fR" 4
+.IX Item "-O0"
+Means \*(L"no optimization\*(R": this level compiles the fastest and
+generates the most debuggable code.
+.IP "\fB\-O1\fR" 4
+.IX Item "-O1"
+Somewhere between \fB\-O0\fR and \fB\-O2\fR.
+.IP "\fB\-O2\fR" 4
+.IX Item "-O2"
+Moderate level of optimization which enables most optimizations.
+.IP "\fB\-O3\fR" 4
+.IX Item "-O3"
+Like \fB\-O2\fR, except that it enables optimizations that take longer to perform
+or that may generate larger code (in an attempt to make the program run faster).
+.IP "\fB\-Ofast\fR" 4
+.IX Item "-Ofast"
+Enables all the optimizations from \fB\-O3\fR along with other aggressive
+optimizations that may violate strict compliance with language standards.
+.IP "\fB\-Os\fR" 4
+.IX Item "-Os"
+Like \fB\-O2\fR with extra optimizations to reduce code size.
+.IP "\fB\-Oz\fR" 4
+.IX Item "-Oz"
+Like \fB\-Os\fR (and thus \fB\-O2\fR), but reduces code size further.
+.IP "\fB\-O\fR" 4
+.IX Item "-O"
+Equivalent to \fB\-O2\fR.
+.IP "\fB\-O4\fR and higher" 4
+.IX Item "-O4 and higher"
+Currently equivalent to \fB\-O3\fR
+.RE
+.RS 4
+.RE
 .IP "\fB\-g\fR" 4
 .IX Item "-g"
 Generate debug information.  Note that Clang debug information works best at
@@ -491,7 +521,7 @@
 Empty components in the environment variable are ignored.
 .IP "\fBC_INCLUDE_PATH\fR, \fB\s-1OBJC_INCLUDE_PATH\s0\fR, \fB\s-1CPLUS_INCLUDE_PATH\s0\fR, \fB\s-1OBJCPLUS_INCLUDE_PATH\s0\fR" 4
 .IX Item "C_INCLUDE_PATH, OBJC_INCLUDE_PATH, CPLUS_INCLUDE_PATH, OBJCPLUS_INCLUDE_PATH"
-These environment variables specify additional paths, as for \s-1CPATH\s0,
+These environment variables specify additional paths, as for \s-1CPATH,\s0
 which are only used when processing the appropriate language.
 .IP "\fB\s-1MACOSX_DEPLOYMENT_TARGET\s0\fR" 4
 .IX Item "MACOSX_DEPLOYMENT_TARGET"


Property changes on: trunk/usr.bin/clang/clang/clang.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list