Terry Laurenzo
e263bc9311
Removed decompilation for non-ELF targets.
...
From-SVN: r106628
2005-11-08 00:21:21 +00:00
Kelley Cook
f12c30a8f1
Update FSF address.
...
From-SVN: r101309
2005-06-25 00:33:05 +00:00
Kaveh R. Ghazi
74118f1510
gjavah.c (error): Add ATTRIBUTE_PRINTF_1.
...
* gjavah.c (error): Add ATTRIBUTE_PRINTF_1.
* java-tree.h (parse_error_context): Move...
* parse.h (parse_error_context): ... here, add ATTRIBUTE_GCC_DIAG.
* parse.y (parse_warning_context): Add ATTRIBUTE_GCC_DIAG.
* verify-impl.c (debug_print): Add ATTRIBUTE_PRINTF_1.
From-SVN: r100795
2005-06-09 10:55:02 +00:00
Jakub Jelinek
4b794eaf73
exgettext: Handle gmsgid and cmsgid arguments specially, as gcc-internal-format and c-format.
...
gcc/po/
* exgettext: Handle gmsgid and cmsgid arguments specially,
as gcc-internal-format and c-format. Because of xgettext
bug, invoke xgettext once with --language=c, once with
--language=GCC-source and then merge together. Fail if
xgettext is not 0.14.5 or later.
gcc/
* intl.h (G_): New macro.
* rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
instead of msgid for argument name.
* tree-ssa.c (warn_uninit): Likewise.
* c-parser.c (c_parser_error): Likewise.
* config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
* config/darwin-c.c (BAD): Likewise.
* config/c4x/c4x-c.c (BAD): Likewise.
* c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
* c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
* c-common.c (c_parse_error): Likewise.
* diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
warning0, pedwarn, error, sorry, fatal_error, internal_error):
Likewise.
(fnotice): Use cmsgid instead of msgid for argument name.
* gcov.c (fnotice): Likewise.
* protoize.c (notice): Likewise.
* final.c (output_operand_lossage): Likewise.
* gcc.c (fatal, notice): Likewise.
(error): Use gmsgid instead of msgid for argument name.
* collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
of msgid for argument name.
(error): Use gmsgid instead of msgid for argument name.
* c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
instead of N_().
* c-typeck.c (readonly_error, convert_for_assignment): Likewise.
* tree-inline.c (inline_forbidden_p_1): Likewise.
* ABOUT-GCC-NLS: Require gettext 0.14.5 or later. Mention the new
conventions for marking translations.
* doc/install.texi: Mention gettext 0.14.5 or later requirement.
gcc/cp/
* error.c (locate_error): Use gmsgid instead of msgid for argument
name.
(cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
gcc/java/
* jv-scan.c (fatal_error, warning, warning0): Use gmsgid instead of
msgid for argument name.
* gjavah.c (error): Likewise.
* java-tree.h (parse_error_context): Likewise.
* parse.y (parse_error_context, parse_warning_context,
issue_warning_error_from_context): Likewise.
From-SVN: r100676
2005-06-06 21:31:40 +02:00
Thomas Fitzsimmons
d8be0aabf7
re PR java/20309 (gcjh needs a -force option)
...
2005-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
PR java/20309
* Make-lang.in (java): Add gjnih.
(JAVA_TARGET_INDEPENDENT_BIN_TOOLS): Likewise.
(GJNIH_OBJS): New variable.
(gjnih$(exeext)): New target.
(JAVA_MANFILES): Add gjnih.1.
(java.uninstall): Add gjnih.1.
(java.mostlyclean): Add gjnih.
(java.maintainer-clean): Add gjnih.1.
(java/gjavah-jni.o): New target.
(.INTERMEDIATE): Add gjnih.pod.
(gjnih.pod): New target.
* config-lang.in (stagestuff): Add gjnih.
* gcj.texi (Top): Add gjnih node.
(Invoking gcjh): Add descriptions of -force, -old, -trace, -J and
-bootclasspath options.
(Invoking gjnih): New node.
* gjavah.c Initialize flag_jni to 1 if JNI_DEFAULT is defined.
(TOOLNAME): New macro.
(error): Replace hard-coded gcjh with TOOLNAME.
(process_file): Likewise.
(usage): Likewise.
(version): Likewise.
(help): Likewise. Add help output for -force, -old, -trace and -J
options.
(OPT_FORCE, OPT_OLD, OPT_TRACE): New macros.
(options): Add force, old, trace and J fields.
(main): Handle -force, -old, -trace and -J options.
From-SVN: r99206
2005-05-04 01:46:41 +00:00
Tom Tromey
a67aa338b6
re PR java/21245 (gcjh creates invalid/empty header files)
...
PR java/21245:
* gjavah.c (main): Unlink output file on error.
From-SVN: r99182
2005-05-03 20:51:30 +00:00
Kaveh R. Ghazi
2653bb0c12
collect2.c, [...]: Replace calls to unlock_stream' with
unlock_std_streams'.
...
* collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
gensupport.c, protoize.c, toplev.c: Replace calls to
`unlock_stream' with `unlock_std_streams'.
java:
* gjavah.c, jcf-dump.c, jv-scan.c, jvgenmain.c: Replace calls
to `unlock_stream' with `unlock_std_streams'.
From-SVN: r98753
2005-04-26 00:24:02 +00:00
Kaveh R. Ghazi
98a3dad411
collect2.c (main): Unlock the stdio streams.
...
* collect2.c (main): Unlock the stdio streams.
* gcc.c (main): Likewise.
* gcov-dump.c (main): Likewise.
* gcov.c (main): Likewise.
* gen-protos.c (main): Likewise.
* gensupport.c (init_md_reader_args_cb): Likewise.
* protoize.c (main): Likewise.
* toplev.c (general_init): Likewise.
java:
* gjavah.c (main): Unlock the stdio streams.
* jcf-dump.c (main): Likewise.
* jv-scan.c (main): Likewise.
* jvgenmain.c (main): Likewise.
From-SVN: r98676
2005-04-24 22:11:55 +00:00
Tom Tromey
3d4da704e7
re PR java/19742 (gcjh shouldn't mangle names in JNI output.)
...
PR java/19742:
* gjavah.c (get_field_name): Don't override name for JNI header.
From-SVN: r94578
2005-02-02 00:44:08 +00:00
Ranjit Mathew
f619dcab0c
re PR java/19738 (gcjh generates invalid class member floating-point initialisers)
...
PR java/19738
* gjavah.c (jni_print_float): Do not emit floating-point
initialiser for a static final field.
(jni_print_double): Likewise.
From-SVN: r94553
2005-02-01 18:38:12 +00:00
Mark Mitchell
22f8a06852
revert: gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__".
...
Revert:
2005-01-31 Mark Mitchell <mark@codesourcery.com>
* gjavah.c (print_field_info): Mark static data members of
floating-point type with "__extension__".
From-SVN: r94547
2005-02-01 17:13:08 +00:00
Mark Mitchell
8c94c75ae7
parser.c (cp_parser_primary_expression): Don't complain about floating-point literals in integral constant expressions...
...
* parser.c (cp_parser_primary_expression): Don't complain about
floating-point literals in integral constant expressions when
!pedantic.
* gjavah.c (print_field_info): Mark static data members of
floating-point type with "__extension__".
From-SVN: r94527
2005-02-01 06:58:27 +00:00
Joseph Myers
597cdf4f43
darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.
...
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
instead of `%s' in diagnostic.
cp:
* g++spec.c, lex.c: Avoid ` as left quote in diagnostics.
fortran:
* f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
in diagnostics.
java:
* gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote
in diagnostics.
From-SVN: r91282
2004-11-25 11:13:38 +00:00
Tom Tromey
367390404d
* Merged gcj-abi-2-dev-branch to trunk.
...
(Actual changes too large to list in the commit message;
see ChangeLog.)
From-SVN: r91270
2004-11-25 03:47:08 +00:00
Ben Elliston
82698cdede
gjavah.c (output_directory): Make static.
...
* gjavah.c (output_directory): Make static.
(temp_directory): Likewise.
From-SVN: r91074
2004-11-23 15:13:23 +11:00
Tom Tromey
5e74a4ebf7
re PR java/16843 (gcjh generated headers don't define final constants)
...
PR java/16843:
* gjavah.c (HANDLE_END_FIELD): Call print_field_info when
generating a JNI header.
(print_field_info): Handle JNI headers.
(jni_print_float): Likewise.
(jni_print_double): Likewise.
From-SVN: r90277
2004-11-08 18:03:01 +00:00
Matt Austern
e72222acd1
Fix bootstrap.
...
* gjavah.c (free_method_name_list): Fix function definition so
it's a proper C prototype.
From-SVN: r87815
2004-09-21 18:27:29 +00:00
Tom Tromey
b8b639c915
re PR java/17575 (gcjh does not clear its function name cache between files)
...
PR java/17575:
* gjavah.c (free_method_name_list): New method.
(main): Call it.
From-SVN: r87812
2004-09-21 16:28:40 +00:00
Mike Stump
0e7d217a97
boehm.c (set_bit): Improve type safety wrt unsignedness.
...
* boehm.c (set_bit): Improve type safety wrt unsignedness.
* gjavah.c (throwable_p, decode_signature_piece,
print_full_cxx_name, print_include, add_namelet, add_class_decl,
process_file): Likewise.
* jcf-dump.c (main): Likewise.
* jcf-io.c (read_zip_member): Likewise.
* jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant,
give_name_to_class, get_class_constant): Likewise.
* jcf-write.c (find_constant_wide, push_long_const,
generate_classfile): Likewise.
* lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise.
* parse.y (read_import_dir): Likewise.
* typeck.c (parse_signature_type): Likewise.
* verify.c (verify_jvm_instructions): Likewise.
* zextract.c (find_zip_file_start, read_zip_archive): Likewise.
From-SVN: r85102
2004-07-24 00:03:28 +00:00
Bryce McKinlay
dd4e150058
re PR java/16474 (gcjh: Illegal C++ produced for some non-gcj bytecode)
...
2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
PR java/16474
gjavah.c (print_field_info): Emit constant only if field is static.
From-SVN: r84570
2004-07-12 19:06:03 +01:00
Mark G. Adams
a757585a22
tree.h: Remove include of version.h
...
* tree.h: Remove include of version.h
* c-cppbuiltin.c: Include version.h
* diagnostic.c: Include version.h
* dwarf2out.c: Include version.h
* toplev.c: Include version.h
* vmsdbgout.c: Include version.h
* Makefile.in: Remove dependency on version.h from TREE_H, and
add dependencies to required .o targets
* gjavah.c: Include version.h
From-SVN: r82601
2004-06-03 18:48:28 +00:00
Mark Wielaard
f1865cde4b
gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not extern.
...
* gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not
extern.
From-SVN: r82094
2004-05-21 11:08:02 +00:00
Ranjit Mathew
3fb577a589
re PR java/15133 (gcjh generates wrong method signatures)
...
Fixes PR java/15133
* gjavah.c (struct method_name): Add member is_native.
(overloaded_jni_method_exists_p): Match candidate method only if
it is native.
(print_method_info): Initialise is_native flag from the method's
access flags.
From-SVN: r81357
2004-04-30 18:14:07 +00:00
Kazu Hirata
c048d56d7e
class.c, [...]: Fix comment typos.
...
* class.c, gjavah.c, lang.c: Fix comment typos.
* gcj.texi: Fix typos.
From-SVN: r79744
2004-03-20 14:03:34 +00:00
Joseph Myers
0237b2dc30
gjavah.c: Include "intl.h".
...
* gjavah.c: Include "intl.h".
(error): New function.
(main): Call gcc_init_libintl.
(get_field_name, throwable_p, print_c_decl, print_full_cxx_name,
print_stub_or_jni, process_file, main): Use error rather than
fprintf.
(print_method_info, usage, help, version, main): Mark strings for
translation with _. Avoid splitting up sentences. Send
information messages to stdout.
* jcf-dump.c: Include "intl.h".
(main): Call gcc_init_libintl.
(process_class, usage, help, version, main, CHECK_PC_IN_RANGE):
Mark error, usage and version messages for translation with _.
Avoid splitting up sentences.
* jv-scan.c: Include "intl.h".
(fatal_error, warning): Change parameter s to msgid. Translate
messages.
(main): Call gcc_init_libintl.
(usage, help, version): Mark error, usage and version messages for
translation with _. Avoid splitting up sentences.
* jvgenmain.c: Include "intl.h".
(main): Call gcc_init_libintl.
(usage, main): Mark error messages for translation with _.
* Make-lang.in (GCJH_OBJS, JVSCAN_OBJS, JCFDUMP_OBJS,
JVGENMAIN_OBJS): Add intl.o.
(java/jcf-dump.o, java/gjavah.o, java/jv-scan.o,
java/jvgenmain.o): Update dependencies.
From-SVN: r77614
2004-02-10 19:12:34 +00:00
Kazu Hirata
3a976c72d6
class.c: Remove uses of "register" specifier in declarations of arguments and local...
...
* class.c: Remove uses of "register" specifier in
declarations of arguments and local variables.
* decl.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-write.c: Likewise.
* keyword.h: Likewise.
* parse.y: Likewise.
* typeck.c: Likewise.
* verify.c: Likewise.
From-SVN: r74882
2003-12-20 15:38:28 +00:00
Tom Tromey
45c00e222f
* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
...
From-SVN: r73642
2003-11-16 04:46:48 +00:00
Zack Weinberg
a6d682a05f
dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.
...
* dbxout.c (flag_debug_only_used_symbols): Delete redundant
declaration.
f:
* com.c (input_file_stack_tick): Delete redundant declaration.
java:
* gjavah.c (flag_jni): Make non-static.
* parse-scan.y (ctxp): Make non-static.
From-SVN: r68624
2003-06-28 00:42:31 +00:00
Tom Tromey
73cb3b5a41
re PR java/10491 (gcjh should make enclosing class a "friend" of inner classes)
...
PR java/10491:
* gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro.
(handle_inner_classes): New function.
From-SVN: r66416
2003-05-03 02:29:26 +00:00
Tom Tromey
e6311b9e25
* gjavah.c (print_c_decl): Indentation fix.
...
From-SVN: r65562
2003-04-14 04:42:21 +00:00
Zack Weinberg
649eaf9bfd
javaop.h (jfloat, jdouble): Make them structures mirroring the bit fields of IEEE float and double respectively.
...
* javaop.h (jfloat, jdouble): Make them structures mirroring
the bit fields of IEEE float and double respectively.
(JFLOAT_FINITE, JFLOAT_QNAN_MASK, JFLOAT_EXP_BIAS,
JDOUBLE_FINITE, JDOUBLE_QNAN_MASK, JDOUBLE_EXP_BIAS): New.
(union Word, union DWord): Delete.
(WORD_TO_FLOAT, WORDS_TO_DOUBLE): Update to match.
* gjavah.c (java_float_finite, java_double_finite, F_NAN_MASK,
D_NAN_MASK): Delete.
(jni_print_float, jni_print_double): New. Generate
hexadecimal floating constants.
(print_field_info): Use jni_print_float/double.
* jcf-dump.c: Include math.h. Use ldexp/frexp to assemble
finite floating point numbers for output; special case
non-finite floats.
From-SVN: r64671
2003-03-21 17:10:02 +00:00
Andrew Haley
68566610af
gjavah.c (is_first_data_member): New global variable.
...
2003-03-04 Andrew Haley <aph@redhat.com>
* gjavah.c (is_first_data_member): New global variable.
(print_c_decl): If it's the first data member, align it as the
superclass.
(process_file): Set is_first_data_member.
From-SVN: r64247
2003-03-12 16:14:01 +00:00
Mark Wielaard
36da0e789c
* gjavah.c (throwable_p): Allocate 1 more byte for string.
...
From-SVN: r62228
2003-02-01 01:31:31 +00:00
Kaveh R. Ghazi
0a2f0c5497
* All Files: Convert to ISO C style function definitions.
...
From-SVN: r61218
2003-01-12 02:14:56 +00:00
Kaveh R. Ghazi
77d3109be2
* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
...
From-SVN: r61137
2003-01-10 03:04:41 +00:00
Geoffrey Keating
17211ab553
Merge from pch-branch.
...
From-SVN: r61136
2003-01-10 02:22:34 +00:00
Kaveh R. Ghazi
d2097937c5
* All Files: Remove PARAMS macro.
...
From-SVN: r61133
2003-01-09 23:16:56 +00:00
Kaveh R. Ghazi
6ff2fe3933
expr.c, [...]: Don't rely on the DEFUN',
AND' or `__STDC__' macros.
...
* expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c,
jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or
`__STDC__' macros.
From-SVN: r61131
2003-01-09 23:13:02 +00:00
Steven Bosscher
f309ff0a12
Make-lang.in, [...]: Replace "GNU CC" with "GCC" in the copyright header.
...
* Make-lang.in, boehm.c, buffer.c,
buffer.h, builtins.c, class.c,
config-lang.in, constants.c,
convert.h, decl.c, except.c,
expr.c, java-except.h,
java-tree.h, javaop.def,
jcf-parse.c, jcf-write.c,
jv-scan.c, jvgenmain.c,
jvspec.c, keyword.gperf,
keyword.h, lang-options.h,
lang-specs.h, lang.c, lex.c,
lex.h, mangle.c, mangle_name.c,
parse-scan.y, parse.h, parse.y,
typeck.c, verify.c, xref.c,
xref.h: Replace "GNU CC" with
"GCC" in the copyright header.
* check-init.c, gjavah.c, javaop.h,
jcf-depend.c, jcf-dump.c, jcf-io.c,
jcf-path.c, jcf-reader.c, jcf.h,
zextract.c, zipfile.h: These files are
"part of GCC". Also say "GCC" not "GNU CC".
From-SVN: r60747
2003-01-01 15:10:03 +00:00
Mark Mitchell
239b7deaef
gjavah.c (print_name_for_stub_or_jni): Adjust call to print_cxx_classname.
...
* gjavah.c (print_name_for_stub_or_jni): Adjust call to
print_cxx_classname.
(print_cxx_classname): Add add_scope parameter.
(print_class_decls): Do not emit a semicolon after the extern
"Java" block.
(process_file): Adjust calls to print_cxx_classname.
From-SVN: r60555
2002-12-28 06:29:24 +00:00
Zack Weinberg
4977bab6ed
Merge basic-improvements-branch to trunk
...
From-SVN: r60174
2002-12-16 18:23:00 +00:00
Jens-Michael Hoffmann
a92cb0c3d3
buffer.c: Remove unnecessary casts.
...
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de>
* buffer.c: Remove unnecessary casts.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* gjavah.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* verify.c: Likewise.
From-SVN: r59224
2002-11-18 15:46:34 +00:00
Tom Tromey
5bd717f157
gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.
...
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in
a JNI header.
From-SVN: r58867
2002-11-06 22:10:30 +00:00
Tom Tromey
0d3911c904
re PR java/8296 (gcjh generates incorrect JNI header)
...
* gjavah.c (decode_signature_piece): In JNI mode, print
`jobjectArray' when array depth is nonzero.
Fixes PR java/8296.
From-SVN: r58474
2002-10-23 22:47:31 +00:00
Zack Weinberg
36624850a4
system.h (GCCBUGURL): Delete.
...
* system.h (GCCBUGURL): Delete.
* version.c (bug_report_url): New. Add commentary about
modifying both these strings in modified distributions.
* version.h: Declare bug_report_url.
* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
From-SVN: r57932
2002-10-08 17:27:39 +00:00
Kazu Hirata
ee142fe7a8
ChangeLog: Follow spelling conventions.
...
* ChangeLog: Follow spelling conventions.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* java-tree.h: Likewise.
* jcf-dump.c: Likewise.
* jcf-parse.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* mangle.c: Likewise.
* parse.y: Likewise.
From-SVN: r57378
2002-09-21 02:19:44 +00:00
Bryce McKinlay
64e681975f
gjavah.c (throwable_p): Accept argument as either a classname or signature fragment.
...
* gjavah.c (throwable_p): Accept argument as either a classname or
signature fragment. Create null-terminated classname string for super
when calling itself recursively.
(decode_signature_piece): Skip first character from class name
signature when calling throwable_p.
From-SVN: r54427
2002-06-10 04:47:36 +01:00
Mark Mitchell
a15135c91a
configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort.
...
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and
alphasort.
* config.in: Regenerated.
* configure: Regenerated.
From-SVN: r53633
2002-05-19 16:25:51 +00:00
Tom Tromey
5643bb97e4
* gjavah.c (throwable_p): Use xstrdup, not strdup.
...
From-SVN: r53279
2002-05-08 04:51:50 +00:00
Tom Tromey
6b9b5de22a
re PR java/1200 (gcjh -jni doesn't respect class hierarchy)
...
Fix for PR java/1200:
* gjavah.c (throwable_p): New function.
(decode_signature_piece): Use it. A `WeakReference' isn't the
same as a `jweak'.
Include hashtab.h.
(gcjh_streq): New function.
From-SVN: r53275
2002-05-08 01:41:41 +00:00