aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-12-07 15:42:44 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-12-07 15:42:44 +0000
commit819bfe0e14047c82148ba67fa9721abc206475bd (patch)
treec65d60d00c6229816d216301657c930f608d6cbd /gcc/java
parent5a1f5f9a3c83a1e1c5a6d61625909a451effae15 (diff)
downloadgcc-819bfe0e14047c82148ba67fa9721abc206475bd.zip
gcc-819bfe0e14047c82148ba67fa9721abc206475bd.tar.gz
gcc-819bfe0e14047c82148ba67fa9721abc206475bd.tar.bz2
* config/mcore/mcore.c Don't include assert.h.
(layout_mcore_frame, handle_structs_in_regs): Use gcc_assert. * config/spu/spu.c: Don't include assert.h. (spu_sms_res_mii): Use gcc_assert. cp: * rtti.c: Don't include assert.h. java: * jcf-parse.c: Don't include assert.h. (java_parse_file): Use gcc_assert. From-SVN: r167552
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 38df4b3..906a5a0 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-07 Joseph Myers <joseph@codesourcery.com>
+
+ * jcf-parse.c: Don't include assert.h.
+ (java_parse_file): Use gcc_assert.
+
2010-12-03 Joseph Myers <joseph@codesourcery.com>
* lang.opt (static-libgcj): New option.
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 9166f311..d10791f 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -38,7 +38,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "parse.h"
#include "ggc.h"
#include "debug.h"
-#include "assert.h"
#include "cgraph.h"
#include "vecprim.h"
#include "bitmap.h"
@@ -1855,7 +1854,7 @@ java_parse_file (void)
const char *resource_filename;
/* Only one resource file may be compiled at a time. */
- assert (VEC_length (tree, all_translation_units) == 1);
+ gcc_assert (VEC_length (tree, all_translation_units) == 1);
resource_filename
= IDENTIFIER_POINTER