Re: Function attribute to indicate a likely (or unlikely) return value

2021-07-25 Thread Gabriel Ravier via Gcc
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:

gcc-12-20210725 is now available

2021-07-25 Thread GCC Administrator via Gcc
Snapshot gcc-12-20210725 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20210725/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Function attribute to indicate a likely (or unlikely) return value

2021-07-25 Thread Dominique Pellé via Gcc
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: // Return OK (=0) in case of success (frequent case)

Re: An asm constraint issue (ARM FPU)

2021-07-25 Thread Marc Glisse
On Sun, 25 Jul 2021, Zoltán Kócsi wrote: I try to write a one-liner inline function to create a double form a 64-bit integer, not converting it to a double but the integer containing the bit pattern for the double (type spoofing). The compiler is arm-eabi-gcc 8.2.0. The target is a Cortex-A9, w

TBAA bug?

2021-07-25 Thread Uecker, Martin
Hi Richard, here is another case where it seems that TBAA goes wrong. Since this is not in a loop, it seems this is something else than what we discussed. Is this a known issue? Best, Martin #include #include union u { long x; long long y; }; __attribute__((noinline,noclone)) long tes