diff options
author | Robert Lipe <robertl@dgii.com> | 1998-02-12 14:59:57 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-02-12 14:59:57 +0000 |
commit | 8bd6ecc2806335930ad29687810b372a1649e49f (patch) | |
tree | e821b3ffe3ae2797122ff409a60154845ab074f7 /gcc | |
parent | 3317aae90b39123922aa92f0f10f65212df1699a (diff) | |
download | gcc-8bd6ecc2806335930ad29687810b372a1649e49f.zip gcc-8bd6ecc2806335930ad29687810b372a1649e49f.tar.gz gcc-8bd6ecc2806335930ad29687810b372a1649e49f.tar.bz2 |
expr.c (expand_assignment): Correct typo exposed by -Wall.
* expr.c (expand_assignment): Correct typo exposed by -Wall.
offset should have been a truth value, not an assignment.
From-SVN: r17876
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/expr.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8129ee6..adf815a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 12 16:45:17 1998 Robert Lipe <robertl@dgii.com> + * expr.c (expand_assignment): Correct typo exposed by -Wall. + offset should have been a truth value, not an assignment. + Thu Feb 12 15:26:50 1998 Jeffrey A Law (law@cygnus.com) * cse.c (delete_dead_from_cse): If a libcall produces a constant @@ -2924,7 +2924,7 @@ expand_assignment (to, from, want_value, suggest_reg) if (TREE_CODE (to) == COMPONENT_REF && TREE_READONLY (TREE_OPERAND (to, 1))) { - if (offset = 0) + if (offset == 0) to_rtx = copy_rtx (to_rtx); RTX_UNCHANGING_P (to_rtx) = 1; |