]> git.ipfire.org Git - thirdparty/gcc.git/commit
doc: Clarify __builtin_return_address [PR94891]
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 28 May 2020 09:28:30 +0000 (10:28 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 16 Jul 2020 13:05:04 +0000 (14:05 +0100)
commita6a2935076b192109171310db5159183e5ab059b
tree6ff9bd0bbe29c45e88a5e26b8a80a39f0ca2d817
parentf5cab5862172176c49814214cc7df2fa6d6b5e56
doc: Clarify __builtin_return_address [PR94891]

The expected semantics and valid usage of __builtin_return_address is
not clear since it exposes implementation internals that are normally
not meaningful to portable c code.

This documentation change tries to clarify the semantics in case the
return address is stored in a mangled form. This affects AArch64 when
pointer authentication is used for the return address signing (i.e.
-mbranch-protection=pac-ret).

2020-07-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>

gcc/ChangeLog:

PR target/94891
* doc/extend.texi: Update the text for  __builtin_return_address.

(cherry picked from commit 6a391e06f953c3390b14020d8cacb6d55f81b2b9)
gcc/doc/extend.texi