re PR target/32522 (Bootstrap failure on Alpha due to pointer-plus changes)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Mon, 20 Aug 2007 06:53:05 +0000 (06:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 20 Aug 2007 06:53:05 +0000 (23:53 -0700)
commit5a4ac6841c58e0e0fa97c46f363736728c029215
treefdbd8f390927699df85fbf40b365864e9d99bf4c
parentba3ba492cd3434b1b05035d569d3ec5fc893b746
re PR target/32522 (Bootstrap failure on Alpha due to pointer-plus changes)

2007-08-19  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.

Co-Authored-By: Serge Belyshev <belyshev@depni.sinp.msu.ru>
From-SVN: r127637
gcc/ChangeLog
gcc/config/alpha/alpha.c