Skip to content

Commit 16667e0

Browse files
committed
ReleaseNotes: drop mention of -ftrivial-auto-var-init=zero
llvm-svn: 354794
1 parent b821974 commit 16667e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Major New Features
4141
example, due to renaming a class or namespace).
4242
See the :ref:`UsersManual <profile_remapping>` for details.
4343

44-
- Clang has new options to initialize automatic variables with either a pattern or with zeroes. The default is still that automatic variables are uninitialized. This isn't meant to change the semantics of C and C++. Rather, it's meant to be a last resort when programmers inadvertently have some undefined behavior in their code. These options aim to make undefined behavior hurt less, which security-minded people will be very happy about. Notably, this means that there's no inadvertent information leak when:
44+
- Clang has new options to initialize automatic variables with a pattern. The default is still that automatic variables are uninitialized. This isn't meant to change the semantics of C and C++. Rather, it's meant to be a last resort when programmers inadvertently have some undefined behavior in their code. These options aim to make undefined behavior hurt less, which security-minded people will be very happy about. Notably, this means that there's no inadvertent information leak when:
4545

4646
* The compiler re-uses stack slots, and a value is used uninitialized.
4747

@@ -65,8 +65,6 @@ Major New Features
6565

6666
* ``-ftrivial-auto-var-init=pattern``
6767

68-
* ``-ftrivial-auto-var-init=zero`` ``-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang``
69-
7068
There is also a new attribute to request a variable to not be initialized, mainly to disable initialization of large stack arrays when deemed too expensive:
7169

7270
* ``int dont_initialize_me __attribute((uninitialized));``

0 commit comments

Comments
 (0)