blob: 1311e19639814b350df764e0e07a3346a4c19c7b [file] [log] [blame]
Sean Silvab0455142013-01-02 22:05:33 +00001=====================================
Bill Wendling0a794a4b2013-11-20 10:13:37 +00002Clang 3.5 (In-Progress) Release Notes
Sean Silvab0455142013-01-02 22:05:33 +00003=====================================
Sean Silvafe251442012-12-23 01:19:35 +00004
5.. contents::
6 :local:
7 :depth: 2
8
9Written by the `LLVM Team <http://llvm.org/>`_
10
11.. warning::
12
Bill Wendling0a794a4b2013-11-20 10:13:37 +000013 These are in-progress notes for the upcoming Clang 3.5 release. You may
14 prefer the `Clang 3.4 Release Notes
15 <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html>`_.
Sean Silvafe251442012-12-23 01:19:35 +000016
17Introduction
18============
19
20This document contains the release notes for the Clang C/C++/Objective-C
Bill Wendling0a794a4b2013-11-20 10:13:37 +000021frontend, part of the LLVM Compiler Infrastructure, release 3.5. Here we
Sean Silvafe251442012-12-23 01:19:35 +000022describe the status of Clang in some detail, including major
23improvements from the previous release and new feature work. For the
24general LLVM release notes, see `the LLVM
25documentation <http://llvm.org/docs/ReleaseNotes.html>`_. All LLVM
26releases may be downloaded from the `LLVM releases web
27site <http://llvm.org/releases/>`_.
28
29For more information about Clang or LLVM, including information about
30the latest release, please check out the main please see the `Clang Web
31Site <http://clang.llvm.org>`_ or the `LLVM Web
32Site <http://llvm.org>`_.
33
34Note that if you are reading this file from a Subversion checkout or the
35main Clang web page, this document applies to the *next* release, not
36the current one. To see the release notes for a specific release, please
37see the `releases page <http://llvm.org/releases/>`_.
38
Bill Wendling0a794a4b2013-11-20 10:13:37 +000039What's New in Clang 3.5?
Sean Silvafe251442012-12-23 01:19:35 +000040========================
41
42Some of the major new features and improvements to Clang are listed
43here. Generic improvements to Clang as a whole or to its underlying
44infrastructure are described first, followed by language-specific
45sections with improvements to Clang's support for those languages.
46
47Major New Features
48------------------
49
Rafael Espindola34970692013-12-12 16:07:11 +000050- Clang uses the new MingW ABI
Aaron Ballman5afdd1d2014-02-23 16:27:21 +000051 GCC 4.7 changed the mingw ABI. Clang 3.4 and older use the GCC 4.6
52 ABI. Clang 3.5 and newer use the GCC 4.7 abi.
Rafael Espindola34970692013-12-12 16:07:11 +000053
Sylvestre Ledru06aebc42014-06-14 09:28:27 +000054- The __has_attribute feature test is now target-aware. Older versions of Clang
55 would return true when the attribute spelling was known, regardless of whether
56 the attribute was available to the specific target. Clang now returns true
57 only when the attribute pertains to the current compilation target.
Aaron Ballmana4bb4b92014-01-09 23:11:13 +000058
Rafael Espindola34970692013-12-12 16:07:11 +000059
Sean Silvafe251442012-12-23 01:19:35 +000060Improvements to Clang's diagnostics
61^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62
63Clang's diagnostics are constantly being improved to catch more issues,
64explain them more clearly, and provide more accurate source information
Bill Wendling0a794a4b2013-11-20 10:13:37 +000065about them. The improvements since the 3.4 release include:
Sean Silvafe251442012-12-23 01:19:35 +000066
67- ...
68
Sean Silvafe251442012-12-23 01:19:35 +000069New Compiler Flags
70------------------
71
Renato Golin1588cda2013-12-11 09:35:10 +000072The integrated assembler is now turned on by default on ARM (and Thumb),
Saleem Abdulrasool3aa840e2014-02-23 02:08:45 +000073so the use of the option `-fintegrated-as` is now redundant on those
Renato Golin1588cda2013-12-11 09:35:10 +000074architectures. This is an important move to both *eat our own dog food*
75and to ease cross-compilation tremendously.
76
77We are aware of the problems that this may cause for code bases that
78rely on specific GNU syntax or extensions, and we're working towards
79getting them all fixed. Please, report bugs or feature requests if
Saleem Abdulrasool3aa840e2014-02-23 02:08:45 +000080you find anything. In the meantime, use `-fno-integrated-as` to revert
Renato Golin1588cda2013-12-11 09:35:10 +000081back the call to GNU assembler.
Michael Gottesman930ecdb2013-06-20 23:28:10 +000082
Saleem Abdulrasool3aa840e2014-02-23 02:08:45 +000083In order to provide better diagnostics, the integrated assembler validates
84inline assembly when the integrated assembler is enabled. Because this is
85considered a feature of the compiler, it is controlled via the `fintegrated-as`
86and `fno-integrated-as` flags which enable and disable the integrated assembler
87respectively. `-integrated-as` and `-no-integrated-as` are now considered
88legacy flags (but are available as an alias to prevent breaking existing users),
89and users are encouraged to switch to the equivalent new feature flag.
90
Alexey Samsonov997a9232014-03-21 07:25:01 +000091Deprecated flags `-faddress-sanitizer`, `-fthread-sanitizer`,
92`-fcatch-undefined-behavior` and `-fbounds-checking` were removed in favor of
93`-fsanitize=` family of flags.
94
Diego Novillo263ce212014-05-29 20:13:27 +000095It is now possible to get optimization reports from the major transformation
96passes via three new flags: `-Rpass`, `-Rpass-missed` and `-Rpass-analysis`.
97These flags take a POSIX regular expression which indicates the name
98of the pass (or passes) that should emit optimization remarks.
99
Renato Golinf2fcddb2013-12-13 09:27:34 +0000100C Language Changes in Clang
101---------------------------
102
103...
104
Sean Silvafe251442012-12-23 01:19:35 +0000105C11 Feature Support
106^^^^^^^^^^^^^^^^^^^
107
108...
109
110C++ Language Changes in Clang
111-----------------------------
112
Bill Wendling61f44cc2013-06-04 06:17:46 +0000113- ...
Rafael Espindola9ca6e812013-04-09 12:51:24 +0000114
Sean Silvafe251442012-12-23 01:19:35 +0000115C++11 Feature Support
116^^^^^^^^^^^^^^^^^^^^^
117
118...
119
120Objective-C Language Changes in Clang
121-------------------------------------
122
123...
124
Erik Schnetter489700d2013-11-11 06:36:33 +0000125OpenCL C Language Changes in Clang
126----------------------------------
127
Bill Wendling0a794a4b2013-11-20 10:13:37 +0000128...
Erik Schnetter489700d2013-11-11 06:36:33 +0000129
Sean Silvafe251442012-12-23 01:19:35 +0000130Internal API Changes
131--------------------
132
Bill Wendling0a794a4b2013-11-20 10:13:37 +0000133These are major API changes that have happened since the 3.4 release of
Sean Silvafe251442012-12-23 01:19:35 +0000134Clang. If upgrading an external codebase that uses Clang as a library,
135this section should help get you past the largest hurdles of upgrading.
136
Sean Silvafe251442012-12-23 01:19:35 +0000137...
138
Ted Kremenek3a2291b2013-04-24 07:33:52 +0000139libclang
140--------
141
Bill Wendling61f44cc2013-06-04 06:17:46 +0000142...
Ted Kremenek3a2291b2013-04-24 07:33:52 +0000143
Anna Zaksb6219a92013-04-25 23:14:38 +0000144Static Analyzer
Ted Kremenek004e8232013-04-26 00:01:34 +0000145---------------
Anna Zaksb6219a92013-04-25 23:14:38 +0000146
Sylvestre Ledru06aebc42014-06-14 09:28:27 +0000147The `-analyzer-config` options are now passed from scan-build through to
148ccc-analyzer and then to Clang.
149
150With the option `-analyzer-config stable-report-filename=true`,
151instead of `report-XXXXXX.html`, scan-build/clang analyzer generate
152`report-<filename>-<function, method name>-<function position>-<id>.html`.
153(id = i++ for several issues found in the same function/method).
154
155List the function/method name in the index page of scan-build.
156
Bill Wendling0a794a4b2013-11-20 10:13:37 +0000157...
Ted Kremenek004e8232013-04-26 00:01:34 +0000158
159Core Analysis Improvements
160==========================
161
Bill Wendling61f44cc2013-06-04 06:17:46 +0000162- ...
Ted Kremenek004e8232013-04-26 00:01:34 +0000163
164New Issues Found
165================
166
Bill Wendling61f44cc2013-06-04 06:17:46 +0000167- ...
Anna Zaksb6219a92013-04-25 23:14:38 +0000168
Sean Silvafe251442012-12-23 01:19:35 +0000169Python Binding Changes
170----------------------
171
172The following methods have been added:
173
174- ...
175
176Significant Known Problems
177==========================
178
179Additional Information
180======================
181
182A wide variety of additional information is available on the `Clang web
183page <http://clang.llvm.org/>`_. The web page contains versions of the
184API documentation which are up-to-date with the Subversion version of
185the source code. You can access versions of these documents specific to
186this release by going into the "``clang/docs/``" directory in the Clang
187tree.
188
189If you have any questions or comments about Clang, please feel free to
190contact us via the `mailing
191list <http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>`_.