[PATCH] Fix PR32522 -- alpha bootstrap failure

Andrew Pinski pinskia@gmail.com
Mon Aug 20 06:55:00 GMT 2007


On 7/26/07, Serge Belyshev <belyshev@depni.sinp.msu.ru> wrote:
> Alpha is broken since pointer-plus merge.
> The following patch, based on Andrew's from
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32522#c2 fixes it.
>
> This patch is obvious in the spirit of all pointer-plus backend fixes,
> and I added just three lines to Andrew's patch, so it should go in
> without waiting for me to get an assignement.
>
> Bootstrapped all languages excluding java on alphaev56-unknown-linux-gnu,
> regtest in progress. Please apply.
>
>
> 2007-07-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
>             Serge Belyshev  <belyshev@depni.sinp.msu.ru>
>
>         PR target/32522
>         * config/alpha/alpha.c (va_list_skip_additions): Check for
>         POINTER_PLUS_EXPR in addition to PLUS_EXPR.
>         (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
>         PLUS_EXPR when checking ap.__base.
>         (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
>         when doing addition on pointer types.  Use size_int instead of
>         build_int_cst.
>         (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
>         ptr_type in the second operand.

I have applied this as obvious.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list