This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tuples] Add gimple-pretty-print.o and misc fixes


> +gs_assign_binary_rhs1 (gimple gs)
>  {
> +  gcc_assert (GS_SUBCODE_FLAGS (gs) == GSS_ASSIGN_BINARY);
>    return gs_assign_operand (gs, 1);

The subcode for GS_ASSIGN tuples are the TREE_CODE of the corresponding
operation, not a GSS_* enum.  So in "c = a + b", the SUBCODE_FLAGS
should be PLUS_EXPR, not GSS_ASSIGN_BINARY.

Do you mind if I delete all these assertions?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]