diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-12-09 14:17:39 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2024-12-09 14:18:41 +0100 |
commit | 2e958291ff68d9bff1092895a14b6763de56823b (patch) | |
tree | bb953abe75ac762c40be30745b5d90825da8f652 /gcc | |
parent | 2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b (diff) | |
download | gcc-2e958291ff68d9bff1092895a14b6763de56823b.zip gcc-2e958291ff68d9bff1092895a14b6763de56823b.tar.gz gcc-2e958291ff68d9bff1092895a14b6763de56823b.tar.bz2 |
docs: Clarify -fsanitize=hwaddress target support [PR117960]
Since GCC 13 -fsanitize=hwaddress is not supported just on AArch64, but also
on x86_64 (but only with -mlam=u48 or -mlam=u57).
2024-12-09 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/117960
* doc/invoke.texi (fsanitize=hwaddress): Clarify on which targets
it is supported.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/invoke.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index daab289..14afd19 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17768,8 +17768,10 @@ the available options are shown at startup of the instrumented program. See @url{https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags} for a list of supported options. The option cannot be combined with @option{-fsanitize=thread} or -@option{-fsanitize=hwaddress}. Note that the only target -@option{-fsanitize=hwaddress} is currently supported on is AArch64. +@option{-fsanitize=hwaddress}. Note that the only targets +@option{-fsanitize=hwaddress} is currently supported on are x86-64 +(only with @code{-mlam=u48} or @code{-mlam=u57} options) and AArch64, +in both cases only in ABIs with 64-bit pointers. To get more accurate stack traces, it is possible to use options such as @option{-O0}, @option{-O1}, or @option{-Og} (which, for instance, prevent |