This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ping: Re: [patch middle-end]: Fix PR/48814 - [4.4/4.5/4.6/4.7 Regression] Incorrect scalar increment result


Ping

2012/1/8 Kai Tietz <ktietz70@googlemail.com>:
> Hi,
>
> this patch makes sure that for increment of
> postfix-increment/decrement we use also orignal lvalue instead of tmp
> lhs value for increment. ?This fixes reported issue about sequence
> point in PR/48814
>
> ChangeLog
>
> 2012-01-08 ?Kai Tietz ?<ktietz@redhat.com>
>
> ? ? ? ? ?PR middle-end/48814
> ? ? ? ? ?* gimplify.c (gimplify_self_mod_expr): Use for
> postfix-inc/dec lvalue instead of temporary
> ? ? ? ? ?lhs.
>
> Regression tested for x86_64-unknown-linux-gnu for all languages
> (including Ada and Obj-C++). ?Ok for apply?
>
> Regards,
> Kai
>
> Index: gimplify.c
> ===================================================================
> --- gimplify.c ?(revision 182720)
> +++ gimplify.c ?(working copy)
> @@ -2258,7 +2258,7 @@
> ? ? ? arith_code = POINTER_PLUS_EXPR;
> ? ? }
>
> - ?t1 = build2 (arith_code, TREE_TYPE (*expr_p), lhs, rhs);
> + ?t1 = build2 (arith_code, TREE_TYPE (*expr_p), lvalue, rhs);
>
> ? if (postfix)
> ? ? {



-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]