This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: fix PR 26097
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 04 Feb 2006 16:23:34 -0700
- Subject: Patch: FYI: fix PR 26097
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
This fixes PR 26097. This is a minor regression introduced by
assert-ification. Thanks to Andreas Tobler for testing.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR java/26097:
* expr.c (push_type): Avoid side effect in gcc_assert.
Index: expr.c
===================================================================
--- expr.c (revision 110591)
+++ expr.c (working copy)
@@ -1,5 +1,5 @@
/* Process expressions for the GNU compiler for the Java(TM) language.
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GCC.
@@ -273,7 +273,8 @@
void
push_type (tree type)
{
- gcc_assert (push_type_0 (type));
+ int r = push_type_0 (type);
+ gcc_assert (r);
}
static void