aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2006-09-21 21:52:23 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2006-09-21 21:52:23 +0000
commit2801ed8e2fc91d7b924e76b4f5505daee09381a5 (patch)
treeda06aeec347f89181fb1db0c076097d66c0391ab
parenta1adedd03b50d25342d52ca1e72db6de2b3b737b (diff)
downloadgcc-2801ed8e2fc91d7b924e76b4f5505daee09381a5.zip
gcc-2801ed8e2fc91d7b924e76b4f5505daee09381a5.tar.gz
gcc-2801ed8e2fc91d7b924e76b4f5505daee09381a5.tar.bz2
varasm.c (copy_constant): Fix reversed gcc_assert check.
gcc/ * varasm.c (copy_constant): Fix reversed gcc_assert check. From-SVN: r117121
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/varasm.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b02dbcd..f81896b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-21 Richard Sandiford <richard@codesourcery.com>
+
+ * varasm.c (copy_constant): Fix reversed gcc_assert check.
+
2006-09-21 Janis Johnson <janis187@us.ibm.com>
* ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 3091132..c45a0f7 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -2749,7 +2749,7 @@ copy_constant (tree exp)
{
tree t = lang_hooks.expand_constant (exp);
- gcc_assert (t == exp);
+ gcc_assert (t != exp);
return copy_constant (t);
}
}