diff options
author | Tom Tromey <tromey@redhat.com> | 2006-02-04 23:30:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-02-04 23:30:01 +0000 |
commit | fb579387f96f84e0d1e3a9bc5baded6d549824b8 (patch) | |
tree | ddca56d181d8e3e6e310c0ba87aebef1213230cb /gcc | |
parent | a89992356b0fb31b723a5ca80c450912ff09d881 (diff) | |
download | gcc-fb579387f96f84e0d1e3a9bc5baded6d549824b8.zip gcc-fb579387f96f84e0d1e3a9bc5baded6d549824b8.tar.gz gcc-fb579387f96f84e0d1e3a9bc5baded6d549824b8.tar.bz2 |
re PR java/26097 (Libjava failed to build)
PR java/26097:
* expr.c (push_type): Avoid side effect in gcc_assert.
From-SVN: r110598
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/expr.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 5162d66..bce385b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2006-02-04 Tom Tromey <tromey@redhat.com> + + PR java/26097: + * expr.c (push_type): Avoid side effect in gcc_assert. + 2006-02-04 Roger Sayle <roger@eyesopen.com> * decl.c (java_init_decl_processing): Create char_type_node as a diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 6d8926c..5e7699b 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -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 @@ push_type_0 (tree type) void push_type (tree type) { - gcc_assert (push_type_0 (type)); + int r = push_type_0 (type); + gcc_assert (r); } static void |