diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2006-02-08 20:38:13 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2006-02-08 20:38:13 +0000 |
commit | 2cf94e58cbde0c5e906720768bd738588a1a075a (patch) | |
tree | cf833007c737395cb44ea9f031474173d9ab680a /libjava/interpret.cc | |
parent | 8b1753e3ec0f38a18b8bcd3c13e2b6b55f799099 (diff) | |
download | gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.zip gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.tar.gz gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.tar.bz2 |
link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const char *".
2006-02-08 Bryce McKinlay <mckinlay@redhat.com>
* link.cc (_Jv_Linker::print_class_loaded): Declare string constants
as "const char *".
* verify.cc (verify_fail): Likewise.
* gnu/classpath/natSystemProperties.cc (file_encoding): Likewise.
* interpret.cc (throw_internal_error, throw_class_format_error):
Likewise.
* gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed,
_Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise.
* java/lang/Class.h (_Jv_InitPrimClass): Likewise.
* include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise.
* defineclass.cc (throw_internal_error, throw_no_class_def_found_error,
is_attribute_name): Likewise.
* prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init,
_Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise.
From-SVN: r110767
Diffstat (limited to 'libjava/interpret.cc')
-rw-r--r-- | libjava/interpret.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libjava/interpret.cc b/libjava/interpret.cc index f95671d2..4e5e5df 100644 --- a/libjava/interpret.cc +++ b/libjava/interpret.cc @@ -47,7 +47,7 @@ _Jv_InterpreterEngine _Jv_soleInterpreterEngine; using namespace gcj; -static void throw_internal_error (char *msg) +static void throw_internal_error (const char *msg) __attribute__ ((__noreturn__)); static void throw_incompatible_class_change_error (jstring msg) __attribute__ ((__noreturn__)); @@ -58,7 +58,7 @@ static void throw_null_pointer_exception () static void throw_class_format_error (jstring msg) __attribute__ ((__noreturn__)); -static void throw_class_format_error (char *msg) +static void throw_class_format_error (const char *msg) __attribute__ ((__noreturn__)); #ifdef DIRECT_THREADED @@ -3294,7 +3294,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args, _Jv_InterpMethod *meth) } static void -throw_internal_error (char *msg) +throw_internal_error (const char *msg) { throw new java::lang::InternalError (JvNewStringLatin1 (msg)); } @@ -3817,7 +3817,7 @@ throw_class_format_error (jstring msg) } static void -throw_class_format_error (char *msg) +throw_class_format_error (const char *msg) { throw_class_format_error (JvNewStringLatin1 (msg)); } |