https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79904

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar  8 08:35:20 2017
New Revision: 245967

URL: https://gcc.gnu.org/viewcvs?rev=245967&root=gcc&view=rev
Log:
        PR sanitizer/79904
        * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
        is a uniform vector, use uniform_vector_p return value instead of
        building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.

        * gcc.dg/ubsan/pr79904.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/ubsan/pr79904.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/internal-fn.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to