Commit Graph

25844 Commits

Author SHA1 Message Date
Nick Clifton
fe5a581031 oops - typo in previous delta
From-SVN: r31251
2000-01-05 23:31:29 +00:00
Nick Clifton
a56e7c0854 Add support for generating unique sections for unitialised data.
From-SVN: r31250
2000-01-05 23:26:06 +00:00
Tom Tromey
d6ab24c514 * java/lang/natClass.cc: Include <gcj/method.h>.
From-SVN: r31249
2000-01-05 22:52:54 +00:00
Michael Hayes
3f2d7f37da t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF, SI, or DI.
* config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
	SI, or DI.

From-SVN: r31248
2000-01-05 22:43:53 +00:00
Michael Hayes
f42850b92b c4x.md (udivqi3, divqi3): Delete.
* config/c4x/c4x.md(udivqi3, divqi3): Delete.
	(umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
	(*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
	(*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
	(*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.

	* c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.

From-SVN: r31247
2000-01-05 22:38:12 +00:00
Tom Tromey
1258cadadc Class.h (_getMethods): Correctly declare as private, not public.
* java/lang/Class.h (_getMethods): Correctly declare as private,
	not public.

From-SVN: r31246
2000-01-05 22:29:27 +00:00
Tom Tromey
6f2b93eb2f Class.h (_getMethods): Declare.
* java/lang/Class.h (_getMethods): Declare.
	* java/lang/Class.java (_getMethods): Declare.
	* java/lang/natClass.cc (getDeclaringClass): Always return NULL.
	(getDeclaredClasses): Always return empty array.
	(_getMethods): New method.
	(getMethods): Wrote.
	(getDeclaredMethod): Return `rmethod'.
	(finit_name): New global.
	(getDeclaredMethods): Check for finit_name.
	(_getMethods): Likewise.
	(getMethod): Only return public methods.

From-SVN: r31245
2000-01-05 22:22:10 +00:00
Zack Weinberg
cb3ca04ee1 c-decl.c (finish_enum): Simplify code to determine minimum and maximum values of the enum...
2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>

	* c-decl.c (finish_enum): Simplify code to determine minimum and
	maximum values of the enum, and calculate the type.  Remove check
	for FUNCTION_DECLs in the values list, which cannot happen.  Replace
	the DECL_INITIAL of each enumeration constant with a copy converted
	to the enumeration type.  When updating variant types, don't bother
	updating the type itself.

	* c-typeck.c (build_binary_op): Simplify conditional expressions
	when weeding out spurious signed-unsigned warnings.  Add new
	spurious warning category: if the unsigned quantity is an enum
	and its maximum value fits in signed_type(result_type).  Update
	commentary.
	(build_conditional_expr): Warn here if one alternative is signed
	and the other is unsigned.

From-SVN: r31244
2000-01-05 19:26:23 +00:00
Nick Clifton
28b487d7fe Remove extraneous comments
From-SVN: r31243
2000-01-05 17:45:49 +00:00
Tom Tromey
5dab1948f6 natMethod.cc (get_ffi_type): Test size of jboolean and select correct ffi type on that basis.
* java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
	jboolean and select correct ffi type on that basis.
	(_Jv_CallNonvirtualMethodA): Handle `void' return type.
	Constructor call always has `void' return type.

From-SVN: r31242
2000-01-05 17:23:34 +00:00
Tom Tromey
95c6cc0ab5 Class.h (getSignature): Updated.
* java/lang/Class.h (getSignature): Updated.
	* java/lang/Class.java (getSignature): Updated.
	* java/lang/natClass.cc (getSignature): Added `is_constructor'
	argument.
	(getConstructor): Ensure constructor is public.
	(_getConstructors): Check for public-ness of constructor when
	`declared' is false, not when it is true.

From-SVN: r31241
2000-01-05 16:35:20 +00:00
Bernd Schmidt
c0029be5f7 Incorrect code gen fix in reload
From-SVN: r31240
2000-01-05 12:41:07 +00:00
Nathan Sidwell
cc6ecc6afd * g++.old-deja/g++.ns/koenig8.C: New test.
From-SVN: r31239
2000-01-05 11:48:19 +00:00
Nathan Sidwell
f0b9bc6c88 decl2.c (lookup_arg_dependent): Deal with FNS not being a FUNCTION_DECL.
* decl2.c (lookup_arg_dependent): Deal with FNS not being a
	FUNCTION_DECL.

From-SVN: r31238
2000-01-05 11:45:33 +00:00
Nathan Sidwell
ac8cd718e6 * g++.old-deja/g++.other/cast4.C: New test.
From-SVN: r31237
2000-01-05 10:11:25 +00:00
Nathan Sidwell
c0d2229e90 typeck.c (build_static_cast): Don't strip target qualifiers when casting from a class.
* typeck.c (build_static_cast): Don't strip target qualifiers
	when casting from a class.

From-SVN: r31236
2000-01-05 10:10:53 +00:00
Jeffrey A Law
5ed75fe4f4 * gcc.c-torture/compile/20000105-2.c: New test.
From-SVN: r31235
2000-01-05 02:01:37 -07:00
Jeff Law
9024f50b24 Daily bump.
From-SVN: r31234
2000-01-05 01:45:07 -07:00
Jason Merrill
dae3a2d3f4 fix typo
From-SVN: r31233
2000-01-05 03:23:15 -05:00
Jeffrey A Law
25a8e1be39 * gcc.c-torture/compile/20000105-1.c: New test.
From-SVN: r31232
2000-01-05 00:27:01 -07:00
Joel Sherrill
6e5138f0f4 configure.in (m68*-*-rtemscoff*): New target, formal name for old m68*-*-rtems*.
* configure.in (m68*-*-rtemscoff*): New target, formal name for
        old m68*-*-rtems*.
        (m68*-*-rtemself*): New target.
        (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
        (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
        (sparc*-*-rtemself*): New target.
        (sparc*-*-rtems*): Now elf not a.out.
        * config/i386/rtems.h: Include config/rtems.h.
        * config/i386/rtemself.h: Include config/rtems.h.
        * config/i960/rtems.h: Include config/rtems.h.
        * config/m68k/rtems.h: Include config/rtems.h.
        * config/m68k/rtemself.h: Include config/rtems.h.
        * config/mips/rtems64.h: Include config/rtems.h.
        * config/pa/rtems.h: Include config/rtems.h.
        * config/rs6000/rtems.h: Include config/rtems.h.
        * config/sh/rtems.h: Include config/rtems.h.
        * config/sh/rtemself.h: Include config/rtems.h.
        * config/sparc/rtems.h: Include config/rtems.h.
        * config/sparc/rtemself.h: Include config/rtems.h

From-SVN: r31231
2000-01-05 00:10:35 -07:00
Denis Chertykov
a30caf5c2c final.c (shorten_branches): Correctly compute length of asms without operands.
* final.c (shorten_branches): Correctly compute length of
        asms without operands.

From-SVN: r31230
2000-01-05 00:01:00 -07:00
Jeff Law
dd1bd86318 cse.c (cse_insn): Missing cast added.
* cse.c (cse_insn): Missing cast added.
	* loop.c (loop_reg_used_before_p): Ditto.
	* gcse.c (Pre_gcse, hoist_code): Ditto.
	* varasm.c (decode_rtx_const): Ditto.
	* except.c (push_ehqueue): Ditto.
	* cccp.c (index0): Ditto.
	* toplev.c (main): Useless `&' removed before function name.

From-SVN: r31229
2000-01-04 23:55:02 -07:00
Jeff Law
e9b8009ef8 Copyright date
From-SVN: r31228
2000-01-04 23:32:16 -07:00
Jeff Law
3ed0657387 Update copyright dates.
From-SVN: r31227
2000-01-04 23:30:24 -07:00
Jeff Law
1808578bc9 Update copyright date.
From-SVN: r31226
2000-01-04 23:29:24 -07:00
Steve Chamberlain
1b992148d7 configure.in: Add pj target.
* configure.in: Add pj target.
        * configure: Regenerate.
        * config/pj: New directory.
        * config/pj/lib1funcs.S: New file.
        * config/pj/linux.h: New file.
        * config/pj/pj.c: New file.
        * config/pj/pj.md: New file.
        * config/pj/pjl.h: New file.
        * config/pj/t-pj: New file.
        * config/pj/xm-pj.h: New file

From-SVN: r31225
2000-01-04 22:57:17 -07:00
Jeffrey A Law
67e1e279c3 toplev.c (rest_of_compilation): Run shorten-branches before reg-stack for now.
* toplev.c (rest_of_compilation): Run shorten-branches before
        reg-stack for now.

From-SVN: r31224
2000-01-04 22:32:27 -07:00
Michael Hayes
bc46716b04 c4x.h (IS_XXX_REG, [...]): Swap behaviour of macros so that they're consistent with their names.
* config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
	macros so that they're consistent with their names.
	* config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
	* config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.

From-SVN: r31221
2000-01-04 23:57:40 +00:00
Tom Tromey
d79229bd58 * Makefile.in: Rebuilt with newer automake.
From-SVN: r31220
2000-01-04 23:06:17 +00:00
Warren Levy
730ecdd3c3 natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment.
* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
	comment.
	(receive): Set the sender's address in the DatagramPacket.

From-SVN: r31218
2000-01-04 22:41:58 +00:00
Michael Hayes
e46fbd72b8 c4x.md (*addqi3_noclobber_reload): Ensure that CC never modified inadvertently.
* config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
	modified inadvertently.

From-SVN: r31217
2000-01-04 22:12:59 +00:00
Joel Sherrill
966f8bfd16 Applied Joel Sherrill's patch to add v850-rtems target
From-SVN: r31216
2000-01-04 22:02:43 +00:00
Mumit Khan
f22a97d238 gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>

	* gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
	(__gthread_key_create): Likewise.
 	(__gthread_key_dtor):  Likewise.
	(__gthread_once): Fix logic.
	(__gthread_key_delete): Cast away constness.

	* i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
	* invoke.texi: Document.
	* i386/mingw32.h (CPP_SPEC): Use.
	(LIBGCC_SPEC): Likewise.
	* i386/crtdll.h (LIBGCC_SPEC): Likewise.

From-SVN: r31215
2000-01-04 21:11:17 +00:00
Mumit Khan
aeecce429e pexecute.c: Conditionally include string.h.
2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>

	* pexecute.c: Conditionally include string.h.
	(fix_argv): Handle embedded whitespace in args for Mingw32.

From-SVN: r31214
2000-01-04 21:09:51 +00:00
David Edelsohn
6be57663c9 sysv4.h (ASM_OUTPUT_DEF): Undefine.
* rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
	(HANDLE_PRAGMA_PACK): Undefine.
	(SLOW_UNALIGNED_ACCESS): Define.

From-SVN: r31213
2000-01-04 15:29:31 -05:00
David Edelsohn
5fad8ebf24 - Document SLOW_UNALIGNED_ACCESS change.
- Update copyright.

From-SVN: r31212
2000-01-04 15:10:19 -05:00
David Edelsohn
e1565e6588 expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters to default definition.
* expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
	to default definition.
	(store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
	(store_fixed_bit_field): Call macro with word_mode and alignment.
	(extract_bit_field): Call macro with relevant mode and alignment.
	* expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
	to default definition.
	(move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
	and alignment.
	(move_by_pieces_ninsns): Likewise.
	(clear_by_pieces): Likewise.
	(emit_push_insn): Likewise.
	(store_field): Call macro with relevant mode and alignment.
	(expand_expr): Likewise.
	(expand_expr_unaligned): Likewise.

	* rs6000.h (HANDLE_PRAGMA_PACK): Define.
	(SLOW_UNALIGNED_ACCESS): Define.
	(CASE_VECTOR_MODE): Always use 32-bit offsets.
	(ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
	(EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
	(toc_section): Likewise and .toc pseudo-op.
	(ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
	64-bit mode.
	(TEXT_SECTION_ASM_OP): Likewise.
	(ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
	32-bit offsets.

	* a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
	* alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
	* arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
	* gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
	* fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.

From-SVN: r31211
2000-01-04 15:09:19 -05:00
Jeffrey A Law
399b9016a7 * regclass.c: Revert my Jan 4 change to loop cost computation.
From-SVN: r31210
2000-01-04 11:46:46 -07:00
Jan Hubicka
6461530210 regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing compilation.
* regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
	compilation.

From-SVN: r31209
2000-01-04 18:26:39 +00:00
Stan Cox
7f103e8835 haifa-sched.c (build_control_flow): Change unreachable simple loop test to check if...
2000-01-04  Stan Cox  <scox@cygnus.com>
	* haifa-sched.c (build_control_flow): Change unreachable simple
	loop test to check if current block has only one predecessor.
	(find_rgns): Initialize degree.  Use dest as degree index, not src.

From-SVN: r31208
2000-01-04 17:19:41 +00:00
Kaveh R. Ghazi
a544cfd201 builtins.c (expand_builtin_strlen): Initialize variable `icode'.
* builtins.c (expand_builtin_strlen): Initialize variable `icode'.

	* calls.c (expand_call): Likewise for
	`old_stack_arg_under_construction'.

	* cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.

	* function.c (pad_to_arg_alignment): Likewise for `save_var' and
	`save_constant'.

	* gcc.c (execute): Likewise for `ut' and `st'.

	* genattrtab.c (attr_rtx): Likewise for `rt_val'.

	* genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.

	* jump.c (jump_optimize_1): Likewise for `temp2'.

	* local-alloc.c (block_alloc): Likewise for `r1'.

	* loop.c (recombine_givs): Likewise for `life_start' and `life_end'.

	* reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
	(subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.

	* regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
	and `set2'.

	* reload.c (find_reloads): Likewise for `goal_alternative_number'
	and `goal_earlyclobber'.

	* scan-decls.c (scan_decls): Likewise for `prev_id_end'.

	* sdbout.c (sdbout_one_type): Likewise for `member_scl'.

	* stupid.c (stupid_life_analysis): Likewise for `chain'.

	* unroll.c (copy_loop_body): Likewise for `copy'.

	* varasm.c (output_constructor): Likewise for `byte'.

ch:
	* actions.c (update_else_range_for_int_const): Initialize
	variables `lowval' and `highval'.
	(update_else_range_for_range): Likewise for `low_range_val' and
	`high_range_val'.

cp:
	* class.c (warn_hidden): Initialize variable `fndecl'.

From-SVN: r31207
2000-01-04 16:29:41 +00:00
Kaveh Ghazi
cfa770517e Update copyright
From-SVN: r31206
2000-01-04 16:11:32 +00:00
Kaveh R. Ghazi
1eaf7d9c9b configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.
* configure.in (ac_libiberty_warn_cflags): Turn on warnings if
	we're using gcc.

	* Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@

From-SVN: r31205
2000-01-04 16:09:57 +00:00
Kaveh R. Ghazi
3f552d62f4 array1.C: Modify explicit external libc references to printf & atoi to conform to ANSI...
* g++.old-deja/g++.brendan/array1.C: Modify explicit external libc
	references to printf & atoi to conform to ANSI standard.
	* g++.old-deja/g++.brendan/code-gen1.C: Likewise.
	* g++.old-deja/g++.brendan/code-gen2.C: Likewise.
	* g++.old-deja/g++.brendan/code-gen3.C: Likewise.
	* g++.old-deja/g++.brendan/code-gen4.C: Likewise.
	* g++.old-deja/g++.brendan/code-gen6.C: Likewise.
	* g++.old-deja/g++.brendan/complex1.C: Likewise.
	* g++.old-deja/g++.brendan/copy1.C: Likewise.
	* g++.old-deja/g++.brendan/copy2.C: Likewise.
	* g++.old-deja/g++.brendan/copy3.C: Likewise.
	* g++.old-deja/g++.brendan/copy4.C: Likewise.
	* g++.old-deja/g++.brendan/copy5.C: Likewise.
	* g++.old-deja/g++.brendan/copy6.C: Likewise.
	* g++.old-deja/g++.brendan/copy7.C: Likewise.
	* g++.old-deja/g++.brendan/copy8.C: Likewise.
	* g++.old-deja/g++.brendan/crash11.C: Likewise.
	* g++.old-deja/g++.brendan/crash14.C: Likewise.
	* g++.old-deja/g++.brendan/ctors1.C: Likewise.
	* g++.old-deja/g++.brendan/ctors2.C: Likewise.
	* g++.old-deja/g++.brendan/delete2.C: Likewise.
	* g++.old-deja/g++.brendan/dtors1.C: Likewise.
	* g++.old-deja/g++.brendan/dtors2.C: Likewise.
	* g++.old-deja/g++.brendan/dtors3.C: Likewise.
	* g++.old-deja/g++.brendan/eh1.C: Likewise.
	* g++.old-deja/g++.brendan/groff1.C: Likewise.
	* g++.old-deja/g++.brendan/init3.C: Likewise.
	* g++.old-deja/g++.brendan/misc12.C: Likewise.
	* g++.old-deja/g++.brendan/misc7.C: Likewise.
	* g++.old-deja/g++.brendan/new2.C: Likewise.
	* g++.old-deja/g++.brendan/operators4.C: Likewise.
	* g++.old-deja/g++.brendan/operators5.C: Likewise.
	* g++.old-deja/g++.brendan/overload2.C: Likewise.
	* g++.old-deja/g++.brendan/overload7.C: Likewise.
	* g++.old-deja/g++.brendan/redecl2.C: Likewise.
	* g++.old-deja/g++.brendan/reference1.C: Likewise.
	* g++.old-deja/g++.brendan/sizeof5.C: Likewise.
	* g++.old-deja/g++.brendan/template24.C: Likewise.
	* g++.old-deja/g++.brendan/template3.C: Likewise.
	* g++.old-deja/g++.brendan/vtables1.C: Likewise.
	* g++.old-deja/g++.jason/inline3.C: Likewise.
	* g++.old-deja/g++.jason/opeq.C: Likewise.
	* g++.old-deja/g++.law/arg5.C: Likewise.
	* g++.old-deja/g++.law/arm7.C: Likewise.
	* g++.old-deja/g++.law/ctors11.C: Likewise.
	* g++.old-deja/g++.law/cvt8.C: Likewise.
	* g++.old-deja/g++.law/init9.C: Likewise.
	* g++.old-deja/g++.law/refs4.C: Likewise.
	* g++.old-deja/g++.law/template2.C: Likewise.
	* g++.old-deja/g++.law/visibility24.C: Likewise.
	* g++.old-deja/g++.law/vtable3.C: Likewise.
	* g++.old-deja/g++.mike/asm2.C: Likewise.
	* g++.old-deja/g++.mike/eh1.C: Likewise.
	* g++.old-deja/g++.mike/misc1.C: Likewise.
	* g++.old-deja/g++.mike/misc13.C: Likewise.
	* g++.old-deja/g++.mike/misc14.C: Likewise.
	* g++.old-deja/g++.mike/ns12.C: Likewise.
	* g++.old-deja/g++.mike/p1248.C: Likewise.
	* g++.old-deja/g++.mike/p3708.C: Likewise.
	* g++.old-deja/g++.mike/p3708a.C: Likewise.
	* g++.old-deja/g++.mike/p3708b.C: Likewise.
	* g++.old-deja/g++.mike/p646.C: Likewise.
	* g++.old-deja/g++.mike/p700.C: Likewise.
	* g++.old-deja/g++.mike/p783.C: Likewise.
	* g++.old-deja/g++.mike/p783a.C: Likewise.
	* g++.old-deja/g++.mike/p783b.C: Likewise.
	* g++.old-deja/g++.mike/p786.C: Likewise.
	* g++.old-deja/g++.mike/p789.C: Likewise.
	* g++.old-deja/g++.mike/p789a.C: Likewise.
	* g++.old-deja/g++.mike/p807a.C: Likewise.
	* g++.old-deja/g++.other/delete3.C: Likewise.
	* g++.old-deja/g++.other/dyncast1.C: Likewise.
	* g++.old-deja/g++.other/dyncast2.C: Likewise.
	* g++.old-deja/g++.other/dyncast3.C: Likewise.
	* g++.old-deja/g++.other/empty1.C: Likewise.
	* g++.old-deja/g++.other/temporary1.C: Likewise.
	* g++.old-deja/g++.pt/memtemp14.C: Likewise.
	* g++.old-deja/g++.pt/t16.C: Likewise.
	* g++.old-deja/g++.pt/tiemann2.C: Likewise.

From-SVN: r31204
2000-01-04 15:52:23 +00:00
Jan Hubicka
d7a2940444 i386.c (ix86_expand_move): Allow pushes of memory, offload to memory all FP constants for constant->reg moves.
* i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
	all FP constants for constant->reg moves.
	(ix86_split_to_parts): Try to convert memory address into immediate
	when available in the constant pool.
	* i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
	moves.
	(LEGITIMATE_CONSTANT_P): Return 1.
	* i386.md (pushsf): New splitter to convert constant pool memory
	reference to immediate.
	(mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
	reload.

From-SVN: r31203
2000-01-04 14:44:03 +00:00
Bernd Schmidt
28cefcd2b6 Restrict i386 flag setting shift patterns
From-SVN: r31202
2000-01-04 11:49:01 +00:00
Martin v. Löwis
c8b313e75f * ginclude/stdbool.h: Support compilation as C++.
From-SVN: r31201
2000-01-04 10:12:22 +00:00
Tom Tromey
0f918fea8b [multiple changes]
2000-01-04  Tom Tromey  <tromey@cygnus.com>

	* java/lang/reflect/natConstructor.cc (newInstance): Pass
	declaring class as return_type argument to
	_Jv_CallNonvirtualMethodA.
	* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
	constructor case, create object and use it as `this' argument.
	* java/lang/Class.h (_getConstructors): Declare.
	(_getFields): Declare.
	* java/lang/Class.java (getConstructors): Wrote.
	(_getConstructors): New native method.
	(getDeclaredConstructors): Wrote.
	(_getFields): Declare new native method.
	* java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
	incorrect comment.
	(getMethod): Work correctly when class is primitive.
	(getDeclaredMethods): Likewise.  Compute offset using `method',
	not `mptr'.
	(getDeclaredMethod): Likewise.
	(getConstructor): Wrote.
	(ConstructorClass): New define.
	(getDeclaredConstructor): Wrote.
	(_getConstructors): New method.
	(_getFields): New method.
	(getFields): Wrote.

	* Makefile.in: Rebuilt.
	* Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.

	* prims.cc: Remove `#pragma implementation'.
	* gcj/array.h: Remove `#pragma interface'.

	* prims.cc (_Jv_equaln): New function.
	* java/lang/Class.java (getSignature): Declare.
	* resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
	* java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
	resolve.cc.
	(getSignature): New method.
	(getDeclaredMethod): Wrote.
	(getMethod): Wrote.
	Include StringBuffer.h.
	* java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
	as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
	a friend.
	(getSignature): Declare.
	* include/jvm.h (_Jv_GetTypesFromSignature): Declare.
	(_Jv_equaln): Declare.
	(_Jv_CallNonvirtualMethodA): Declare.
	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Added natConstructor.cc.
	(java/lang/reflect/Constructor.h): New target.
	* java/lang/reflect/natConstructor.cc: New file.
	* java/lang/reflect/Constructor.java (newInstance): Now native.
	(declaringClass): Renamed from decl_class.
	(offset): Renamed from index.
	(getType): New native method.
	(getModifiers): Now native.
	(getParameterTypes): Call getType if required.
	(hashCode): Include hash code from declaring class.
	(modifiers): Removed.
	(toString): Call getType if required.
	* gcj/method.h (_Jv_FromReflectedConstructor): New function.
	* java/lang/reflect/natMethod.cc (hack_call): New method.
	Removed `#if 0' around FFI code.
	Include <gnu/gcj/RawData.h>.
	(invoke): Use _Jv_CallNonvirtualMethodA.  Throw
	IllegalArgumentException when argument object and class disagree.
	(_Jv_GetTypesFromSignature): New function.
	(getType): Use it.
	(ObjectClass): New define.
	(_Jv_CallNonvirtualMethodA): New function.
	* java/lang/reflect/Method.java (hack_trampoline): New method.
	(hack_call): New native method.

1999-12-21  Per Bothner  <per@bothner.com>

	* java/lang/natClass.cc (getDeclaredMethods): Correctly compute
	offset in new Method.

From-SVN: r31199
2000-01-04 08:46:52 +00:00
Jeff Law
00da7781ff Daily bump.
From-SVN: r31198
2000-01-04 01:45:07 -07:00