Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-06 Thread Richard Biener via Gcc-patches
On Tue, May 5, 2020 at 5:47 PM Stefan Schulze Frielinghaus wrote: > > On Tue, May 05, 2020 at 02:58:51PM +0200, Richard Biener wrote: > > On Mon, May 4, 2020 at 4:07 PM Stefan Schulze Frielinghaus > > wrote: > > > > > > On Mon, May 04, 2020 at 03:19:02PM +0200, Richard Biener wrote: > > > > On Mo

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-05 Thread Stefan Schulze Frielinghaus via Gcc-patches
On Tue, May 05, 2020 at 02:58:51PM +0200, Richard Biener wrote: > On Mon, May 4, 2020 at 4:07 PM Stefan Schulze Frielinghaus > wrote: > > > > On Mon, May 04, 2020 at 03:19:02PM +0200, Richard Biener wrote: > > > On Mon, May 4, 2020 at 1:44 PM Stefan Schulze Frielinghaus > > > wrote: > > > > > > >

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-05 Thread Richard Biener via Gcc-patches
On Mon, May 4, 2020 at 4:07 PM Stefan Schulze Frielinghaus wrote: > > On Mon, May 04, 2020 at 03:19:02PM +0200, Richard Biener wrote: > > On Mon, May 4, 2020 at 1:44 PM Stefan Schulze Frielinghaus > > wrote: > > > > > > On Tue, Apr 28, 2020 at 08:27:12PM +0200, Stefan Schulze Frielinghaus > > >

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-04 Thread Stefan Schulze Frielinghaus via Gcc-patches
On Mon, May 04, 2020 at 03:19:02PM +0200, Richard Biener wrote: > On Mon, May 4, 2020 at 1:44 PM Stefan Schulze Frielinghaus > wrote: > > > > On Tue, Apr 28, 2020 at 08:27:12PM +0200, Stefan Schulze Frielinghaus wrote: > > > On Tue, Apr 28, 2020 at 11:33:31AM +0200, Richard Biener wrote: > > > > O

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-04 Thread Richard Biener via Gcc-patches
On Mon, May 4, 2020 at 1:44 PM Stefan Schulze Frielinghaus wrote: > > On Tue, Apr 28, 2020 at 08:27:12PM +0200, Stefan Schulze Frielinghaus wrote: > > On Tue, Apr 28, 2020 at 11:33:31AM +0200, Richard Biener wrote: > > > On Tue, Apr 28, 2020 at 10:03 AM Stefan Schulze Frielinghaus via > > > Gcc-pa

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-05-04 Thread Stefan Schulze Frielinghaus via Gcc-patches
On Tue, Apr 28, 2020 at 08:27:12PM +0200, Stefan Schulze Frielinghaus wrote: > On Tue, Apr 28, 2020 at 11:33:31AM +0200, Richard Biener wrote: > > On Tue, Apr 28, 2020 at 10:03 AM Stefan Schulze Frielinghaus via > > Gcc-patches wrote: > > > > > > In function handle_vector_size_attribute local vari

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-04-28 Thread Stefan Schulze Frielinghaus via Gcc-patches
On Tue, Apr 28, 2020 at 11:33:31AM +0200, Richard Biener wrote: > On Tue, Apr 28, 2020 at 10:03 AM Stefan Schulze Frielinghaus via > Gcc-patches wrote: > > > > In function handle_vector_size_attribute local variable nunits is > > supposed to be initialized by function type_valid_for_vector_size. >

Re: [PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-04-28 Thread Richard Biener via Gcc-patches
On Tue, Apr 28, 2020 at 10:03 AM Stefan Schulze Frielinghaus via Gcc-patches wrote: > > In function handle_vector_size_attribute local variable nunits is > supposed to be initialized by function type_valid_for_vector_size. > However, in case ARGS is null the function may return with a non-null > v

[PATCH] c-attribs.c: Fix use of uninitialized variable nunits

2020-04-28 Thread Stefan Schulze Frielinghaus via Gcc-patches
In function handle_vector_size_attribute local variable nunits is supposed to be initialized by function type_valid_for_vector_size. However, in case ARGS is null the function may return with a non-null value and leave nunits uninitialized. This results in warning/error: gcc/poly-int.h: In functi