This is the mail archive of the gcc-bugs@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]

[Bug c/49644] [4.5 Regression] post-increment of promoted operand is incorrect.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49644

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 13:07:27 UTC ---
Author: jakub
Date: Tue Jul 19 13:07:23 2011
New Revision: 176456

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176456
Log:
    Backport from mainline
    2011-07-07  Jakub Jelinek  <jakub@redhat.com>

    PR c/49644
    * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
    one non-complex and one complex argument, call c_save_expr on both
    operands.

    * gcc.c-torture/execute/pr49644.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/execute/pr49644.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/c-typeck.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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