On Fri, 1 Jul 2016, Jan Beulich wrote:

gcc/c/
2016-07-01  Jan Beulich  <jbeul...@suse.com>

        * 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, whose goal is to unify handling of vectors and scalars. It is "overloaded" to apply TREE_TYPE the right number of times before TYPE_PRECISION. Since you are giving a different warning message for scalars and vectors, it probably wouldn't help you here though. (OTOH, if you decided that the same message was good enough for both...)

--
Marc Glisse

Reply via email to