Commit Graph

33947 Commits

Author SHA1 Message Date
Jan Hubicka
4dd2ac2c35 i386.c (ix86_frame): New structure.
* i386.c (ix86_frame): New structure.
	(ix86_compute_frame_size): Kill.
	(ix86_compute_frame_layout): New.
	(ix86_save_reg): New.
	(ix86_can_use_return_insn_p): Use frame layout stuff.
	(ix86_expand_prologue): Likewise.
	(ix86_expand_epilogue): Likewise.
	(ix86_initial_elimination_offset): Likewise.
	(ix86_nsaved_regs): Use ix86_save_reg.
	(ix86_emit_save_regs): Likewise.

From-SVN: r40022
2001-02-24 02:34:05 +00:00
Jan Hubicka
a686dbf86a flow.c (find_sub_basic_blocks): New function.
* flow.c (find_sub_basic_blocks): New function.
	(split_block): Be ready for basic block introduced by CODE_LABEL.
	(commit_one_edge_insertion): Call find_sub_basic_block.

	* flow.c (make_edges): Add edge from entry for blocks starting with
	label having ALTERNATE_NAME

From-SVN: r40021
2001-02-24 02:32:33 +00:00
Jan Hubicka
016030fea6 function.c (epilogue_done): Be ready for first basic block not containing PROLOGUE_END note.
* function.c (epilogue_done): Be ready for first basic block not
	containing PROLOGUE_END note.
	(reposition_prologue_and_epilogue_notes): Avoid placing
	PROLOGUE_END note between BASIC_BLOCK.

From-SVN: r40020
2001-02-24 02:22:07 +00:00
Jan Hubicka
c9212f333a * loop.c (canonicalize_condition): Move to reversed_comparison_code.
From-SVN: r40019
2001-02-24 02:18:38 +00:00
DJ Delorie
4f0a3098c5 i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for current_function_has_nonlocal_goto from 1999-11-12.
* config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of
check for current_function_has_nonlocal_goto from 1999-11-12.

From-SVN: r40018
2001-02-23 18:05:33 -05:00
Richard Kenner
fce687f876 diagnostic.c (trim_filename): No longer static.
* diagnostic.c (trim_filename): No longer static.
	* toplev.h (trim_filename): Declare.
	* rtl.c (rtl_check_failed_bounds): Call internal_error.
	(rtl_check_failed_type1, rtl_check_failed_type2): Likewise.
	(rtl_check_failed_code1, rtl_check_failed_code2): Likewise.
	(rtvec_check_failed_bounds): Likewise.
	* tree.c (tree_check_failed, tree_class_check_failed): Likewise.

From-SVN: r40016
2001-02-23 16:17:06 -05:00
Richard Kenner
3cc247a81a convert.c (convert_to_integer): Don't do unsigned unless result or both inputs are unsigned.
* convert.c (convert_to_integer): Don't do unsigned unless result or
	both inputs are unsigned.

From-SVN: r40014
2001-02-23 16:10:35 -05:00
Richard Kenner
ac50176d22 fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows.
* fold-const.c (fold_convert): Don't call size_int_type_wide if
	input overflows.

From-SVN: r40012
2001-02-23 16:05:41 -05:00
Richard Kenner
9b58f73986 c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
	* ch/decl.c, f/com.c, java/decl.c: Likewise.

From-SVN: r40010
2001-02-23 15:38:58 -05:00
Richard Kenner
e82a84c471 * varasm.c (output_constant): Recompute CODE after lang-specific fn.
From-SVN: r40008
2001-02-23 15:28:58 -05:00
Benjamin Kosnik
8ac2677fbb codecvt.h: Use __builtin_alloca.
2001-02-23  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/codecvt.h: Use __builtin_alloca.
	* include/bits/ostream.tcc: Same.
	* include/bits/fstream.tcc: Same.

