Commit Graph

25674 Commits

Author SHA1 Message Date
Jeff Law
dc540e4d0f Daily bump.
From-SVN: r31285
2000-01-08 01:45:07 -07:00
Alexandre Petit-Bianco
6f9c87166a expr.c (java_lang_expand_expr): Switch to permanent obstack before calling expand_eh_region_start and...
Wed Dec  8 15:33:26 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * expr.c (java_lang_expand_expr): Switch to permanent obstack
        before calling expand_eh_region_start and expand_start_all_catch.
        * except.c (expand_start_java_handler): Switch to permanent
        obstack before calling expand_eh_region_start.
        (expand_end_java_handler): Switch to permanent obstack before
        calling expand_start_all_catch.

From-SVN: r31284
2000-01-07 17:59:33 -08:00
Anthony Green
f626e9fa21 expr.c (java_lang_expand_expr): Switch to permanent obstack before building constant array decl.
Thu Jan  6 16:31:28 2000  Anthony Green  <green@cygnus.com>

        * expr.c (java_lang_expand_expr): Switch to permanent obstack
        before building constant array decl.

From-SVN: r31283
2000-01-07 15:07:52 -08:00
Michael Hayes
8421850fbf * config/c4x/c4x.md (*subqf3_set): Fix typo.
From-SVN: r31282
2000-01-07 22:51:21 +00:00
Michael Hayes
6ee96de621 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
From-SVN: r31281
2000-01-07 22:48:54 +00:00
David Edelsohn
4f3745b0df - Update copyright, oops.
From-SVN: r31279
2000-01-07 17:30:22 -05:00
Tom Tromey
be63d11f60 * mauve-libgcj: Don't disable ClassTest.
From-SVN: r31278
2000-01-07 20:42:26 +00:00
Alexandre Petit-Bianco
6b924cc558 re GNATS gcj/122 (SP mismatch error from certain code constructs)
Thu Jan  6 00:54:10 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * jcf-write.c (generate_byecode_conditional): Fixed indentation in
        method invocation and typo in conditional expression.
        (generate_bytecode_insns): COND_EXPR can be part of a binop. Issue
        the appropriate NOTE_POP.
        * parse.y (patch_binop): Shift value mask to feature the right
        type.

