Commit Graph

26009 Commits

Author SHA1 Message Date
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
Kaveh R. Ghazi
fabf04b6e0 ns32k-protos.h: New file.
* ns32k-protos.h: New file.

        * ns32k.c: Fix compile time warnings.

        * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
        warnings.

        * ns32k.md: Likewise.

From-SVN: r31494
2000-01-18 23:06:06 +00:00
Kaveh R. Ghazi
2fd58acb35 vax-protos.h: New file.
* vax-protos.h: New file.

        * vax.c: Fix compile time warnings.

        * vax.h: Move prototypes to vax-protos.h.  Fix compile time
        warnings.

        * vax.md: Likewise.

        * vaxv.md: Likewise.

From-SVN: r31493
2000-01-18 23:02:03 +00:00
Kaveh R. Ghazi
13d516d91a romp-protos.h: New file.
* romp-protos.h: New file.

        * romp.c: Fix compile time warnings.

        * romp.h: Move prototypes to romp-protos.h.  Fix compile time
        warnings.

        * romp.md: Likewise.

From-SVN: r31492
2000-01-18 22:59:40 +00:00
Kaveh R. Ghazi
253f1045a1 we32k-protos.h: New file.
* we32k-protos.h: New file.

        * we32k.c: Fix compile time warnings.

        * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
        warnings.

From-SVN: r31491
2000-01-18 22:56:37 +00:00
Kaveh R. Ghazi
962f1324bd calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.

        * except.c (eh_regs): Likewise.

        * final.c (output_operand): Likewise.

        * fold-const.c (target_isinf, target_isnan): Likewise.

From-SVN: r31490
2000-01-18 22:45:16 +00:00
Jan Hubicka
17f24ff04d i386.h (BIGGEST_ALIGNMENT): Set to 128.
* i386.h (BIGGEST_ALIGNMENT): Set to 128.
	(BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)

From-SVN: r31489
2000-01-18 16:06:54 +00:00
Jan Hubicka
e2e52e1be7 i386.md (memstr): Do not use rep stosb for counts divisible by 4 when optimize_size.
* i386.md (memstr): Do not use rep stosb for counts divisible by 4
	when optimize_size.
	(clrstrsi): Rewrite.
	(strsethi, strsetqi): New expanders.
	(strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
	(cmpstrsi): Emit compare insn before cmpstrsi_1
	(cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
	(strlensi_1): Likewise.
	(cmpstrsi_1): Likewise; do not output compare.
	(strlen expander): Do not unroll when optimizing for size.
	(*subsi3_carry): Rename to subsi3_carry
	(addqi3_cc): New pattern.
	* i386.h (processor_costs): Add move_ratio field.
	(MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
	* i386.c (*_cost): Set move_ratio.
	(x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
	(x86_expand_strlensi_1): Rewrite the main loop.

From-SVN: r31488
2000-01-18 15:25:05 +00:00
Andrew Haley
b9f243c201 name-finder.cc (lookup): Check for dladdr function.
2000-01-18  Andrew Haley  <aph@cygnus.com>

	* name-finder.cc (lookup): Check for dladdr function.
	acconfig.h (HAVE_DLADDR): Add.
	configure.in: Check for HAVE_DLADDR
	configure: Rebuilt.
	include/config.h.in:  Rebuilt.

From-SVN: r31487
2000-01-18 14:42:14 +00:00
Andrew Haley
0447654432 prims.cc (_Jv_RunMain): Set the name of this executable.
2000-01-17  Andrew Haley  <aph@cygnus.com>

	* prims.cc (_Jv_RunMain): Set the name of this executable.

From-SVN: r31486
2000-01-18 14:37:34 +00:00
Nathan Sidwell
e5f614d777 cp-tree.h (get_tinfo_fn_dynamic): Remove prototype.
* cp-tree.h (get_tinfo_fn_dynamic): Remove prototype.
	(build_x_typeid): Likewise.
	(get_tinfo_fn): Likewise.
	(get_tinfo_fn_unused): Rename to ...
	(get_tinfo_decl): ... here.
	* rtti.c (build_headof): Replace logic error with assertion.
	(get_tinfo_fn_dynamic): Rename to ...
	(get_tinfo_decl_dynamic): ... here. Make static. Use
	complete_type_or_else.
	(build_x_typeid): Move into ...
	(build_typeid): ... here. Adjust call to
	get_tinfo_decl_dynamic. Use tinfo_from_decl. Simplify
	throw_bad_typeid expression.
	(get_tinfo_fn_unused): Rename to ...
	(get_tinfo_decl): ... here. Adjust comment.
	(get_tinfo_fn): Delete.
	(tinfo_from_decl): New static function.
	(get_typeid_1): Call get_tinfo_decl and tinfo_from_decl.
	(get_typeid): Use complete_type_or_else.
	(build_dynamic_cast_1): Adjust calls to
	get_tinfo_decl_dynamic. Simplify throw_bad_cast expression.
	* parse.y (primary): Adjust call to build_typeid.
	* except.c (build_eh_type_type_ref): Adjust call to
	get_tinfo_decl. Mark as used.
	* class.c (set_rtti_entry): Adjust call to get_tinfo_decl.
	* decl2.c (build_expr_from_tree): Adjust call to build_typeid.
	* parse.c: Regenerated.

From-SVN: r31485
2000-01-18 10:23:31 +00:00
Jeff Law
c399e76da6 Daily bump.
From-SVN: r31484
2000-01-18 01:45:07 -07:00
Tom Tromey
d269d25cd3 natThrowable.cc (fillInStackTrace): Return `this' even when backtrace can't be computed.
* java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
	when backtrace can't be computed.

From-SVN: r31483
2000-01-18 06:22:13 +00:00