Commit Graph

58681 Commits

Author SHA1 Message Date
Jeff Law
9cf84a3cf0 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
From-SVN: r82623
2004-06-04 09:01:49 -06:00
Steven Bosscher
f698d2175a except.c (for_each_eh_region): New function.
* except.c (for_each_eh_region): New function.
	* except.h (for_each_eh_region): Add a prototype for it.
	* tree-cfg.c (update_eh_labels): New function, callback for
	for_each_eh_region.
	(label_for_bb): Make global static, unfortunately.
	(cleanup_dead_labels): Also update label references for
	exception regions.

From-SVN: r82622
2004-06-04 12:31:26 +00:00
Nicola Pero
72fab00611 New ObjC testcases to make sure Protocol-isEqual: is well implemented in the
runtime library

From-SVN: r82621
2004-06-04 01:24:34 +00:00
Nicola Pero
a19db17df4 New testcases
From-SVN: r82620
2004-06-04 01:23:12 +00:00
Nicola Pero
1600b7d616 Improved [Protocol -isEqual:], now more correct and faster
From-SVN: r82619
2004-06-04 01:12:20 +00:00
Chris Demetriou
c759d45432 mips.c (struct irix_section_align_entry): Fix GTY marker.
2004-06-03  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (struct irix_section_align_entry): Fix
        GTY marker.

From-SVN: r82618
2004-06-03 17:37:56 -07:00
GCC Administrator
1b6be71988 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82616.2
2004-06-04 00:16:17 +00:00
GCC Administrator
6f0032a3f7 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82615.2
2004-06-04 00:16:11 +00:00
Joseph Myers
d6f3f2616f gcc_release (maybe_build_tarfile): New function.
* gcc_release (maybe_build_tarfile): New function.
	(build_tarfiles): Use maybe_build_tarfile.

From-SVN: r82613
2004-06-04 01:02:04 +01:00
Andrew Pinski
f9d1895555 re PR c++/14639 ([non-unit-at-a-time] Incorrect emission of unused compiler-generated destructor)
2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
            Jan Hubicka  <jh@suse.cz>

        PR c++/14639
        * method.c (use_think): Do not mark thunk as referenced.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r82612
2004-06-03 16:45:46 -07:00
Geoffrey Keating
3d98fa1402 toplev.c (check_global_declarations): Don't ask for DECL_ASSEMBLER_NAME unless the function really is declared static...
* toplev.c (check_global_declarations): Don't ask for
	DECL_ASSEMBLER_NAME unless the function really is declared
	static and not defined.

