Commit Graph

25081 Commits

Author SHA1 Message Date
Andreas Jaeger
5fbd654e05 linux.h (CPP_PREDEFINES): Added.
* config/mips/linux.h (CPP_PREDEFINES): Added.
	(LINK_SPEC): Remove -Y since this is only needed on sparc.

From-SVN: r30653
1999-11-24 17:07:37 +00:00
Andreas Jaeger
9aaaa38ad6 linux.h (TARGET_VERSION): Added.
* config/mips/linux.h (TARGET_VERSION): Added.
	(HANDLE_SYSV_PRAGMA): Added.
	(DEFAULT_VTABLE_THUNKS): Added.

From-SVN: r30652
1999-11-24 15:19:20 +00:00
Jan Hubicka
a1ed7bdbdd local-alloc.c (qty): New structure and static variable.
* local-alloc.c (qty): New structure and static variable.
	(qty_phys_reg): Remove, all references changed to qty.
	(qty_n_refs): Likewise.
	(qty_min_class): Likewise.
	(qty_birth): Likewise.
	(qty_death): Likewise.
	(qty_size): Likewise.
	(qty_mode): Likewise.
	(qty_n_calls_crossed): Likewise.
	(qty_alternate_class): Likewise.
	(qty_changes_size): Likewise.
	(qty_first_reg): Likewise.
	(alloc_qty): Rename variable QTY to QTYNO.
	(finf_free_reg): Likewise.
	(local_alloc): Allocate qty, do not allocate the removed variables.

From-SVN: r30651
1999-11-24 13:14:57 +00:00
Jeff Law
7e8a11bb9d Daily bump.
From-SVN: r30650
1999-11-24 01:45:06 -07:00
Geoff Keating
9c9e76325d mips.h (ASM_SPEC): Don't pass -G to the assembler when -membedded-pic is passed.
* config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
when -membedded-pic is passed.

* config/mips/mips.md (casesi): Handle 64-bit case too.
(casesi_internal_di): New insn.

* config/mips/mips.c (embedded_pic_offset): Always make the
embedded-pic subtractions relative to the name of the current
function by use of the magic string "..CURRENT_FUNCTION".
* config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.

From-SVN: r30649
1999-11-24 06:35:10 +00:00
Geoff Keating
8f8b5612dc mips.md (div_trap_normal): Don't ask for the REGNO of (const_int 0)...
* config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
of (const_int 0), when what we really care about is
whether it's a zero constant anyway.
(div_trap_mips16): Likewise.

From-SVN: r30648
1999-11-24 06:25:14 +00:00
Mark Mitchell
428248f794 loop.c (loop_optimize): Always find_loop_tree_blocks and unroll_block_trees when generating debuggable code.
* loop.c (loop_optimize): Always find_loop_tree_blocks and
	unroll_block_trees when generating debuggable code.

From-SVN: r30647
1999-11-24 01:24:59 +00:00
Mark Mitchell
582db8e430 tree.h (unsave_expr_1): New function.
* tree.h (unsave_expr_1): New function.
	(lang_unsave): New variable.
	(get_callee_fndecl): New function.
	* tree.c (unsave_expr_now_r): New function.
	(lang_unsave): Define.
	(unsave_expr_1): Likewise.
	(unsave_expr_now_r): Split out from unsave_expr_now.
	(unsave_expr_now): Call lang_unsave if it is non-NULL.  Otherwise,
	call unsave_expr_now_r.
	(get_callee_fndecl): Define.

From-SVN: r30646
1999-11-24 01:19:04 +00:00
Mark Mitchell
87d35858fc Makefile.in (gencheck): Don't depend on lang_tree_files.
* Makefile.in (gencheck): Don't depend on lang_tree_files.
	(gencheck.o): Do depend on lang_tree_files.

