diff options
author | Fangrui Song <maskray@google.com> | 2019-12-12 10:49:46 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-12-13 14:06:51 -0800 |
commit | e4fce659a759ecdd59ceee750f1ff9b44f9de3f3 (patch) | |
tree | 15ad038aa1ad8ce430a82d65edba1c65d424dc0a /clang/docs/ReleaseNotes.rst | |
parent | 8035bb4a6573f7d20f17044a68a1405691000525 (diff) | |
download | bcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.tar.gz bcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.zip |
[Driver] Use .init_array for all gcc installations and simplify Generic_ELF -fno-use-init-array rules
D39317 made clang use .init_array when no gcc installations is found.
This change changes all gcc installations to use .init_array .
GCC 4.7 by default stopped providing .ctors/.dtors compatible crt files,
and stopped emitting .ctors for __attribute__((constructor)).
.init_array should always work.
FreeBSD rules are moved to FreeBSD.cpp to make Generic_ELF rules clean.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71434
Diffstat (limited to 'clang/docs/ReleaseNotes.rst')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 37a8f30e0bc..eee63c8e923 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -89,6 +89,10 @@ Non-comprehensive list of changes in this release to run at a lower frequency which can impact performance. This behavior can be changed by passing -mprefer-vector-width=512 on the command line. +* clang now defaults to ``.init_array`` on Linux. It used to use ``.ctors`` if + the found gcc installation is older than 4.7.0. Add ``-fno-use-init-array`` to + get the old behavior (``.ctors``). + New Compiler Flags ------------------ |