]> 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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:30 +0000 (13:17 -0300)
commita094c18581306cdbfbaa450acd7b43689cb72423
treed2b17338ee3afb45bf3cb3fed6c04a4059dadbd3
parent174fb461292154fb57e18276e0608a1bf2ae9617
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.
gcc/doc/extend.texi