NO_IMPLICIT_EXTERN_C / SYSTEM_IMPLICIT_EXTERN_C and -isystem

2021-08-13 Thread Lucas, Philipp via Gcc
Hi all, we have a non-standard directory with headers which shall be considered system headers for the purpose of warnings. I understand from bug 85211, that -isystem may implicitly add an extern "C" to such headers, and that this behaviour can be toggled via the configuration option NO_IMPLICIT_

Re: [RFC] Adding a new attribute to function param to mark it as constant

2021-08-13 Thread Martin Sebor via Gcc
On 8/12/21 2:32 AM, Prathamesh Kulkarni wrote: On Sat, 7 Aug 2021 at 02:09, Martin Sebor wrote: On 8/6/21 4:51 AM, Richard Earnshaw wrote: On 06/08/2021 01:06, Martin Sebor via Gcc wrote: On 8/4/21 3:46 AM, Richard Earnshaw wrote: On 03/08/2021 18:44, Martin Sebor wrote: On 8/3/21 4:11

Superfluous branches due to insufficient flow analysis

2021-08-13 Thread Stefan Kanthak
Hi, compile the following naive implementation of nextafter() for AMD64: JFTR: ignore the aliasing casts, they don't matter here! $ cat repro.c double nextafter(double from, double to) { if (to != to) return to;// to is NAN if (from != from) return from; //

Re: Superfluous branches due to insufficient flow analysis

2021-08-13 Thread Gabriel Ravier via Gcc
On 8/13/21 8:58 PM, Stefan Kanthak wrote: Hi, compile the following naive implementation of nextafter() for AMD64: JFTR: ignore the aliasing casts, they don't matter here! $ cat repro.c double nextafter(double from, double to) { if (to != to) return to;// to is NAN

gcc-10-20210813 is now available

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