(This is a fix for the PR #122:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00000.html)

From-SVN: r31277
2000-01-07 12:28:11 -08:00
Tom Tromey
bd3a924b10 * java/lang/natClass.cc (getClasses): Wrote.
From-SVN: r31276
2000-01-07 20:23:01 +00:00
David Edelsohn
c71791e01e rs6000.c (processor_target_table): Add power3 as alias for 630.
* rs6000.c (processor_target_table): Add power3 as alias for 630.
	* aix43.h: Revert Aug 2 change.
	(HAS_INIT_SECTION): Define, not visible yet.
	(LD_INIT_SWITCH): Define, not visible yet.
	* t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.

	* glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.

	* collect2.c (main): Expand ld2 size further.
	(export_object_lst): Cast assignment to avoid warning.
	(main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
	(scan_prog_file, COFF): Do not collect initialization or
	finalization functions generated for entire shared object if
	init/fini support present.

From-SVN: r31275
2000-01-07 13:33:12 -05:00
Nick Clifton
f6cad4c9e9 Merge duplicate definitions in svr4.h into elfos.h
From-SVN: r31274
2000-01-07 18:30:43 +00:00
Matt Austern
a47ce296b7 fold-const.c (real_hex_to_f): Remove duplicate declaration of expon.
* fold-const.c (real_hex_to_f): Remove duplicate declaration of
	expon.

From-SVN: r31273
2000-01-07 16:37:04 +00:00
Nathan Sidwell
272c0b10f3 * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro.
From-SVN: r31272
2000-01-07 12:01:53 +00:00
Jeffrey A Law
ac1c999f25 Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of crtstuff.c.
* Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
        crtstuff.c.
        (crtbegin.o, s-crtS): Likewise.

From-SVN: r31271
2000-01-07 01:56:40 -07:00
Jeff Law
dc87db13d8 Daily bump.
From-SVN: r31270
2000-01-07 01:45:07 -07:00
Jason Merrill
7c913d336d decl2.c (comdat_linkage): Don't set DECL_DEFER_OUTPUT.
* decl2.c (comdat_linkage): Don't set DECL_DEFER_OUTPUT.
        * pt.c (instantiate_decl): Defer comdat templates that might not be
        needed.

        * cp-tree.h (DECL_NEEDED_P): Also true if !DECL_COMDAT.
        * decl2.c (finish_vtable_vardecl): Don't check !DECL_COMDAT.
        (finish_file): Likewise.

From-SVN: r31269
2000-01-07 02:06:59 -05:00
Jason Merrill
ea5d313a8e fix
From-SVN: r31268
2000-01-07 00:57:58 -05:00
Richard Henderson
373a9956d8 alpha.md (adddi_2+1): Limit offset such that it will be loadable with a single ldah+lda pair.
* alpha.md (adddi_2+1): Limit offset such that it will be
        loadable with a single ldah+lda pair.
        (adddi_2+2): Explicitly fail split if we can't make it work.

From-SVN: r31267
2000-01-06 17:46:25 -08:00
Mumit Khan
ee77eda571 protoize.c: Conditionally include unistd.h.
2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* protoize.c: Conditionally include unistd.h.
	(IS_SAME_PATH_CHAR): New macro.
	(IS_SAME_PATH): New macro.
	(CPLUS_FILE_SUFFIX): New macro.
	(cplus_suffix): New static variable.
	(is_abspath): New static function.
	(in_system_include_dir): Handle DOS style pathnames.
	(file_could_be_converted): Likewise.
	(file_normally_convertible): Likewise.
	(directory_specified_p): Likewise.
	(file_excluded_p): Likewise.
	(abspath): Likewise.
	(shortpath): Likewise.
	(referenced_file_is_newer): Likewise.
	(save_def_or_dec): Likewise.
	(do_processing): Likewise.
	(main): Likewise.
	(edit_file): Likewise. Use rename instead of link.
	(rename_c_file): Likewise. Don't rename syscalls file.
	(munge_compile_params): Define null device for DOS based systems.
	(process_aux_info_file): Use binary mode if appliable.
	(edit_file): Likewise.
	* invoke.texi (Running Protoize): Document C++ suffixes used.

From-SVN: r31265
2000-01-07 00:42:12 +00:00
Mumit Khan
d5b6516da5 cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros.
2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
	IS_DIR_SEPARATOR macros.
	* collect2.c: Likewise.
	* cppinit.c: Likewise.
	* dwarf2out.c: Likewise.
	* gcc.c: Likewise.
	* gcov.c: Likewise.
	* prefix.c: Likewise.
	* rtl.c: Likewise.
	* toplev.c: Likewise.
	* system.h: And move to here.

From-SVN: r31264
2000-01-07 00:16:51 +00:00
Jason Merrill
44545f2790 new
From-SVN: r31263
2000-01-06 19:06:44 -05:00
Jason Merrill
bff3ce71a1 error.c (dump_decl): operator new, not operatornew.
* error.c (dump_decl): operator new, not operatornew.

        * class.c (field_decl_cmp): A nontype is "greater" than a type.
        * search.c (lookup_field_1): Look for the last field with the
        desired name.

From-SVN: r31262
2000-01-06 18:54:34 -05:00
Alexandre Petit-Bianco
ee07f4f4b1 Makefile.in (LIBDEPS): Added gcc's errors.o
Fri Dec 24 00:25:29 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* Makefile.in (LIBDEPS): Added gcc's errors.o
	(../jcf-dump$(exeext):): Link with gcc's errors.o
	(../gcjh$(exeext):): Likewise.
	* expr.c (expand_java_NEW): Layout the entire target type instead of
 	laying out its methods only.
	(lookup_field): Layout the class after having loaded it.
	* java-tree.h (java_debug_context): Declared.
	* jcf-io.c (toplev.h): Included.
	(find_class): Removed assignment to jcf's outofsynch
 	field. Force source file to be read if newer than its matching
 	class file. Tweaked debug messages.
	* jcf-parse.c (jcf_out_of_synch): Deleted.
	(read_class): Call to jcf_out_of_synch removed.
	* jcf.h (typedef struct JCF): Field `outofsynch' deleted.
	(jcf_out_of_synch): Prototype deleted.
	* parse.h (struct parser_ctxt): `minus_seen', `java_error_flag',
 	`deprecated' and `class_err': integer turned into bit fields.
	New bit fields `saved_data_ctx' and `saved_data'. Fixed comments.
	* parse.y (package_list): New global.
	(package_declaration:): Record newly parsed package name.
	(extra_ctxp_pushed_p): Static global deleted.
	(java_parser_context_save_global): Create buffer context for the
 	purpose of saving globals, if necessary.
	(java_parser_context_restore_global): Pop context pushed for the
 	purpose of saving globals, if necessary.
	(java_debug_context_do): New prototype and function.
	(java_debug_context): Likewise.
	(do_resolve_class): Use already parsed package names to qualify
 	and lookup class candidate.
	(java_pre_expand_clinit): Removed unnecessary local variable.

From-SVN: r31261
2000-01-06 14:06:22 -08:00
Mumit Khan
fbb740dacd prefix.c (update_path): Fix typo in variable name.
2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* prefix.c (update_path): Fix typo in variable name.

From-SVN: r31260
2000-01-06 22:00:02 +00:00
Richard Henderson
9b15c17f0d flow.c (mark_set_1): Use loop_depth+1 as reference weight.
* flow.c (mark_set_1): Use loop_depth+1 as reference weight.
        (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
        (count_reg_sets_1, count_reg_references): Likewise.
        (flow_loops_level_compute): Start counting actual loop depth at 1.
        (flow_loops_find): Likewise.
        * local-alloc.c (update_equiv_regs): Likewise.
        * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.

From-SVN: r31259
2000-01-06 12:25:41 -08:00
Tom Tromey
55ff3de705 natClass.cc (_getConstructors): Correctly check whether method name is the init name.
* java/lang/natClass.cc (_getConstructors): Correctly check
	whether method name is the init name.
	(getMethod): Look at accflags on method in `klass', not `this'.

From-SVN: r31258
2000-01-06 18:18:15 +00:00
Gabriel Dos Reis
c478efd142 defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to FIRST_PSEUDO_REGISTER
2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

       * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
       FIRST_PSEUDO_REGISTER
       * dwarf2out.c: Don't include frame.h
       * dwarfout.c: Likewise
       * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
       frame.h

From-SVN: r31257
2000-01-06 14:29:08 +00:00
Jan Hubicka
3040ffd651 reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of dead registers.
* reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
	dead registers.

	* i386.c (movsf splitter): Fix typo in my last checkin.

From-SVN: r31256
2000-01-06 13:03:58 +00:00
Jeff Law
4cf962a2b4 Daily bump.
From-SVN: r31255
2000-01-06 01:45:07 -07:00
Tom Tromey
41ecf9300e natClass.cc (getMethod): Compute offset relative to klass's methods table, not this's table.
* java/lang/natClass.cc (getMethod): Compute offset relative to
	`klass's methods table, not `this's table.

	* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
	In unwrapping/widening case, check whether `k' is null, not
	whether it is primitive.  Initialize `num' from `argelts', not
	`paramelts'.  Correct create and pass arguments to ffi_call.
	Don't let presence of `this' argument affect index used to look in
	argument arrays.
	(COPY): Set appropriate element in `values' vector.

From-SVN: r31253
2000-01-06 00:56:21 +00:00
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