From-SVN: r82611
2004-06-03 23:16:21 +00:00
Matt Austern
0524c91d1e re PR c++/15428 (vtables shouldn't always be weak on Darwin)
PR c++/15428
	* default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
	for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
	* config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
	* doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
	documentation to reflect the new macro name and to clarify its
	meaning.
	* cp/decl2.c (maybe_emit_vtables): If TARGET_WEAK_NOT_IN_ARCHIVE_TOC
	is nonzero, and if we see a noninline definition of a key method,
	make the vtables nonweak.

From-SVN: r82610
2004-06-03 23:15:01 +00:00
Christopher Faylor
c073ab616f revert accidental checkin
From-SVN: r82609
2004-06-03 22:38:00 +00:00
Tobias Schlüter
1600fe22b9 gfortran.h (gfc_actual_arglist): New field missing_arg_type.
fortran/
* gfortran.h (gfc_actual_arglist): New field missing_arg_type.
* interface.c (compare_actual_formal): Keep type of omitted
optional arguments.
* trans-expr.c (gfc_conv_function_call): Add string length
argument for omitted string argument.

testsuite/
* gfortran.fortran-torture/execute/optstring_1.f90: New testcase.

From-SVN: r82608
2004-06-04 00:35:41 +02:00
Steven Bosscher
ed5947c9bc * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
From-SVN: r82607
2004-06-03 22:17:20 +00:00
Andrew Pinski
c0d594f1da darwin.c (machopic_indirect_data_reference): Copy the SYMBOL_REF_DECL from the original RTX for the new non-lazy pointer RTX.
2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.c (machopic_indirect_data_reference): Copy
        the SYMBOL_REF_DECL from the original RTX for the new
        non-lazy pointer RTX.

From-SVN: r82606
2004-06-03 15:15:08 -07:00
Tobias Schlüter
dfc46c1fde One more comment update
From-SVN: r82605
2004-06-04 00:01:10 +02:00
Paul Brook
7c87eac60d trans.c (gfc_finish_block, [...]): Build statement lists instead of compound expr chains.
* trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
	lists instead of compound expr chains.
	(gfc_trans_code): Annotate statement lists.

From-SVN: r82604
2004-06-03 21:56:54 +00:00
Tobias Schlüter
1341376000 * trans-array.c: Fix spelling in comments.
From-SVN: r82603
2004-06-03 22:25:29 +02:00
Mark G. Adams
e18be1d424 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r82602
2004-06-03 18:53:35 +00:00
Mark G. Adams
a757585a22 tree.h: Remove include of version.h
* tree.h: Remove include of version.h
	* c-cppbuiltin.c: Include version.h
	* diagnostic.c: Include version.h
	* dwarf2out.c: Include version.h
	* toplev.c: Include version.h
	* vmsdbgout.c: Include version.h
	* Makefile.in: Remove dependency on version.h from TREE_H, and
	add dependencies to required .o targets
	* gjavah.c: Include version.h

From-SVN: r82601
2004-06-03 18:48:28 +00:00
Jerry Quinn
59587b18ab Makefile.in (RA_H, [...]): New.
2004-06-03  Jerry Quinn  <jlquinn@optonline.net>

	* Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
	CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
	(TARGET_H): Add insn-modes.h.
	(tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
	loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
	loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
	loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
	cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
	(toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
	loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
	bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
	CFGLAYOUT_H.
	(ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
	Replace ra.h with RA_H.
	(resource.o, regrename.o, insn-conditions.o, insn-emit.o,
	insn-recog.o): Replace resource.h with RESOURCE_H.
	(ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
	sched-ebb.o, sched-vis.o, out_object_file):  Replace sched-int.h
	with SCHED_INT_H.
	(web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
	ra-rewrite.o): Replace df.h with DF_H.
	(ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
	(tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
	Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
	(insn-conditions.o): Remove unused reload.h.
	* cfglayout.h: Add include guard.  Include basic-block.h.
	* cfgloop.h: Add include guard.  Include basic-block.h, rtl.h.
	* ddg.h: Include sbitmap.h, basic-block.h, df.h.
	* df.h: Add include guard.  Include bitmap.h, sbitmap.h,
	basic-block.h.
	* genconditions.c:  Remove reload.h.
	* ra.h: Add include guard.  Include bitmap.h, sbitmap.h,
	hard-reg-set.h, insn-modes.h.
	* resource.h: Add include guard.  Include hard-reg-set.h.
	* sched-int.h:  Add include guard.  Include insn-attr.h,
	basic-block.h, rtl.h.
	* target.h: Add include guard.  Include insn-modes.h.
	* tree-ssa-live.h: Include partition.h.

From-SVN: r82600
2004-06-03 15:01:08 +00:00
Daniel Berlin
95eec0d671 tree-ssa-ccp.c (varying_ssa_edges): New worklist.
2004-06-03  Daniel Berlin  <dberlin@dberlin.org>
		Kenneth Zadeck <zadeck@naturalbridge.com>

	* tree-ssa-ccp.c (varying_ssa_edges): New worklist.
	(add_var_to_ssa_edges_worklist): Add value argument.
	Update callers.
	Use new worklist.
	(process_ssa_edge_worklist): New function.
	(tree_ssa_ccp): Move worklist processing core to
	process_ssa_edge_worklist, and just call that for the two worklists.

From-SVN: r82598
2004-06-03 14:07:53 +00:00
Steven Bosscher
6ce2bcb71c basic-block.c (tail_recursion_label_list): Don't declare.
* basic-block.c (tail_recursion_label_list): Don't declare.
	(CLEANUP_PRE_SIBCALL): Remove.  Renumber the other CLEANUP_*
	accordingly.
	* cfgbuild.c (find_label_refs): Remove.
	(find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
	* cfgcleanup.c (tail_recursion_label_p): Remove.
	(merge_blocks_move): Do not check for tail recursion.
	(try_optimize_cfg): Likewise.
	(cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
	* cfgrtl.c (tail_recursion_label_list): Remove.
	* except.c (remove_unreachable_regions): Don't handle
	CALL_PLACEHOLDER insns.
	(convert_from_eh_region_ranges_1, can_throw_internal,
	can_throw_external): Likewise.
	* function.c (free_after_compilation): Don't clear
	x_tail_recursion_label.
	(fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
	(identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
	(reorder_blocks_1): Likewise.
	* function.h (struct function): Remove x_tail_recursion_label
	member.  Don't define tail_recursion_label.
	* jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
	* print-rtl.c (print_rtx): Likewise.
	* rtl.def (CALL_PLACEHOLDER): Remove.
	* rtl.h (sibcall_use_t): Remove enum.
	(optimize_sibling_and_tail_recursive_calls,
	replace_call_placeholder): Remove function prototypes.
	* stmt.c (tail_recursion_args): Remove.
	(optimize_tail_recursion): Remove.
	(expand_return): Don't check for possible tail recursion.
	* tree.h (optimize_tail_recursion): Remove prototype.

From-SVN: r82597
2004-06-03 12:07:47 +00:00
Michael Koch
53ef271f84 2004-06-03 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
	(requestFocus): Revert last changes.
	(gtkRequestFocus): Removed.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
	Renamed to ...
	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
	Reverted last patch.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
	(Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
	Reverted comment change.

From-SVN: r82596
2004-06-03 10:23:12 +00:00
Paolo Bonzini
5607edfd08 configure.in: Fix --enable-bootstrap breakage introduced in trees without gcc.
* configure.in: Fix --enable-bootstrap breakage introduced in trees without
gcc.
* configure: Regenerate.

From-SVN: r82595
2004-06-03 04:53:00 +00:00
GCC Administrator
85e933d8ed Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82592.2
2004-06-03 00:16:16 +00:00
GCC Administrator
87fd6c1cc3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82590.2
2004-06-03 00:16:13 +00:00
Jan Hubicka
ce068299f5 tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before return_stmt.
* tree-cfg.c (tree_find_edge_insert_loc):  Allow inserting before
	return_stmt.

From-SVN: r82586
2004-06-02 21:13:55 +00:00
Matt Austern
415c974c0b When a class template is explicitly instantiated, its member should be too.
* cp-tree.h (instantiate_decl): new boolean parameter,
	undefined_ok. Current behavior is equivalent to its being 0.
	* decl2.c (mark_used): Add new argument when calling instantiate_decl
	* pt.c (mark_decl_instantiated): Unconditionally make
	instantiations explicit unconditionally
	(do_decl_instantiation): Don't call SET_DECL_EXPLICIT_INSTANTIATION,
	since mark_decl_instantiated now does it.
	(instantiate_class_member): New.  Instantiate a member of an
	explicitly instantiated class template.
	(do_type_instantiation): Explicitly instantiate members of an
	explicitly instantiated class template.
	(instantiate_decl): if undefined_ok is nonzero, and if we're
	trying to explicitly instantiated a template with no definition,
	change it to an implicit instantiation.
	(instantiate_pending_templates): Add new argument to instantiate_decl.
	* tree.c (cp_cannot_inline_tree_fn): Likewise.

From-SVN: r82585
2004-06-02 21:12:54 +00:00
Gabriel Dos Reis
b53dcf3e5c * include/std/std_complex.h (log): Tidy.
From-SVN: r82584
2004-06-02 21:04:07 +00:00
Jason Merrill
b25a893390 Makefile.in (TAGS): Don't mess with c-parse.[ch].
* Makefile.in (TAGS): Don't mess with c-parse.[ch].
        Do include c-parse.in.

From-SVN: r82582
2004-06-02 16:44:48 -04:00
Andrew Pinski
b9696fd41d cp-tree.h: Fix typo.
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * cp-tree.h: Fix typo.

From-SVN: r82580
2004-06-02 13:24:30 -07:00
Olga Rodimina
26f4ba86cf JCheckBoxMenuItem.java: Removed CVS tags.
* javax/swing/JCheckBoxMenuItem.java:
	Removed CVS tags.
	* javax/swing/JMenu.java: Likewise.
	* javax/swing/JMenuBar.java: Likewise.
	* javax/swing/JMenuItem.java: Likewise.
	* javax/swing/JPopupMenu.java: Likewise.
	* javax/swing/JRadioButtonMenuItem.java: Likewise.
	* javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
	* javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
	* javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
	* javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
	* javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
	* javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.

From-SVN: r82579
2004-06-02 20:13:06 +00:00
Ziemowit Laski
12ba3f8f9a objc.exp (objc_target_compile): When running tests on Darwin (Mac OS X)...
[gcc/testsuite/ChangeLog]
2004-06-02  Ziemowit Laski  <zlaski@apple.com>

        * lib/objc.exp (objc_target_compile): When running tests on
        Darwin (Mac OS X), inform the linker about '-framework
        'Foundation'.

From-SVN: r82578
2004-06-02 19:48:49 +00:00
Eric Christopher
3aeb3655cf c-typeck.c (common_type): Don't lose type qualifiers when creating new variants.
2004-06-02  Eric Christopher  <echristo@redhat.com>

        * c-typeck.c (common_type): Don't lose type qualifiers
        when creating new variants.

2004-06-02  Eric Christopher  <echristo@redhat.com>

        * gcc.c-torture/compile/20040602-1.c: New.

From-SVN: r82577
2004-06-02 19:46:13 +00:00
Andrew Pinski
03a4c96907 Add function name to the changelog.
From-SVN: r82576
2004-06-02 12:36:07 -07:00
Andrew Pinski
d2d87e6d9e cp-tree.h: Include cgraph.h
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * cp-tree.h: Include cgraph.h
        (DECL_NEEDED_P): Use cgraph_*node on the decl instead of
        TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl.

From-SVN: r82575
2004-06-02 12:20:03 -07:00
Andrew Pinski
89422e4749 ssa-sra-1.C: Fix comment.
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/tree-ssa/ssa-sra-1.C: Fix comment.
        * g++.dg/tree-ssa/ssa-sra-2.C: Likewise.

From-SVN: r82574
2004-06-02 12:10:27 -07:00
Andrew Pinski
3facc4b615 re PR tree-optimization/14736 ([tree-ssa] code quality regression)
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-optimization/14736
        * g++.dg/tree-ssa/ssa-cast-1.C: New Test.

        PR tree-optimization/14042
        * g++.dg/tree-ssa/ssa-sra-1.C: New Test.

        PR tree-optimization/14729
        * g++.dg/tree-ssa/ssa-sra-2.C: New Test.

2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-optimization/14042
        PR tree-optimization/14729
        PR tree-optimization/14736
        * tree-ssa.c: Check the type which the pointer points to
        instead of the pointer types.

From-SVN: r82573
2004-06-02 11:56:54 -07:00
Kazu Hirata
91fa0e3de6 re PR tree-optimization/15738 ([tree-ssa] Convert strrchr(s, c) to strchr(s, c) if c is known to be 0)
PR tree-optimization/15738.
	* builtins.c (fold_builtin_strchr): Transform
	strrchr (s, '\0') to strchr (s, '\0').

From-SVN: r82572
2004-06-02 18:41:40 +00:00
Steven Bosscher
dff008b446 i386.c (ix86_adjust_cost): Don't increase the cost for load+operation for PROCESSOR_PENTIUMPRO...
* i386.c (ix86_adjust_cost): Don't increase the cost for
	load+operation for PROCESSOR_PENTIUMPRO, it is already
	modelled in the DFA description

From-SVN: r82571
2004-06-02 17:34:35 +00:00
Tobias Schlüter
2fa548415a re PR fortran/15557 (Not Implemented: Substring reference in DATA statement)
fortran/
PR fortran/15557
* data.c (assign_substring_data_value): New function.
(gfc_assign_data_value): Call the new function if we're dealing
with a substring LHS.

testsuite/
PR fortran/15557
* gfortran.fortran-torture/execute/data_3.f90: New testcase.

From-SVN: r82570
2004-06-02 13:38:24 +02:00
Jerry Quinn
785287145e Makefile.in (EXPR_H): Add insn-config.h...
2004-06-01  Jerry Quinn  <jlquinn@optonline.net>

	* Makefile.in (EXPR_H): Add insn-config.h, function.h,
	$(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
	(ALIAS_H, EMIT_RTL_H): New.
	(cselib.o): Replace EXPR_H with EMIT_RTL_H.
	(cfgcleanup.o): Add EMIT_RTL_H.
	(alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
	* alias.c: Replace expr.h with emit-rtl.h and alias.h.
	* attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
	* cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
	* expr.h: Add include guard.  Include function.h, rtl.h, flags.h,
	tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
	(get_varargs_alias_set, get_frame_alias_set, record_base_value,
	record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
	(set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
	set_mem_size): Move to emit-rtl.h.
	* emit-rtl.h: New.
	* alias.h: New.

From-SVN: r82568
2004-06-02 02:09:45 +00:00
GCC Administrator
1e2a2bdc35 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82566.2
2004-06-02 00:16:15 +00:00
GCC Administrator
ff2adb9d23 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82564.2
2004-06-02 00:16:11 +00:00
Jason Merrill
a90f9bb112 re PR c++/15142 (Internal compiler error when passing a string where a char* is expecteted in a throw statement)
PR c++/15142
        * call.c (call_builtin_trap): Remove type parm.
        (convert_arg_to_ellipsis): Change a non-POD argument to integer type.
        (build_x_va_arg): Dereference a null pointer for a non-POD argument.

From-SVN: r82556
2004-06-01 16:28:38 -04:00
Eric Botcazou
95c73b23dc function.c (walk_fixup_memory_subreg): New parameter 'var'.
* function.c (walk_fixup_memory_subreg): New parameter 'var'.
	Call fixup_memory_subreg only if the MEM is equal to 'var'.
	Adjust recursive calls to self.
	(fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.

From-SVN: r82555
2004-06-01 19:08:01 +00:00
Jason Merrill
c1d34f9050 re PR c++/13092 (Accepts invalid pointer-to-member conversion)
PR c++/13092
        * init.c (build_offset_ref): Build SCOPE_REF with non-null
        TREE_TYPE for non-dependent names.
        * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
        unknown_type_node as its TREE_TYPE.
        * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
        * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
        (dump_expr) <SCOPE_REF case>: Likewise.

From-SVN: r82553
2004-06-01 11:54:33 -04:00
Jason Merrill
3ff2f9d1d1 revert accidental checkin
From-SVN: r82552
2004-06-01 11:53:07 -04:00