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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-03 
16:33:15 UTC ---
Author: jakub
Date: Tue May  3 16:33:09 2011
New Revision: 173324

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

    PR c/48685
    * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
    to VOID_TYPE even around MODIFY_EXPR.

    * gcc.dg/pr48685.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr48685.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/fold-const.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog

Reply via email to