diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 3 |
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 |