gcc-11-20210717 is now available

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

Re: Optimiser failure for ternary foo == 0L ? NULL : bar;

2021-07-17 Thread Richard Biener via Gcc
On July 17, 2021 8:54:38 PM GMT+02:00, Stefan Kanthak wrote: >Hi, > >GCC 10.2.0 (and GCC 8.3; other versions and targets except i386 and >amd64 not tested) generate rather bad code for the following ternary >expression: > >--- repro.c --- >#define NULL (char *) 0 > >char *dummy(char *string, long

Optimiser failure for ternary foo == 0L ? NULL : bar;

2021-07-17 Thread Stefan Kanthak
Hi, GCC 10.2.0 (and GCC 8.3; other versions and targets except i386 and amd64 not tested) generate rather bad code for the following ternary expression: --- repro.c --- #define NULL (char *) 0 char *dummy(char *string, long count) { return count == 0 ? NULL : string + 1; } --- EOF --- $ gcc

Re: Pushing XFAILed test cases

2021-07-17 Thread Thomas Koenig via Gcc
On 16.07.21 20:22, Sandra Loosemore wrote: So it seems to me rather surprising to take the position that we should not be committing any new test cases that need to be XFAILed It is what I was told in no uncertain terms some years ago, which is where my current state of knowledge comes from. S