Re: [PATCH v2] extend shift count warnings to vector types

2016-07-14 Thread Jeff Law
On 07/01/2016 08:29 AM, Jan Beulich wrote: gcc/c/ 2016-07-01 Jan Beulich * c-fold.c (c_fully_fold_internal): Also emit shift count warnings for vector types. * c-typeck.c (build_binary_op): Likewise. gcc/testsuite/ 2016-07-01 Jan Beulich * gcc.dg/vshift-6.

Re: [PATCH v2] extend shift count warnings to vector types

2016-07-02 Thread Marc Glisse
On Fri, 1 Jul 2016, Jan Beulich wrote: gcc/c/ 2016-07-01 Jan Beulich * c-fold.c (c_fully_fold_internal): Also emit shift count warnings for vector types. * c-typeck.c (build_binary_op): Likewise. Hello, I just wanted to advertise the function element_precision, who

[PATCH v2] extend shift count warnings to vector types

2016-07-01 Thread Jan Beulich
gcc/c/ 2016-07-01 Jan Beulich * c-fold.c (c_fully_fold_internal): Also emit shift count warnings for vector types. * c-typeck.c (build_binary_op): Likewise. gcc/testsuite/ 2016-07-01 Jan Beulich * gcc.dg/vshift-6.c, gcc.dg/vshift-7.c: New. --- 2016-06-30/gc

Re: extend shift count warnings to vector types

2015-12-15 Thread Jeff Law
On 12/14/2015 01:29 AM, Jan Beulich wrote: On 11.12.15 at 21:40, wrote: On 12/11/2015 12:28 AM, Jan Beulich wrote: gcc/c/ 2015-12-10 Jan Beulich * c-fold.c (c_fully_fold_internal): Also emit shift count warnings for vector types. * c-typeck.c (build_binary_op): Like

Re: extend shift count warnings to vector types

2015-12-14 Thread Jan Beulich
>>> On 11.12.15 at 21:40, wrote: > On 12/11/2015 12:28 AM, Jan Beulich wrote: >> gcc/c/ >> 2015-12-10 Jan Beulich >> >> * c-fold.c (c_fully_fold_internal): Also emit shift count >> warnings for vector types. >> * c-typeck.c (build_binary_op): Likewise. > Needs testcases for the a

Re: extend shift count warnings to vector types

2015-12-11 Thread Jeff Law
On 12/11/2015 12:28 AM, Jan Beulich wrote: gcc/c/ 2015-12-10 Jan Beulich * c-fold.c (c_fully_fold_internal): Also emit shift count warnings for vector types. * c-typeck.c (build_binary_op): Likewise. Needs testcases for the added warnings. My additional concern here

extend shift count warnings to vector types

2015-12-10 Thread Jan Beulich
int_const = false; + if (c_inhibit_evaluation_warnings == 0) + warning_at (location, OPT_Wshift_count_overflow, + "left shift count >= width of vector element"); + } +