]> gcc.gnu.org Git - gcc.git/commitdiff
expr.c (expand_expr_real_1): Remove unnecessary assignments to temp.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 19 Oct 2004 12:51:05 +0000 (12:51 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 19 Oct 2004 12:51:05 +0000 (12:51 +0000)
* expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
unnecessary assignments to temp.  Return const0_rtx.

From-SVN: r89273

gcc/ChangeLog
gcc/expr.c

index 507a0c6b32a93f98cc3bca291b48afdbe097eee0..284cb61bc8559612fe792c01ddd7f67178ed58b5 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
+       unnecessary assignments to temp.  Return const0_rtx.
+
 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/sh.c (sh5_schedule_saves): Fix typo.
index 358a634eb859a9adc0725f87c36ccd6f7d0d5cdc..ffcf078916a73e6368f412c3e398bdaa7730910b 100644 (file)
@@ -8067,8 +8067,6 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
        tree lhs = TREE_OPERAND (exp, 0);
        tree rhs = TREE_OPERAND (exp, 1);
 
-       temp = 0;
-
        gcc_assert (ignore);
 
        /* Check for |= or &= of a bitfield of size one into another bitfield
@@ -8102,9 +8100,9 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
            return const0_rtx;
          }
 
-       temp = expand_assignment (lhs, rhs, 0);
+       expand_assignment (lhs, rhs, 0);
 
-       return temp;
+       return const0_rtx;
       }
 
     case RETURN_EXPR:
This page took 0.1649 seconds and 5 git commands to generate.