This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [FORTRAN mainline] dereference POINTER_PLUS_EXPR check (was tuples)
Aldy Hernandez wrote:
> The culprit is the fortran FE which is building a P_P_E with no regards
> to type. The patch below uses [void *] when building BUILT_IN_MEMSET.
> It has been tested on x86-linux, with no regressions on the Fortran test
> cases.
>
> OK for *mainline*, as it suffers from the same problem?
This patch is OK (from the FE side). (Unless a ME maintainer has
objections.)
> * fortran/trans-expr.c (gfc_trans_string_copy): Use "void *" * when
> building a memmove.
Use "* trans-expr.c" and place it into fortran/ChangeLog.
> +++ fortran/trans-expr.c (local)
> - tmp4 = fold_build2 (POINTER_PLUS_EXPR, pchar_type_node, dest,
> + tmp4 = fold_build2 (POINTER_PLUS_EXPR, ptr_type_node, dest,
Tobias
PS: Please CC the next time to fortran@ as the gfortraners don't
regularily read gcc-patches.