Tom Tromey
8a9220959f
natConstructor.cc (newInstance): Use _Jv_CallAnyMethodA.
...
* java/lang/reflect/natConstructor.cc (newInstance): Use
_Jv_CallAnyMethodA.
* include/jvm.h: Declare _Jv_CallAnyMethodA.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
Include <jni.h>.
(COPY): Removed.
(invoke): Use _Jv_CallAnyMethodA.
(VAL): Redefined.
* java/lang/Class.h (Class): Declare JvGetFirstStaticField,
JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
functions.
(struct _Jv_Method): Added getNextMethod method.
(JvNumMethods): New function.
(JvGetFirstMethod): Likewise.
* gcj/field.h (JvGetFirstStaticField): New function.
(JvNumStaticFields): Likewise.
(getNextField): Renamed from getNextInstanceField.
(struct _Jv_Field): New method getClass.
* jni.cc: Wrote many new functions.
* include/jni.h (JNI_TRUE): Define.
(JNI_FALSE): Likewise.
(jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
jcharArray, jfloatArray, jdoubleArray): New typedefs.
(jfieldID, jmethodID): Likewise.
(JNI_COMMIT, JNI_ABORT): New defines.
(JNINativeMethod): New struct.
(struct JNINativeInterface): Correctly declared more entries.
(class _Jv_JNIEnv): Added `ex' member.
(JNI_VERSION_1_1): New define.
(JNI_VERSION_1_2): Likewise.
* boehm.cc (_Jv_MarkObj): Use getNextField, not
getNextInstanceField.
From-SVN: r31553
2000-01-21 23:50:31 +00:00
Tom Tromey
24823dcf49
* libjava.compile/BlankFinal.java: New file.
...
From-SVN: r31552
2000-01-21 21:12:47 +00:00
Kaveh Ghazi
0a06884142
Fix typo in ChangeLog
...
From-SVN: r31551
2000-01-21 20:59:01 +00:00
Kaveh R. Ghazi
df32d2ce42
buffer.h: PROTO -> PARAMS.
...
* buffer.h: PROTO -> PARAMS.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* convert.h: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* java-except.h: Likewise.
* java-tree.h: Likewise.
* jcf-depend.c: Likewise.
* jcf-dump.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jcf-reader.c: Likewise.
* jcf-write.c: Likewise.
* jcf.h: Likewise.
* jv-scan.c: Likewise.
* jvgenmain.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* lex.h: Likewise.
* parse-scan.y: Likewise.
* parse.h: Likewise.
* parse.y: Likewise.
* typeck.c: Likewise.
* verify.c: Likewise.
* xref.c: Likewise.
* xref.h: Likewise.
* zextract.c: Likewise.
* zipfile.h: Likewise.
From-SVN: r31550
2000-01-21 20:57:00 +00:00
Jakub Jelinek
7652adb5c6
sparc.md (movsi_pic_label_ref): Avoid creating new pseudos if expanded after first flow.
...
* config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
pseudos if expanded after first flow.
(movdi_pic_label_ref): Likewise.
From-SVN: r31549
2000-01-21 21:49:33 +01:00
Joern Rennecke
57e9826105
Typo fix.
...
From-SVN: r31548
2000-01-21 10:36:05 +00:00
Jeff Law
fb0d0f72c6
Daily bump.
...
From-SVN: r31547
2000-01-21 01:45:07 -07:00
Richard Henderson
7c22ee2b18
* jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
...
From-SVN: r31546
2000-01-20 14:08:29 -08:00
Jeffrey A Law
7e7cf28ad2
* gcc.c-torture/execute/20000120-2.c: New test.
...
From-SVN: r31545
2000-01-20 12:45:39 -07:00
Jeffrey A Law
33f6849b91
* gcc.c-torture/execute/20000120-1.c: New test.
...
From-SVN: r31544
2000-01-20 12:35:29 -07:00
Zack Weinberg
81f5ec6d50
Fix typo in last commit
...
From-SVN: r31543
2000-01-20 18:28:37 +00:00
Zack Weinberg
52c207e293
Makefile.in (fixinc.sh): Depend on specs.
...
* Makefile.in (fixinc.sh): Depend on specs.
* fixinc/Makefile.in: Add rule to create machname.h.
(fixlib.o): Depend on machname.h.
* fixinc/fixtests.c (machine_name): New test.
* fixinc/fixfixes.c (machine_name): New fix.
* fixinc/fixlib.c (mn_get_regexps): New helper function for
the machine_name test and fix.
* fixinc/fixlib.h: Prototype it.
* fixinc/inclhack.def (machine_name): Use the C test and fix.
* fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
* gcc.c (do_spec_1) [case P]: Take care not to create
identifiers with three leading or trailing underscores.
* fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
(fixincl): Don't specify libraries twice on link line.
(gnu-regex.o): Remove special rule.
* fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
defined by config.h. Do not define _REGEX_RE_COMP.
(regcomp): Allocate and initialize a fastmap.
* fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
From-SVN: r31542
2000-01-20 18:25:12 +00:00
Brad Lucier
d3de1cf7f0
* Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
...
From-SVN: r31540
2000-01-20 09:34:26 -08:00
Tom Tromey
0b9309b6e4
resolve.cc (StringClass): Removed.
...
* resolve.cc (StringClass): Removed.
* defineclass.cc (StringClass): Removed.
From-SVN: r31539
2000-01-20 17:32:26 +00:00
Nathan Sidwell
f08dda39ed
Remap dynamic cast hint values to be consistent across ABIs.
...
* search.c (dynamic_cast_base_recurse): Remap generated value.
(get_dynamic_cast_base_type): Adjust documentation.
* tinfo.h (__user_type_info::dyncast): Likewise.
(__user_type_info::find_public_subobj): Remap BOFF meaning.
* tinfo.cc (__si_type_info::do_dyncast): Remap BOFF meaning.
(__class_type_info::do_dyncast): Likewise.
(__class_type_info::do_find_public_subobj): Likewise.
* tinfo2.cc (__dynamic_cast): Remap BOFF parameter.
From-SVN: r31538
2000-01-20 11:05:19 +00:00
Gabriel Dos Reis
f621dedc05
typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
...
2000-01-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
* typeck2.c (incomplete_type_error): Restore previous cp_error and
cp_error_at call sequence.
From-SVN: r31537
2000-01-20 09:24:01 +00:00
Jeff Law
66af917072
Daily bump.
...
From-SVN: r31536
2000-01-20 01:45:06 -07:00
Brad Lucier
2984dacf54
class.c (dump_class_hierarchy): Make format agree with argument; cast pointer to unsigned long and print with %lx.
...
* class.c (dump_class_hierarchy): Make format agree with argument;
cast pointer to unsigned long and print with %lx.
From-SVN: r31535
2000-01-20 08:12:26 +00:00
Richard Henderson
65f6fa241e
flow.c (propagate_block): Replace FIRST, LAST and BNUM arguments with BB.
...
* flow.c (propagate_block): Replace FIRST, LAST and BNUM
arguments with BB. Update all callers. Tidy line wrapping.
From-SVN: r31534
2000-01-19 19:59:57 -08:00
Clinton Popetz
ba52f355e3
emit-rtl.c (try_split): Return last_insn if we split the last_insn.
...
* emit-rtl.c (try_split): Return last_insn if we split the
last_insn.
From-SVN: r31530
2000-01-19 19:41:52 -05:00
Jan Hubicka
0903fcab88
i386-protos.h (ix86_compute_frame_size): Remove prototype.
...
* i386-protos.h (ix86_compute_frame_size): Remove prototype.
(ix86_initial_elimination_offset): Declare.
* i386.c (ix86_nsaved_regs): Break out from ...
(ix86_can_use_return_insn_p): ... here.
(ix86_emit_save_regs): Break out from ...
(ix86_expand_prologue): ... here.
(ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
out from ...
(ix86_expand_epilogue): ... here.
(ix86_compute_frame_size): Make static, add prototype.
(ix86_initial_elimination_offset): Break out from ...
* i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
From-SVN: r31529
2000-01-20 00:05:32 +00:00
Kaveh Ghazi
e774613011
more copyright nits
...
From-SVN: r31527
2000-01-19 23:47:13 +00:00
Kaveh Ghazi
857dde3994
update copyrights in config dir.
...
From-SVN: r31526
2000-01-19 23:44:14 +00:00
Kaveh R. Ghazi
0bee0290f0
recog.h (OUT_FCN): Delete.
...
* recog.h (OUT_FCN): Delete.
* vax.md: Call `get_insn_template' instead of OUT_FCN.
From-SVN: r31524
2000-01-19 23:14:17 +00:00
Bryce McKinlay
dda482c1e4
Updated NEWS file.
...
From-SVN: r31522
2000-01-19 23:08:05 +00:00
Kaveh R. Ghazi
f84c201879
cppalloc.c: PROTO -> PARAMS.
...
* cppalloc.c: PROTO -> PARAMS.
* cpperror.c: Likewise.
* cppfiles.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise.
From-SVN: r31521
2000-01-19 22:52:43 +00:00
Kaveh R. Ghazi
299d06ad4a
arm-protos.h: PROTO -> PARAMS.
...
* config/arm/arm-protos.h: PROTO -> PARAMS.
* config/arm/arm.c: Likewise.
* config/c4x/c4x.c: Likewise.
* config/fr30/fr30-protos.h: Likewise.
* config/nextstep.c: Likewise.
* config/pa/pa.c: Likewise.
* config/pj/pj.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/v850/v850-protos.h: Likewise.
* config/v850/v850.c: Likewise.
From-SVN: r31520
2000-01-19 22:39:31 +00:00
Kaveh R. Ghazi
f50ec635fc
i370-protos.h: New file.
...
* i370-protos.h: New file.
* i370.c: Include tm_p.h. Fix compile time warnings.
* i370.h: Move prototypes to i370-protos.h. Fix compile time
warnings.
* i370.md: Likewise.
From-SVN: r31519
2000-01-19 22:25:21 +00:00
Kaveh R. Ghazi
b42b4d2c33
real.c (enan, [...]): Wrap in NANS.
...
* real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
(target_isinf, target_isnan, eisnan): Mark parameter with
ATTRIBUTE_UNUSED.
(eiisinf): Wrap in INFINITY.
(etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
(ibmtoe): Remove unused variable `rndsav'.
From-SVN: r31518
2000-01-19 22:21:22 +00:00
J"orn Rennecke
10db12e0c6
Back out prepare_scc_operands changes from this afternoon.
...
From-SVN: r31515
2000-01-19 21:57:38 +00:00
J"orn Rennecke
21d17d9c84
* sh.c (prepare_scc_operands): Add EQ case.
...
From-SVN: r31514
2000-01-19 21:49:21 +00:00
J"orn Rennecke
229f17cff5
sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
...
* sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
(GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
From-SVN: r31513
2000-01-19 21:47:13 +00:00
Zack Weinberg
5c0d5b94d1
Makefile.in: Correct dependencies of fixincl and fixincl.o.
...
* fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
* fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
(fix_char_macro_defines, fix_char_macro_uses): New functions.
* fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
Recognize Emacs mode markers also.
* fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
C++ comments in C++ headers. Call is_cxx_header only if
necessary.
* fixinc/inclhack.def (avoid_bool): Add select for the problem and
bypass for ncurses.
(bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
(io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
... these, which use the new C fixes.
(math_exception): Escape literal '+' in bypass expression.
* fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
Regenerate.
From-SVN: r31512
2000-01-19 21:41:04 +00:00
Alexandre Petit-Bianco
5170877a05
anon.java, [...]: New files.
...
2000-01-19 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.lang/anon.java, libjava.lang/anon2.java,
libjava.lang/anon3.java, libjava.lang/anon4.java,
libjava.lang/direct_read.java, libjava.lang/direct_write.java,
libjava.lang/indirect.java, libjava.lang/indirect_read.java,
libjava.lang/indirect_write.java, libjava.lang/inner1.java,
libjava.lang/inner2.java, libjava.lang/inner3.java,
libjava.lang/inner4.java, libjava.lang/inner_array.java,
libjava.lang/multiple_finit.java,
libjava.lang/private_direct_read.java,
libjava.lang/private_direct_write.java,
libjava.lang/private_indirect_read.java,
libjava.lang/private_indirect_write.java,
libjava.lang/search_outer.java, libjava.lang/tmi.java,
libjava.lang/tp.java, libjava.lang/update_outer.java: New files.
From-SVN: r31511
2000-01-19 21:38:43 +00:00
Tom Tromey
74436afa42
* interpret.cc (PC_REGISTER_ASM): Removed.
...
From-SVN: r31510
2000-01-19 21:08:03 +00:00
Geoff Keating
0d3ffb5ae4
rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs inside the MEM.
...
* rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
inside the MEM.
From-SVN: r31509
2000-01-19 20:21:08 +00:00
Michael Hayes
7845896296
loop.c (loop_optimize): Allocate loop_info structure for each loop prior to calling scan_loop.
...
* loop.c (loop_optimize): Allocate loop_info structure for each loop
prior to calling scan_loop.
From-SVN: r31508
2000-01-19 20:10:00 +00:00
J"orn Rennecke
eda44c7832
sh.c (prepare_scc_operands): Abort if no compare insn is available.
...
* sh.c (prepare_scc_operands): Abort if no compare insn is available.
(find_barrier, gen_block_redirect, split_branches): Fix indentation.
(calc_live_regs): Likewise.
From-SVN: r31507
2000-01-19 20:00:09 +00:00
J"orn Rennecke
d64264ff53
* sh.md (fpu_single, fp_mode): New attributes.
...
From-SVN: r31506
2000-01-19 19:18:20 +00:00
Tom Tromey
db70b4bd91
natThrowable.cc: Don't use `#pragma implementation'.
...
* java/lang/natThrowable.cc: Don't use `#pragma implementation'.
From Bryce McKinlay.
From-SVN: r31505
2000-01-19 18:59:27 +00:00
Tom Tromey
7c734b1758
* All files: Updated copyright to reflect Cygnus purchase.
...
From-SVN: r31504
2000-01-19 18:39:27 +00:00
Tom Tromey
ec39b14af2
* libjava.compile/inner_pub.java: New file.
...
From-SVN: r31503
2000-01-19 17:28:32 +00:00
Gabriel Dos Reis
7e4d789838
decl2.c (lang_decode_option): Set default line-wrap length to 72.
...
2000-01-19 Gabriel Dos Reis <gdr@codesourcery>
* decl2.c (lang_decode_option): Set default line-wrap length to 72.
* typeck.c (composite_pointer_type, common_type,
comp_target_parms, c_sizeof, expr_sizeof, build_array_ref,
build_function_call_real, convert_arguments,
build_binary_op_nodefault, pointer_int_sum, pointer_diff,
build_unary_op, mark_addressable, build_compound_expr,
build_static_cast, build_reinterpret_cast, build_const_cast,
build_c_cast, build_modify_expr, get_delta_difference,
build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
'ISO C++'. Fusion consecutive calls to diagnotic message routines
into a single one.
* typeck2.c (readonly_error, abstract_virtuals_error,
process_init_constructor, check_for_new_type): Likewise.
From-SVN: r31502
2000-01-19 11:34:03 +00:00
Michael Hayes
cfef86e454
loop.c (current_loop_info): Renamed from loop_info_data and changed to a pointer.
...
* loop.c (current_loop_info): Renamed from loop_info_data
and changed to a pointer.
(loop_optimize): Allocate loop_info structure for each loop
and initialise to zero.
(scan_loop): Set current_loop_info.
* unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
on iteration_var.
From-SVN: r31501
2000-01-19 11:19:20 +00:00
Michael Hayes
e4b68cedfd
loop.c
...
From-SVN: r31500
2000-01-19 11:17:13 +00:00
Richard Henderson
d29c259b71
stupid.c: Die die die.
...
* stupid.c: Die die die.
* Makefile.in (OBJS): Remove stupid.o.
(stupid.o): Likewise.
* except.c (emit_eh_context): Don't emit USEs for stupid.
* explow.c (probe_stack_range): Likewise.
* flags.h (obey_regdecls): Remove.
* flow.c (find_basic_blocks): Don't run try_merge_blocks
when not optimizing.
(life_analysis): Limit data collection when not optimizing.
(mark_regs_live_at_end): Always mark the return value registers.
(mark_used_regs): Remove dummy RETURN case.
(print_rtl_with_bb): Don't consult obey_regdecls.
* function.c (use_variable, use_variable_after): Remove.
(assign_parms): Consult optimize not obey_regdecls.
(expand_function_start): Don't emit USEs for stupid.
(expand_function_end): Likewise.
* global.c (build_insn_chain): Export.
* integrate.c (expand_inline_function): Kill return-value USE
handling code.
* jump.c (jump_optimize_1): Do simple jump optimizations and
dead code elimination.
(calculate_can_reach_end): Remove check_deleted argument.
(delete_insn): Patch out insns even when not optimizing.
* local-alloc.c (block_alloc): Don't do tying when not optimizing.
* rtl.h (use_variable, use_variable_after): Remove declarations.
(build_insn_chain): Declare.
* stmt.c (expand_value_return): Don't emit USEs for stupid.
(expand_end_bindings): Likewise.
(expand_decl): Likewise. Consult optimize not obey_regdecls.
* toplev.c (obey_regdecls): Remove.
(rest_of_compilation): Don't set it. Kill stupid in favour of
flow1, local-alloc, and reload.
(main): Don't set obey_regdecls.
* config/nextstep.c (handle_pragma): Likewise.
* alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
* arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
From-SVN: r31499
2000-01-19 01:42:11 -08:00
Mark Mitchell
301e21af2c
tree.c (bot_manip): Set DECL_CONTEXT for newly created VAR_DECLs.
...
* tree.c (bot_manip): Set DECL_CONTEXT for newly created
VAR_DECLs.
From-SVN: r31498
2000-01-19 09:04:41 +00:00
Jeff Law
1455913a0b
Daily bump.
...
From-SVN: r31497
2000-01-19 01:45:07 -07:00
Bryce McKinlay
f7ccaa38a7
configure: Rebuilt.
...
2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
* configure: Rebuilt.
* configure.in: Recognize --disable-interpreter.
From-SVN: r31496
2000-01-19 05:06:03 +00:00
Kaveh R. Ghazi
f6da8bc3ee
alpha-protos.h: PROTO -> PARAMS.
...
* alpha-protos.h: PROTO -> PARAMS.
* alpha.c: Likewise.
* elf.h: Likewise.
* h8300.c: Likewise.
* i386-protos.h: Likewise.
* i386.c: Likewise.
* m32r-protos.h: Likewise.
* m32r.c: Likewise.
* mips.c: Likewise.
* mips.md: Likewise.
* gmon-sol2.c: Likewise.
* sparc.c: Likewise.
From-SVN: r31495
2000-01-18 23:44:36 +00:00