Re: Question about function Split with va_args

2023-11-02 Thread Richard Biener via Gcc
On Wed, Nov 1, 2023 at 11:12 AM Hanke Zhang via Gcc wrote: > > Hi > > I've been working on function splits recently, and I've noticed that > functions with va_args arguments won't be split, so why is that? I > tried to understand the comments in the source code, but I still don't > get the specifi

Re: Question on GIMPLE shifts

2023-11-02 Thread Richard Biener via Gcc
On Wed, Nov 1, 2023 at 5:01 PM Andrew Pinski via Gcc wrote: > > On Wed, Nov 1, 2023 at 3:56 AM Daniil Frolov wrote: > > > > Hi! > > > > When investigating bit shifts I got an incomprehensible moment with > > the following example: > > > > int f(int x, int k) > > { > > int tmp = x >> k; > >

Re: Suspecting a wrong behavior in the value range propagation analysis for __builtin_clz

2023-11-02 Thread Richard Biener via Gcc
On Wed, Nov 1, 2023 at 12:30 PM Giuseppe Tagliavini via Gcc wrote: > > I found an unexpected issue working with an experimental target (available > here: https://github.com/EEESlab/tricore-gcc), but I was able to reproduce it > on mainstream architectures. For the sake of clarity and reproducibi

Re: Suboptimal warning formatting with `bool` type in C

2023-11-02 Thread David Brown via Gcc
On 02/11/2023 00:28, peter0x44 via Gcc wrote: On 2023-11-01 23:13, Joseph Myers wrote: On Wed, 1 Nov 2023, peter0x44 via Gcc wrote: Why is #define used instead of typedef? I can't imagine how this could possibly break any existing code. That's how stdbool.h is specified up to C17.  In C23,

Re: Suspecting a wrong behavior in the value range propagation analysis for __builtin_clz

2023-11-02 Thread Jakub Jelinek via Gcc
On Thu, Nov 02, 2023 at 04:44:30PM +, Joseph Myers wrote: > On Thu, 2 Nov 2023, Richard Biener via Gcc wrote: > > > Note the semantic of __builtin_clz is _not_ altered by > > CLZ_DEFINED_VALUE_AT_ZERO, the behavior > > of __builtin_clz (x) is that is has undefined result for x == 0. > > Note

Re: Suspecting a wrong behavior in the value range propagation analysis for __builtin_clz

2023-11-02 Thread Joseph Myers
On Thu, 2 Nov 2023, Richard Biener via Gcc wrote: > Note the semantic of __builtin_clz is _not_ altered by > CLZ_DEFINED_VALUE_AT_ZERO, the behavior > of __builtin_clz (x) is that is has undefined result for x == 0. Note also the discussion in bug 111309 of possible future type-generic versions

gcc-11-20231102 is now available

2023-11-02 Thread GCC Administrator via Gcc
Snapshot gcc-11-20231102 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20231102/ 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