public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Ping: Re: [patch middle-end]: Fix PR/48814 - [4.4/4.5/4.6/4.7 Regression] Incorrect scalar increment result
@ 2012-01-10  9:59 Kai Tietz
  2012-01-10 10:11 ` Richard Guenther
  0 siblings, 1 reply; 25+ messages in thread
From: Kai Tietz @ 2012-01-10  9:59 UTC (permalink / raw)
  To: GCC Patches; +Cc: Richard Guenther

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

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2012-03-19 21:43 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-10  9:59 Ping: Re: [patch middle-end]: Fix PR/48814 - [4.4/4.5/4.6/4.7 Regression] Incorrect scalar increment result Kai Tietz
2012-01-10 10:11 ` Richard Guenther
2012-01-10 10:58   ` Kai Tietz
2012-01-11 10:05     ` Richard Guenther
2012-01-11 10:07       ` Richard Guenther
2012-01-11 10:19         ` Kai Tietz
2012-01-11 10:29           ` Richard Guenther
2012-02-08 21:31             ` Kai Tietz
2012-02-09 10:32               ` Richard Guenther
2012-02-09 11:17                 ` Richard Guenther
2012-02-09 13:23                   ` Richard Guenther
2012-02-09 13:54                     ` Kai Tietz
2012-02-09 14:52                       ` Richard Guenther
2012-02-09 16:19                         ` Richard Guenther
2012-02-10  9:44                           ` Kai Tietz
2012-02-10 11:09                             ` Richard Guenther
2012-02-10 13:28                               ` Jonathan Wakely
2012-02-10 13:31                                 ` Richard Guenther
2012-02-10 15:20                               ` Kai Tietz
2012-03-15 15:22                                 ` Kai Tietz
2012-03-15 15:41                                   ` Richard Guenther
2012-03-16  0:29                                     ` Jonathan Wakely
2012-03-16 10:11                                       ` Richard Guenther
2012-03-19 21:43                                         ` Benjamin De Kosnik
2012-02-10 13:12                             ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).