From-SVN: r40007
2001-02-23 19:22:04 +00:00
Alexandre Oliva
cd33b1d7ec Use VAR=${VAR=...} form.
From-SVN: r40005
2001-02-23 19:13:33 +00:00
David Edelsohn
eb5bc1fa86 Use $BUILD_DIR/../../gcc/xgcc
From-SVN: r40003
2001-02-23 19:06:23 +00:00
Jeffrey Oldham
d5d063d72d Makefile.in (resource.o): Add params.h dependence.
2001-02-23  Jeffrey Oldham  <oldham@codesourcery.com>

	* Makefile.in (resource.o): Add params.h dependence.
	* params.def (MAX_DELAY_SLOT_LIVE_SEARCH): New parameter.
	* params.h (MAX_DELAY_SLOT_LIVE_SEARCH): Likewise.
	* resource.c: Add dependence on params.h.
	(current_live_regs): Fix explanatory comment.
	(find_basic_block): Add new parameter to permit limiting search
	for a BARRIER.
	(mark_target_live_regs): Add new argument to find_basic_block call.
	(incr_ticks_for_insn): Likewise.

From-SVN: r40001
2001-02-23 17:47:52 +00:00
Phil Edwards
12961d6516 iostream.h: Expose std::flush in old headers.
2001-02-23  Phil Edwards  <pme@sources.redhat.com>

	c++/2052
	* include/backward/iostream.h:  Expose std::flush in old headers.