From-SVN: r30645
1999-11-24 01:18:15 +00:00
Mark Mitchell
94755d92bd integrate.h (copy_decl_for_inlining): New declaration.
1999-11-23  Mark Mitchell  <mark@codesourcery.com>

	* integrate.h (copy_decl_for_inlining): New declaration.
	* integrate.c (copy_and_set_decl_abstract_origin): Remove.
	(copy_decl_for_inlining): New function.
	(integrate_parm_decls): Use it.
	(integrate_decl_tree): Likewise.

From-SVN: r30644
1999-11-23 20:48:38 +00:00
Gavin Romig-Koch
76ee804272 mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split the second two from the first.
* config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
	the second two from the first.
	(CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
	* config/mips/mips.md (movcc,reload_incc,reload_outcc,
	conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
	ISA_HAS_FP4.
	* config/mips/mips.c (mips_move_1word,gen_conditional_branch,
	override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
	ISA_HAS_FP4.

From-SVN: r30643
1999-11-23 19:18:48 +00:00
Jeffrey A Law
1b8079e9d5 pa.md (call_internal_symref, [...]): No mode needed on the address operand.
* pa.md (call_internal_symref, call_value_internal_symref): No mode
        needed on the address operand.
        * pa.c (call_operand_address): Check for the correct mode.

From-SVN: r30642
1999-11-23 11:17:00 -07:00
Kaveh R. Ghazi
b9d1251954 decl.c (pushdecl, [...]): Don't call a variadic function with a non-literal format string.
* decl.c (pushdecl, grokdeclarator): Don't call a variadic
        function with a non-literal format string.

        * lex.c (do_identifier): Likewise.

        * typeck.c (build_unary_op): Likewise.

From-SVN: r30641
1999-11-23 16:17:52 +00:00
Kaveh R. Ghazi
a3dd1d4395 expr.c (build_chill_function_call): Don't call a variadic function with a non-literal format string.
* expr.c (build_chill_function_call): Don't call a variadic
        function with a non-literal format string.

        * grant.c (write_spec_module): Likewise.

        * parse.c (require, expect): Likewise.

        * tasking.c (get_struct_type_name, get_struct_debug_type_name,
        get_tasking_code_name, get_struct_variable_name,
        get_process_wrapper_name, build_start_process): Likewise.

        * typeck.c (valid_array_index_p): Likewise.

From-SVN: r30640
1999-11-23 15:53:22 +00:00
Jason Merrill
de6e505ec7 revert AT_containing_type change
From-SVN: r30639
1999-11-23 09:47:08 -05:00
Bernd Schmidt
c29f60c03c Copy propagation for hoisted mems in loop.c.
From-SVN: r30638
1999-11-23 12:10:36 +00:00
Bryce McKinlay
429d7c746f re GNATS java.net/57 (potential buffer overruns)
1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>

        * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
        Exception messages. PR java.net/57.
        (bind): set SO_REUSEADDR before bind.
        * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
        overruns. PR java.net/57.

From-SVN: r30637
1999-11-23 11:40:26 +00:00
Jeff Law
a166668a97 Daily bump.
From-SVN: r30636
1999-11-23 01:45:06 -07:00
Mark Mitchell
10f82b957f * cp-tree.h (DECL_NEEDED_P): Tweak to match documentation.
From-SVN: r30635
1999-11-23 08:08:53 +00:00
Mark Mitchell
a93dcbc53a cp-tree.def (CTOR_COMPLETE): New tree node.
* cp-tree.def (CTOR_COMPLETE): New tree node.
	* decl.c (finish_constructor_body): Add it, to mark the end of the
	constructor.
	(finish_function): Don't call end_protect_partials here.
	* ir.texi (CTOR_COMPLETE): Document it.
	* semantics.c (expand_stmt): Handle it.

From-SVN: r30634
1999-11-23 08:07:09 +00:00
Hans-Peter Nilsson
43849fa9ee Makefile.in (gencheck.o): Depend on gencheck.h.
* Makefile.in (gencheck.o): Depend on gencheck.h.
        (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
        (insn-peep.o): Depend on except.h and function.h.
        (insn-attrtab.o): Depend on RECOG_H.
        (insn-output.o): Depend on toplev.h and flags.h.
        (gengenrtl.o): Depend on real.h.
        (gen-protos.o): Depend on cpplib.h and cpphash.h.
        Unify all dependencies to be on RECOG_H rather than recog.h.

From-SVN: r30633
1999-11-23 01:03:47 -07:00
Rainer Orth
1882b2b11e config-ml.in (sparc*-*-*): Disable sparcv9 support if the necessary libraries are missing.
* config-ml.in (sparc*-*-*): Disable sparcv9 support if the
        necessary libraries are missing.

From-SVN: r30632
1999-11-23 00:57:06 -07:00
Rainer Orth
a242e6f5e0 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
* configure.in: Try building a bi-arch 32/64-bit compiler on
        sparc-*-solaris2.7 and higher.
        * configure: Rebuild.

From-SVN: r30631
1999-11-23 00:57:06 -07:00
Mark Mitchell
083eb5756f cp-tree.def (CTOR_COMPLETE): New tree node.
* cp-tree.def (CTOR_COMPLETE): New tree node.
	(finish_constructor_body): Add it, to mark the end of the
	constructor.
	(finish_function): Don't call end_protect_partials here.
	* ir.texi (CTOR_COMPLETE): Document it.
	* semantics.c (expand_stmt): Handle it.

From-SVN: r30630
1999-11-23 07:31:07 +00:00
Jeff Law
4e32293ce6 freebsd.h: New, FreeBSD architecture independent file.
* config/freebsd.h: New, FreeBSD architecture independent file.
        * config/i386/freebsd-elf.h: removed FreeBSD architecturally
        independent pieces.
        * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
        directly by i386/freebsd.h.
        * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
        independent configuration file.
        (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
        directly by i386/freebsd.h.
        * configure: Rebuilt.
	*POTFILES.in: Add config/freebsd.h

From-SVN: r30628
1999-11-22 23:17:32 -07:00
David O'Brien
d7ebf9ea95 xm-i386.h: Define `__i386__' if not defined...
* xm-i386.h: Define `__i386__' if not defined, rather than `i386'
        which is in the user's namespace.
        * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
        `i386' which is not in our namespace.

From-SVN: r30627
1999-11-22 23:09:34 -07:00
R. Kelley Cook
2ef5661218 * invoke.texi (ARM Options): Add in -mno-alignment-traps
From-SVN: r30626
1999-11-22 22:59:41 -07:00
Mark Mitchell
f981720185 cp-tree.def (FUNCTION_NAME): New tree node.
* cp-tree.def (FUNCTION_NAME): New tree node.
	* cp-tree.h (current_function_name_declared): Tweak documentation.
	(lang_decl_flags): Add pretty_function_p, adjust dummy.
	(DECL_PRETTY_FUNCTION_P): New macro.
	* decl.c (cp_finish_decl): Handle declarations of __FUNCTION__,
	etc., in a template function.  Use at_function_scope_p instead of
	expanding it inline.
	* pt.c (tsubst_decl): Handle DECL_PRETTY_FUNCTION_P declarations
	specially.
	(tsubst): Handle FUNCTION_NAME.
	(tsubst_copy): Likewise.
	(instantiate_decl): Prevent redeclarations of __PRETTY_FUNCTION__,
	etc. in instantiation.
	* semantics.c (begin_compound_stmt): Declare __FUNCTION__, etc.,
	even in template functions.
	(setup_vtbl_ptr): Don't declare __PRETTY_FUNCTION in the
	conditional scope at the top of a destructor.

	* error.c (dump_function_decl): Use `[ with ... ]' syntax for
	specializations too.

From-SVN: r30625
1999-11-23 02:49:41 +00:00
Jason Merrill
a96c67ec89 dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
* dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
        (add_dwarf_attr, add_child_die): Just push onto the front.
        (reverse_die_lists): New fn.
        (add_sibling_attributes): Use it.
        (push_decl_scope): Reorganize.
        (gen_struct_or_union_type_die): Don't add a DW_AT_containing_type
        that points to ourself.
        (add_name_and_src_coords_attributes): Don't set file and line for
        an artificial decl.
        (gen_subprogram_die): An artificial function doesn't need to match
        file and line.
        (gen_compile_unit_die): Return the generated die.  Only add
        AT_comp_dir if the filename is relative.
        (remove_AT): Simplify loop.  Also free string values.
        (output_die): A DIE ref can't be null.
        (output_value_format, value_format): Take a dw_attr_ref.
        (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
        (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
        AT_addr, AT_lbl): New fns.
        (various): Use them.
        (various): Constify.

From-SVN: r30624
1999-11-22 20:50:36 -05:00
J"orn Rennecke
54f3b5c2f1 combine.c (combine_simplify_rtx): When handling a SUBREG, take SUBREG_WORD into account.
* combine.c (combine_simplify_rtx): When handling a SUBREG,
	take SUBREG_WORD into account.
	(if_then_else_cond): Likewise.

From-SVN: r30623
1999-11-22 23:56:34 +00:00
Benjamin Kosnik
b49df33399 stl_rope.h: Fix initialization order.
* stl_rope.h: Fix initialization order.
        * stl_deque.h: Use static_casts<size_type>(signed_type).

Co-Authored-By: Matthias Klose <doko@cs.tu-berlin.de>

From-SVN: r30622
1999-11-22 23:35:50 +00:00
Jason Merrill
a819692432 gmon.c, [...]: Remove advertising clause from BSD license
* gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
        clause from BSD license

From-SVN: r30621
1999-11-22 13:40:20 -05:00
Jason Merrill
f3636679d9 strtoul.c, [...]: Remove advertising clause from BSD license
* strtoul.c, strtol.c, random.c: Remove advertising clause from
        BSD license

From-SVN: r30620
1999-11-22 13:36:49 -05:00
Bernd Schmidt
b1dbfa1d87 Add regset_head and INIT_REG_SET.
From-SVN: r30619
1999-11-22 18:34:13 +00:00
Bernd Schmidt
328f4006b2 Reformat load_mems slightly.
From-SVN: r30618
1999-11-22 16:40:32 +00:00
Nathan Sidwell
19a027a082 * g++.old-deja/g++.other/warn4.C: New test.
From-SVN: r30617
1999-11-22 16:10:58 +00:00
Nathan Sidwell
88b4335f8a semantics.c (finish_unary_op_expr): Only set TREE_NEGATED_INT when actually negative.
* semantics.c (finish_unary_op_expr): Only set TREE_NEGATED_INT
	when actually negative.

	* typeck.c (convert_for_assignment): Expand comment about
	strange NULL check, moved from ...
	(convert_for_initialization): ... here. Remove unneeded
	code.

From-SVN: r30616
1999-11-22 16:08:14 +00:00
Nathan Sidwell
7cffd12d38 cleanup2.C: New test.
* g++.old-deja/g++.eh/cleanup2.C: New test.
	* g++.old-deja/g++.ext/pretty2.C: New test.
	* g++.old-deja/g++.ext/pretty3.C: New test.
	* g++.old-deja/g++.other/debug6.C: New test.

From-SVN: r30615
1999-11-22 15:51:14 +00:00
Bruce Korb
d3201a2ce6 fixinc.x86-linux-gnu folded into inclhack.def
From-SVN: r30614
1999-11-22 15:07:28 +00:00
Bruce Korb
8aeb3b0e4c __FD_ZERO fixes for gnu libc1&2
From-SVN: r30613
1999-11-22 15:05:48 +00:00
Andrew Haley
ee265800a5 emit-rtl.c (gen_sequence): Only return the pattern of an insn if its code is INSN and it has no notes.
Fri Nov 12 14:08:40 1999  Andrew Haley  <aph@cygnus.com>

	* emit-rtl.c (gen_sequence): Only return the pattern of an insn if
	its code is INSN and it has no notes.

From-SVN: r30612
1999-11-22 14:53:20 +00:00
Andrew Haley
6c85df6949 varasm.c (function_defined): Remove.
1999-11-22  Andrew Haley  <aph@cygnus.com>

        * varasm.c (function_defined): Remove.
        (make_function_rtl): Don't set function_defined.
        (make_decl_rtl): Remove global register warning.
        * regclass.c (no_global_reg_vars): New variable.
        (globalize_reg): Warn if function has already been defined.
        (regclass_init): Set no_global_reg_vars.

From-SVN: r30611
1999-11-22 14:20:35 +00:00
Jan Hubicka
9ffc5a70f8 regclass.c (reg_pref): New structure and static variable
* regclass.c (reg_pref): New structure and static variable
	(prefclass): Delete.
	(altclass): Delete.
	(all uses of prefclass and altclass): Use reg_pref instead.

From-SVN: r30610
1999-11-22 13:43:39 +00:00
Jeff Law
28a22acb45 Daily bump.
From-SVN: r30609
1999-11-22 01:45:06 -07:00
Anthony Green
48aedbca8b constants.c (find_methodref_index): Unwrap method names before inserting them in the constant pool.
* constants.c (find_methodref_index): Unwrap method names before
        inserting them in the constant pool.

        * jcf-parse.c (jcf_parse): Display `interface' when appropriate.

        * class.c (assume_compiled_node): New typedef.
        (assume_compiled_tree): New static data.
        (find_assume_compiled_node): New function.
        (add_assume_compiled): New function.
        (assume_compiled): New function.
        * class.c (make_class_data): Use assume_compiled.
        (is_compiled_class): Use assume_compiled.

        * java-tree.h (add_assume_compiled): Declare.

        * lang.c (lang_decode_option): Parse new options.

From-SVN: r30608
1999-11-21 23:37:58 +00:00
Alexandre Oliva
250ba2372c * delete2.C, delete3.C, delete4.C, delete5.C: New tests.
From-SVN: r30607
1999-11-21 17:49:59 +00:00
Alexandre Oliva
c7edeea32a cp-tree.h (build_vec_delete): Remove `auto_delete' argument.
* cp-tree.h (build_vec_delete): Remove `auto_delete' argument.
* init.c (build_vec_delete, build_vec_delete_1): Likewise.
Always destruct virtual bases of array components, but never
delete them.
(build_vec_init): Adjust invocations.
(build_delete): Likewise.
* decl2.c (delete_sanity): Likewise.

From-SVN: r30606
1999-11-21 17:44:34 +00:00
Nick Clifton
5f1e6755ec Rename -mshort-load-bytes switch to -malignment-traps
From-SVN: r30604
1999-11-21 16:11:20 +00:00
Jan Hubicka
5b8ad69915 Oops, forgot the Changleog entry.
* global.c (allocno): New structure and static variable.
	(allocno_reg): Remove, all references replaced by allocno.
	(allocno_size): Likewise.
	(hard_reg_conflicts): Likewise.
	(hard_reg_preferences): Likewise.
	(hard_reg_copy_preferences): Likewise.
	(hard_reg_full_preferences): Likewise.
	(regs_someone_prefers): Likewise.
	(allocno_calls_crossed): Likewise.
	(allocno_n_refs): Likewise.
	(allocno_live_length): Likewise.
	(find_reg): Rename ALLOCNO to NUM.

From-SVN: r30603
1999-11-21 12:56:01 +00:00
Jan Hubicka
5c0ecffe47 global.c (allocno): New structure and static variable.
* global.c (allocno): New structure and static variable.
	(allocno_reg): Remove, all references replaced by allocno.
	(allocno_size): Likewise.
	(hard_reg_conflicts): Likewise.
	(hard_reg_preferences): Likewise.
	(hard_reg_copy_preferences): Likewise.
	(hard_reg_full_preferences): Likewise.
	(regs_someone_prefers): Likewise.
	(allocno_calls_crossed): Likewise.
	(allocno_n_refs): Likewise.
	(allocno_live_length): Likewise.
	(find_reg): Rename ALLOCNO to NUM.

From-SVN: r30602
1999-11-21 12:53:31 +00:00