diff options
Diffstat (limited to 'clang/docs/ReleaseNotes.rst')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 881dcb78b66..8c48724e7c6 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -102,6 +102,15 @@ Non-comprehensive list of changes in this release the found gcc installation is older than 4.7.0. Add ``-fno-use-init-array`` to get the old behavior (``.ctors``). +* Lax vector conversions involving floating-point vectors have been disabled + by default, and can no longer be enabled with ``-flax-vector-conversions``. + This matches the behavior of these flags in GCC, but code relying on implicit + vector bitcasts between integer and floating-point types that used to compile + with older versions of Clang is no longer accepted by default in Clang 10. + The old behavior can be restored with ``-flax-vector-conversions=all``. + In a future release of Clang, we intend to change the default to + ``-fno-lax-vector-conversions``. + New Compiler Flags ------------------ @@ -132,6 +141,21 @@ Modified Compiler Flags - RISC-V now sets the architecture (riscv32/riscv64) based on the value provided to the ``-march`` flag, overriding the target provided by ``-triple``. +- ``-flax-vector-conversions`` has been split into three different levels of + laxness: + + - ``-flax-vector-conversions=all``: This is Clang's historical default, and + permits implicit vector conversions (performed as bitcasts) between any + two vector types of the same overall bit-width. + + - ``-flax-vector-conversions=integer``: This is Clang's current default, + and permits implicit vector conversions (performed as bitcasts) between + any two integer vector types of the same overall bit-width. + Synonym: ``-flax-vector-conversions``. + + - ``-flax-vector-conversions=none``: Do not perform any implicit bitcasts + between vector types. Synonym: ``-fno-lax-vector-conversions``. + New Pragmas in Clang -------------------- |