From-SVN: r40000
2001-02-23 17:47:34 +00:00
Gabriel Dos Reis
3d7c9b7e5b diagnostic.c (output_to_stream): Rename to output_buffer_to_stream.
* diagnostic.c (output_to_stream): Rename to
	output_buffer_to_stream. Loses the stream parameter.
	(init_output_buffer): Set diagnosic_buffer's stream.
	(flush_diagnostic_buffer): Adjust.
	(default_print_error_function): Likewise.
	(finish_diagnostic): Likewise.
	(verbatim): Likewise.

	* diagnostic.h (struct output_buffer): Add `stream' field.
	(output_buffer_attached_stream): New macro.

From-SVN: r39999
2001-02-23 17:28:25 +00:00
Jakub Jelinek
fba2c0cdbc fold-const.c (extract_muldiv): If not MULT_EXPR, check if either operand is divisible by C.
* fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR,
	check if either operand is divisible by C.
	(multiple_of_p): Handle LSHIFT_EXPR with small constant shift.
	If type is signed, consider negative numbers as well.

	* gcc.c-torture/execute/20010222-1.c: New test.

From-SVN: r39996
2001-02-23 13:28:07 +01:00
Gabriel Dos Reis
487f145008 Remove special-casing on target.
Remove special-casing on target.  Use gcc instead of g++ to build
gen-num-limits.cc

From-SVN: r39994
2001-02-23 09:30:47 +00:00
GCC Administrator
8881338e3d Daily bump.
From-SVN: r39992
2001-02-23 08:16:09 +00:00
Benjamin Kosnik
6259cad9af tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
2001-02-22  Benjamin Kosnik  <bkoz@redhat.com>

	* tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.

	* include/bits/codecvt.h: Use alloca instead of __extension__ for
	the time being.
	* include/bits/ostream.tcc: Same.
	* include/bits/std_ostream.h: Same.
	* include/bits/fstream.tcc: Same.
	* include/bits/locale_facets.tcc: Add typename.
	* include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.

From-SVN: r39991
2001-02-23 07:12:03 +00:00
Mark Mitchell
25200ab2eb * spew.c (yylex): Correct handling of friends.
From-SVN: r39990
2001-02-23 02:33:03 +00:00
Richard Henderson
515edc9bf8 crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of gp-relative relocs.
* config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to
        reach .text instead of gp-relative relocs.
        * config/ia64/crtend.asm (.init): Likewise.

From-SVN: r39986
2001-02-22 14:57:28 -08:00
Mark Mitchell
f58c04acd7 mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for the function being encoded.
* mangle.c (write_encoding): Pass write_function_type the
	FUNCTION_DECL for the function being encoded.
	(write_function_type): Pass it along to write_bare_function_type.
	(write_bare_function_type): Pass it along to write_method_parms.
	(write_method_parms): Don't mangle the compiler-generated
	parameters to a constructor or destructor.

From-SVN: r39985
2001-02-22 21:46:06 +00:00
Andreas Jaeger
3844cd2e43 * extend.texi (C++ Attributes): Fix typo.
From-SVN: r39982
2001-02-22 16:41:49 +01:00
Andreas Jaeger
9c96f3f85e optimize.c: Include toplev.h for note_deferral_of_defined_inline_function prototype.
* optimize.c: Include toplev.h for
	note_deferral_of_defined_inline_function prototype.

From-SVN: r39981
2001-02-22 15:22:02 +01:00
Jakub Jelinek
b3bae5e2bf cp-tree.h (struct lang_decl_inlined_fns): New.
* cp-tree.h (struct lang_decl_inlined_fns): New.
	(struct lang_decls): Add inlined_fns.
	(DECL_INLINED_FNS): New macro.
	* optimize.c (struct inline_data): Add inlined_fns.
	(declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
	(inlinable_function_p): Likewise, fix typo in comment,
	function is not inlinable if it already inlined function currently
	being optimized.
	(expand_call_inline): Add fn to inlined_fns if neccessary.
	(optimize_function): Initialize inlined_fns.
	Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
	* decl.c (mark_inlined_fns): New function.
	(lang_mark_tree): Call it.

	* g++.old-deja/g++.other/inline20.C: New test.

From-SVN: r39977
2001-02-22 12:46:33 +01:00
GCC Administrator
35723595ab Daily bump.
From-SVN: r39975
2001-02-22 08:16:42 +00:00
Bryce McKinlay
7e382f0261 fix
From-SVN: r39973
2001-02-22 04:24:34 +00:00
Bryce McKinlay
5950e01622 Disable libgcjx by default.
* configure.in: Add support for --enable-java-awt configure option.
	Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
        * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
	* Makefile.in: Rebuilt.
	* configure: Rebuilt.

From-SVN: r39970
2001-02-22 04:19:58 +00:00
Bryce McKinlay
810e8b5200 re PR java/2040 (java.util.Hashtable(int,float) is stricter than sun's version)
Fix for PR java/2040:
	* java/util/HashMap.java (HashMap): Don't throw exception for
	loadFactor > 1. Add exception messages.
	* java/util/Hashtable.java (Hashtable): Likewise.

From-SVN: r39969
2001-02-22 04:16:07 +00:00
Benjamin Kosnik
7a6f729041 c_locale_gnu.h: Add clocale include.
2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>

	* config/c_locale_gnu.h: Add clocale include.

From-SVN: r39968
2001-02-22 01:35:47 +00:00
Phil Edwards
c2aa93b54a tests_flags.in: Remove -n flag from call to echo.
2001-02-21  Phil Edwards  <pme@sources.redhat.com>

	* tests_flags.in:  Remove -n flag from call to echo.

From-SVN: r39966
2001-02-21 21:58:20 +00:00
David Mosberger
3f67ac08f3 Refine syscall_linkage attribute semantics to fix security hole.
* config/ia64/ia64.c (ia64_epilogue_uses): For syscall_linkage
	functions, drop current_function_args_info.words test.
	(ia64_compute_frame_size): Mark syscall_linkage functions as
	using eight input registers.

From-SVN: r39965
2001-02-21 13:50:16 -08:00
Ovidiu Predescu
e9ece3bcbc Added.
From-SVN: r39964
2001-02-21 20:40:22 +00:00
Ovidiu Predescu
50920adb6b nested-1.m: Added (contributed by Nicola Pero).
Wed Feb 21 12:38:22 2001  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* objc/execute/nested-1.m: Added (contributed by Nicola Pero).

From-SVN: r39963
2001-02-21 20:39:52 +00:00
Loren J. Rittle
89647e8a23 fix freebsd version check of GCC
Co-Authored-By: Bruce Korb <bkorb@gnu.org>

From-SVN: r39961
2001-02-21 20:01:24 +00:00
Jeffrey D. Oldham
e889f41a2b gcc.c: Add comment explaining how to add a command-line option.
2001-02-21  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* gcc.c: Add comment explaining how to add a command-line option.
	Add title to specs language comment.

From-SVN: r39960
2001-02-21 19:54:18 +00:00
Jeffrey Oldham
7521b91323 gcc.c (cc1_options): Add "-param".
2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c (cc1_options): Add "-param".
	(DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise.
	(option_map): Likewise.
	* toplev.c (display_help): Add entry for "--param".
	(independent_decode_option): Fix typographical error.

From-SVN: r39958
2001-02-21 19:45:25 +00:00
Benjamin Kosnik
3d71e6cef0 c_locale_gnu.h: Add clocale include.
2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>

	* config/c_locale_gnu.h: Add clocale include.

From-SVN: r39956
2001-02-21 19:07:33 +00:00
Catherine Moore
82a127a9ec i386.c (function_arg_advance): Pass SSE arguments in registers.
* i386.c (function_arg_advance):  Pass SSE arguments in registers.
	(function_arg): Likewise.

Co-Authored-By: Bernd Schmidt <bernds@redhat.com>
Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r39955
2001-02-21 18:49:33 +00:00
Aldy Hernandez
a43f528e5a fixed typo in last commit re REVERSE_CONDEXEC_PREDICATES_P
From-SVN: r39954
2001-02-21 18:25:34 +00:00
Jan Hubicka
2b71bf377c * i386.md (mmx_lshrdi3, mmx_ashldi3): Guard by unspec.
From-SVN: r39952
2001-02-21 18:20:17 +00:00
Kazu Hirata
eb57ffec9d h8300.md (iorsi3): Do not output an extra newline character.
2001-02-21  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md (iorsi3): Do not output an extra newline
	character.
	(xorsi3): Likewise.

From-SVN: r39950
2001-02-21 18:09:48 +00:00
Jan Hubicka
ccfce8d2ee flow.c (init_propagate_block_info): Canon address and use single_set for killing dead memory stores.
* flow.c (init_propagate_block_info): Canon address and use single_set
	for killing dead memory stores.

From-SVN: r39949
2001-02-21 16:52:40 +00:00
Jeffrey Oldham
0443f602bc Makefile.in (reorg.o): Add params.h dependence.
2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>

	* Makefile.in (reorg.o): Add params.h dependence.
	* params.def: Fix typographical error in comment.
	(MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
	* params.h: Modify introductory comment.
	(MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
	* reorg.c: Add dependence on params.h.
	(redundant_insn): Add parameterized throttle for search.
	(fill_simple_delay_slots): Add a comment explaining a variable.
	Move conditional out of loop, simplifying code.
	(fill_eager_delay_slots): Fix typographical error in comment.

From-SVN: r39948
2001-02-21 16:11:59 +00:00
Aldy Hernandez
7e6d8ba184 new macro REVERSE_CONDEXEC_PREDICATES_P
From-SVN: r39947
2001-02-21 15:59:30 +00:00
Jason Merrill
5daf7c0a17 tree.h (DECL_UNINLINABLE): Move from C++ frontend.
* tree.h (DECL_UNINLINABLE): Move from C++ frontend.
        (struct tree_decl): Add uninlinable bitfield.
        * c-decl.c (duplicate_decls): Set it.
        * integrate.c (function_cannot_inline_p): Check it.
        * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
        (DECL_UNINLINABLE): Move to middle-end.

        * dwarf2out.c (add_name_and_src_coords_attributes): Don't add
        DW_AT_MIPS_linkage_name to abstract methods.
        (dwarf2out_abstract_function): Emit class context before calling
        set_decl_abstract_flags.  Don't clear DECL_ABSTRACT.
        (gen_subprogram_die): Remove obsolete code.
        (gen_member_die): Don't include clones in the member list.
        (gen_decl_die): Emit abstract info for clone origin.
        * dwarfout.c (output_type): Don't include clones in the member list.
        * dbxout.c (dbxout_type_methods): Ignore abstract methods.
        * toplev.c (note_deferral_of_defined_inline_function): Don't clear
        DECL_ABSTRACT on a function that already has it set.
        * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
        * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
        * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
        * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
        parms and outer BLOCK.  note_deferral_of_defined_inline_function.

        * dwarf2out.c (gen_formal_types_die): Also accept a FUNCTION_DECL.
        (get_subprogram_die): Pass it in.
        * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
        second parm of op=.

From-SVN: r39945
2001-02-21 09:42:27 -05:00
Richard Earnshaw
3c88f36654 flow.c (mark_set_1): Make not_dead unsigned long.
* flow.c (mark_set_1): Make not_dead unsigned long.  For
non-pseudos, use it as a bitmask of the hard regs that
don't die.

From-SVN: r39943
2001-02-21 12:18:11 +00:00
Gabriel Dos Reis
eccad89471 New test.
From-SVN: r39942
2001-02-21 11:48:24 +00:00
GCC Administrator
63b3c1598c Daily bump.
From-SVN: r39939
2001-02-21 08:16:08 +00:00