re PR tree-optimization/23402 (error: statement makes a memory store, but has no...
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 17 Aug 2005 01:55:05 +0000 (01:55 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 17 Aug 2005 01:55:05 +0000 (18:55 -0700)
commitd06526b797183829041f9ba840a40898bfa7f47a
treed00c8bb96337b5b35ec229a136bbb9fbfed3ba57
parente9e68ae334c951209dcbec40f76237d406d8f9af
re PR tree-optimization/23402 (error: statement makes a memory store, but has no V_MAY_DEFS nor V_MUST_DEFS)

2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/23402
        * gcc.c-torture/compile/zero-strct-3.c: New test.
        * gcc.c-torture/compile/zero-strct-4.c: New test.

2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/23402
        * gimplify.c (zero_sized_type): New function.
        (gimplify_modify_expr_rhs): If we have a zero sized type,
        replace the statement with an empty statement.

From-SVN: r103191
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/zero-strct-3.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/zero-strct-4.c [new file with mode: 0644]