summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-02-25 16:06:37 +0000
committerHans Wennborg <hans@hanshq.net>2019-02-25 16:06:37 +0000
commitc19ff55635053603a0f1a9578e770822def617cc (patch)
treeea45e2a7999b9cb89037022b4ac80f045f9e4018
parent90903f44d639117b8c57d061291f4ea2b542bd83 (diff)
ReleaseNotes: drop mention of -ftrivial-auto-var-init=zero
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_80@354794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/ReleaseNotes.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 4c593977e2..54a7a4c1b9 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -41,7 +41,7 @@ Major New Features
example, due to renaming a class or namespace).
See the :ref:`UsersManual <profile_remapping>` for details.
-- 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:
+- 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:
* The compiler re-uses stack slots, and a value is used uninitialized.
@@ -65,8 +65,6 @@ Major New Features
* ``-ftrivial-auto-var-init=pattern``
- * ``-ftrivial-auto-var-init=zero`` ``-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang``
-
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:
* ``int dont_initialize_me __attribute((uninitialized));``