[PATCH]: convert more fold(buildN()) -> fold_buildN()

Richard Guenther richard.guenther@gmail.com
Sat Mar 3 16:22:00 GMT 2007

On 3/3/07, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> This patch catches some of the remaining fold(buildN()) -> fold_buildN()
> conversions.  After this patch what remains is two in tree.c which call
> fold(build4()).  There is no corresponding fold_build4 function to convert
> these into.
> ./tree.c:2485:      new = fold (build4 (code, TREE_TYPE (exp), op0, op1, op2, op3));
> ./tree.c:2639:        return fold (build4 (code, TREE_TYPE (exp), op0, op1, op2, op3));
> There are also about 50 remaining fold(buildN()) in the ada directory.
> I'm not setup to bootstrap ada on my box, so I didn't touch those.
> Tested on sparc-sun-solaris2.10, no regressions.  I also configured
> cross-compilers to i686-unknown-linux-gnu and alpha-unknown-linux-gnu and
> built cc1 to ensure there were no typos in the cpu.c files for those
> systems.
> Okay for mainline?

This is ok.


> 2007-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
>         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
>         fold_build2.
>         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
>         alpha_fold_vector_minmax): Likewise.
>         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
>         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.

More information about the Gcc-patches mailing list