[Bug c++/59032] [4.8/4.9 Regression] ICE incrementing vector type

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 10 09:40:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59032

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
I wonder if it would take more than replacing:

          inc = integer_one_node;

with something like:

          inc = VECTOR_TYPE_P (argtype)
                ? build_one_cst (argtype)
                : integer_one_node;

(or even unconditionally build_one_cst)

to support increment/decrement for vectors. We already support v=v+1, so it
wouldn't be a large extension.



More information about the Gcc-bugs mailing list