aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-03-20 14:03:34 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-03-20 14:03:34 +0000
commitc048d56d7e1750c411ffc7f67415beab926c1d05 (patch)
tree7b1e1d68050cd2ac5999513fc27276e739d856d5 /gcc/java
parent9c024d9c08822b3241c9cb91b2f2e40ac19b75d5 (diff)
downloadgcc-c048d56d7e1750c411ffc7f67415beab926c1d05.zip
gcc-c048d56d7e1750c411ffc7f67415beab926c1d05.tar.gz
gcc-c048d56d7e1750c411ffc7f67415beab926c1d05.tar.bz2
class.c, [...]: Fix comment typos.
* class.c, gjavah.c, lang.c: Fix comment typos. * gcj.texi: Fix typos. From-SVN: r79744
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/class.c4
-rw-r--r--gcc/java/gcj.texi4
-rw-r--r--gcc/java/gjavah.c2
-rw-r--r--gcc/java/lang.c2
5 files changed, 11 insertions, 6 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 81fa8a5..a0e95a7 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
+
+ * class.c, gjavah.c, lang.c: Fix comment typos.
+ * gcj.texi: Fix typos.
+
2004-03-19 Per Bothner <per@bothner.com>
* gcj.texi (Code Generation): Document new flags and assert defaults.
diff --git a/gcc/java/class.c b/gcc/java/class.c
index dc1659c..66bdeb9 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -201,7 +201,7 @@ add_assume_compiled (const char *ident, int excludep)
add_class_flag (&assume_compiled_tree, ident, excludep);
}
-/* The default value returned by enable_asserstions. */
+/* The default value returned by enable_assertions. */
#define DEFAULT_ENABLE_ASSERT (flag_emit_class_files || optimize == 0)
@@ -240,7 +240,7 @@ assume_compiled (const char *ident)
bool
enable_assertions (tree klass)
{
- /* Check if command-line specifies whether we should check asserrtions. */
+ /* Check if command-line specifies whether we should check assertions. */
if (klass != NULL_TREE && DECL_NAME (klass) && enable_assert_tree != NULL)
{
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index 26edf69..a42e203 100644
--- a/gcc/java/gcj.texi
+++ b/gcc/java/gcj.texi
@@ -435,7 +435,7 @@ optimization off, regardless of the optimization level in use.
@item --disable-assertions[=@var{class-or-package}]
Don't include code for checking assertions in the compiled code.
If @code{=@var{class-or-package}} is missing disables assertion code
-generation for all classes, unless overrideen by a more
+generation for all classes, unless overridden by a more
specific @code{--enable-assertions} flag.
If @var{class-or-package} is a class name, only disables generating
assertion checks within the named class or its inner classes.
@@ -443,7 +443,7 @@ If @var{class-or-package} is a package name, disables generating
assertion checks within the named package or a subpackage.
By default, assertions are enabled when generating class files
-or when not optimizaing, and disabled when generating optimized binaries.
+or when not optimizing, and disabled when generating optimized binaries.
@item --enable-assertions[=@var{class-or-package}]
Generates code to check assertions. The option is perhaps misnamed,
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 4afa149..0a09ab6 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -1416,7 +1416,7 @@ print_c_decl (FILE* stream, JCF* jcf, int name_index, int signature_index,
}
/* Force the alignment of the first data member. This is
- because the "new" C++ ABI changed the alignemnt of non-POD
+ because the "new" C++ ABI changed the alignment of non-POD
classes. gcj, however, still uses the "old" alignment. */
if (is_first_data_member && ! (flags & ACC_STATIC) && ! is_method)
{
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 20afb50..4856e5f 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -949,7 +949,7 @@ merge_init_test_initialization (void **entry, void *x)
However, what if the method that is suppoed to do the initialization
is itself inlined in the caller? When expanding the called method
- we'll assume that the class initalization has already been done,
+ we'll assume that the class initialization has already been done,
because the DECL_INITIAL of the init_test_decl is set.
To fix this we remove the DECL_INITIAL (in the caller scope) of all