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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb  6 09:16:19 2019
New Revision: 268573

URL: https://gcc.gnu.org/viewcvs?rev=268573&root=gcc&view=rev
Log:
        PR middle-end/89210
        * fold-const-call.c (fold_const_vec_convert): Pass true as last
        operand to new_unary_operation only if both element types are integral
        and it isn't a widening conversion.  Return NULL_TREE if
        new_unary_operation failed.

        * c-c++-common/builtin-convertvector-2.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/builtin-convertvector-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const-call.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to