This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR32522 -- alpha bootstrap failure
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Serge Belyshev" <belyshev at depni dot sinp dot msu dot ru>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 19 Aug 2007 23:52:41 -0700
- Subject: Re: [PATCH] Fix PR32522 -- alpha bootstrap failure
- References: <8764465q51.fsf@depni.sinp.msu.ru>
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