.\" Man page generated from reStructuredText.
.
-.TH "CLANG, CLANG++, CLANG-CPP" "1" "Jun 15, 2020" "10" "Clang"
+.TH "CLANG, CLANG++, CLANG-CPP" "1" "May 01, 2021" "11" "Clang"
.SH NAME
clang, clang++, clang-cpp \- the Clang C, C++, and Objective-C compiler
.
.UNINDENT
.UNINDENT
.sp
-The default C language standard is \fBgnu11\fP, except on PS4, where it is
+The default C language standard is \fBgnu17\fP, except on PS4, where it is
\fBgnu99\fP\&.
.sp
Supported values for the C++ language are:
.TP
.B \-ffreestanding
Indicate that the file should be compiled for a freestanding, not a hosted,
-environment.
+environment. Note that it is assumed that a freestanding environment will
+additionally provide \fImemcpy\fP, \fImemmove\fP, \fImemset\fP and \fImemcmp\fP
+implementations, as these are needed for efficient codegen for many programs.
.UNINDENT
.INDENT 0.0
.TP
\fI\%\-Og\fP Like \fI\%\-O1\fP\&. In future versions, this option might
disable different optimizations in order to improve debuggability.
.sp
-\fI\%\-O\fP Equivalent to \fI\%\-O2\fP\&.
+\fI\%\-O\fP Equivalent to \fI\%\-O1\fP\&.
.sp
\fI\%\-O4\fP and higher
.INDENT 0.0
the linker merges all such modules into a single combined module for
optimization. With "thin", ThinLTO
compilation is invoked instead.
+.sp
+\fBNOTE:\fP
+.INDENT 7.0
+.INDENT 3.5
+On Darwin, when using \fI\%\-flto\fP along with \fB\-g\fP and
+compiling and linking in separate steps, you also need to pass
+\fB\-Wl,\-object_path_lto,<lto\-filename>.o\fP at the linking step to instruct the
+ld64 linker not to delete the temporary object file generated during Link
+Time Optimization (this flag is automatically passed to the linker by Clang
+if compilation and linking are done in a single step). This allows debugging
+the executable as well as generating the \fB\&.dSYM\fP bundle using \fBdsymutil(1)\fP\&.
+.UNINDENT
+.UNINDENT
.UNINDENT
.SS Driver Options
.INDENT 0.0
.SH AUTHOR
Maintained by the Clang / LLVM Team (<http://clang.llvm.org>)
.SH COPYRIGHT
-2007-2020, The Clang Team
+2007-2021, The Clang Team
.\" Generated by docutils manpage writer.
.
.\" Man page generated from reStructuredText.
.
-.TH "LLDB" "1" "Jun 15, 2020" "8" "LLDB"
+.TH "LLDB" "1" "May 01, 2021" "11" "LLDB"
.SH NAME
lldb \- LLDB Documentation
.
.sp
The debugger can be started in several modes.
.sp
-Passing an executable as a positional argument prepares \fBlldb\fP to
-debug the given executable. Arguments passed after \-\- are considered arguments
-to the debugged executable.
+Passing an executable as a positional argument prepares lldb to debug the given
+executable. To disambiguate between arguments passed to lldb and arguments
+passed to the debugged executable, arguments starting with a \- must be passed
+after \-\-.
.INDENT 0.0
.INDENT 3.5
-lldb \-\-arch x86_64 /path/to/program \-\- \-\-arch arvm7
+lldb \-\-arch x86_64 /path/to/program program argument \-\- \-\-arch armv7
+.UNINDENT
+.UNINDENT
+.sp
+For convenience, passing the executable after \-\- is also supported.
+.INDENT 0.0
+.INDENT 3.5
+lldb \-\-arch x86_64 \-\- /path/to/program program argument \-\-arch armv7
.UNINDENT
.UNINDENT
.sp
.SH CONFIGURATION FILES
.sp
\fBlldb\fP reads things like settings, aliases and commands from the
-.lldbinit file. It will first look for ~/.lldbinit and load that first.
+\&.lldbinit file.
+.sp
+First, it will read the application specific init file whose name is
+~/.lldbinit followed by a "\-" and the name of the current program. This would
+be ~/.lldbinit\-lldb for the command line \fBlldb\fP and ~/.lldbinit\-Xcode
+for Xcode. If there is no application specific init file, the global
+~/.lldbinit is read.
+.sp
Secondly, it will look for an .lldbinit file in the current working directory.
For security reasons, \fBlldb\fP will print a warning and not source this
file by default. This behavior can be changed by changing the
.SH AUTHOR
LLVM project
.SH COPYRIGHT
-2007-2020, The LLDB Team
+2007-2021, The LLDB Team
.\" Generated by docutils manpage writer.
.