This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: fix PR 26097


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]