On 7/25/21 7:33 PM, Dominique Pellé via Gcc wrote:
Hi
Hello.
I read https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
but was left wondering: is there a way to annotate a function
to indicate that a return value is likely (or unlikely)?
Interesting idea :) No,
On 7/25/21 7:33 PM, Dominique Pellé via Gcc wrote:
Hi
I read https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
but was left wondering: is there a way to annotate a function
to indicate that a return value is likely (or unlikely)?
For example, let's say we have this function: