72656 Commits

Author SHA1 Message Date
Kazu Hirata
4e2d94a917 tree-vrp.c (extract_range_from_binary_expr): Clean up uses of vr0.type.
* tree-vrp.c (extract_range_from_binary_expr): Clean up uses
	of vr0.type.

From-SVN: r108935
2005-12-22 01:16:57 +00:00
Mike Stump
8ccfa1ccb9 * gcc.dg/attr-weakref-1.c: Really skip on darwin.
From-SVN: r108934
2005-12-22 01:02:55 +00:00
Mike Stump
604fb661cc * gcc.dg/attr-weakref-1.c: Really skip on darwin.
From-SVN: r108933
2005-12-22 01:02:29 +00:00
GCC Administrator
3647aabdfa Daily bump.
From-SVN: r108930
2005-12-22 00:17:25 +00:00
Joseph Myers
0dffcbd512 re PR target/24998 (Build failure: undefined symbol __floatunsitf)
PR middle-end/24998
	* config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
	_floatundisf.

From-SVN: r108918
2005-12-21 17:48:07 +00:00
Paul Brook
2bd6e76111 pr19340.c: Skip on m68k targets.
2005-12-21  Paul Brook  <paul@codesourcery.com>

	* gcc.dg/pr19340.c: Skip on m68k targets.

From-SVN: r108916
2005-12-21 17:18:53 +00:00
Andrew Haley
eead060a99 re PR middle-end/25121 (libgcj misscompilation?)
2005-12-21  Andrew Haley  <aph@redhat.com>

        PR middle-end/25121
        * recog.c (peephole2_optimize): Don't peephole any
        RTX_FRAME_RELATED_P insns.

From-SVN: r108914
2005-12-21 16:52:13 +00:00
Kazu Hirata
0dd4b47b7f tree-data-ref.c (estimate_niter_from_size_of_data): Replace fold_build2 with fold_binary.
* tree-data-ref.c (estimate_niter_from_size_of_data): Replace
	fold_build2 with fold_binary.
	* tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
	Replace fold_build1 with fold_unary.
	* tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
	with fold_binary.

From-SVN: r108913
2005-12-21 16:48:59 +00:00
Steven Bosscher
ad44e786b8 fixup PR number mixup
From-SVN: r108909
2005-12-21 15:43:38 +00:00
Steven Bosscher
560382452e patch for PR rtl-optimization/25130
gcc/
        * postreload-gcse.c (record_last_set_info): Notice stack pointer
        changes in push insns without REG_INC notes.

testsuite/
        * gcc.dg/pr25130.c: New test.

From-SVN: r108906
2005-12-21 15:28:16 +00:00
Erik Edelmann
46833406d1 re PR fortran/25423 (Error with nested where statements)
fortran/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        * parse.c (parse_where_block): break instead of "fall
         through" after parsing nested WHERE construct.


testsuite/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        gfortran.dg/where_nested_1.f90: New.

From-SVN: r108902
2005-12-21 11:58:09 +00:00
Kazu Hirata
29c8f8c27b re PR tree-optimization/25382 (VRP does not get a range from BIT_AND_EXPR if the second operand is constant)
gcc/
	PR tree-optimization/25382.
	* tree-vrp.c (extract_range_from_binary_expr): Extract a range
	from BIT_AND_EXPR.

gcc/testsuite/
	PR tree-optimization/25382.
	* gcc.dg/tree-ssa/pr25382.c: New.

From-SVN: r108898
2005-12-21 05:58:02 +00:00
Ben Elliston
486aa8045c configure.ac: Enable C extension for decimal float if invoked with --enable-decimal-float.
* configure.ac: Enable C extension for decimal float if invoked
	with --enable-decimal-float.
	* doc/install.texi (Configuration): Document it.
	* configure, config.in: Regenerate.

From-SVN: r108887
2005-12-21 11:43:21 +11:00
GCC Administrator
f8d64c79c2 Daily bump.
From-SVN: r108884
2005-12-21 00:17:34 +00:00
Mike Stump
b6563b2337 darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the ambiguity between -seg_addr_table and -seg_addr_table_filename.
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
        ambiguity between -seg_addr_table and -seg_addr_table_filename.
        (WORD_SWITCH_TAKES_ARG): Likewise.
        (LINK_SPEC): Likewise.
Radar 3941990

From-SVN: r108876
2005-12-20 23:46:18 +00:00
Kenneth Zadeck
f91a0bebda cfganal.c (flow_reverse_top_sort_order_compute): Renamed to post_order_compute and additional parameter added which allows the...
2005-12-20  Kenneth Zadeck <zadeck@naturalbridge.com>

	* cfganal.c (flow_reverse_top_sort_order_compute):
	Renamed to post_order_compute and additional parameter added which
	allows the inclusion of entry and exit blocks into list.
	(mark_dfs_back_edges): Fixed comment.
	(flow_depth_first_order_compute): Renamed to
	pre_and_rev_post_order_compute additional parameter added which
	allows the inclusion of entry and exit blocks into list.
	* global.c (set_up_bb_rts_numbers): Call to
	flow_reverse_top_sort_order_compute renamed to
	post_order_compute.
	* var-tracking.c (vt_stack_adjustments): Fixed comment.
	(vt_find_locations): Call to
	flow_depth_first_order_compute renamed to
	pre_and_rev_post_order_compute.
	* cfgloop.c (flow_find_loops): Ditto.
	* tree-ssa-reassoc.c (init_reassoc): Ditto.
	* df.c (df_analyze_1, df_analyze_subcfg): Calls to
	flow_reverse_top_sort_order_compute renamed to post_order_compute
	and calls to flow_reverse_top_sort_order_compute renamed to
	post_order_compute.
	* basic_block.h: Ditto.

From-SVN: r108874
2005-12-20 23:10:49 +00:00
Geoffrey Keating
df239d2bf9 * btest-gcc.sh: Support -j option.
From-SVN: r108866
2005-12-20 20:20:24 +00:00
Roger Sayle
7d0e51567d decNumber.c (decStrEq): Cast string contents to unsigned char instead of int before calling tolower.
* decNumber.c (decStrEq): Cast string contents to unsigned char
        instead of int before calling tolower.

From-SVN: r108862
2005-12-20 18:48:47 +00:00
Roger Sayle
5e739d00c8 decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64.
* decNumber.c (decStrEq): Cast operands to int before calling
	tolower to avoid compilation warnings on Tru64.

From-SVN: r108858
2005-12-20 17:23:53 +00:00
Paolo Bonzini
212f829c09 Revert Ada-related part of the previous change.
2005-12-20  Paolo Bonzini  <bonzini@gnu.org>

        Revert Ada-related part of the previous change.

        * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET):
        Do not pass.
        * Makefile.tpl (BOOT_ADAFLAGS): Do not define.
        * Makefile.in: Regenerate.
        * configure.in: Do not include mt-ppc-aix target fragment.
        * configure: Regenerate.

config:
2005-12-20  Paolo Bonzini  <bonzini@gnu.org>

        Revert Ada-related part of the previous change.

        * mt-ppc-aix: Delete.

From-SVN: r108856
2005-12-20 17:19:18 +00:00
Roger Sayle
64068ca2f1 re PR rtl-optimization/25115 (Segmentation fault in pre_insert_copy_insn)
2005-12-20  Roger Sayle  <roger@eyesopen.com>
	    Paolo Bonzini  <bonzini@gnu.org>

	PR rtl-optimization/25115
	* gcse.c (pre_insert_copy_insn): Fall back to the sole
	SET in the insn if there is no SET for an
	expression that is equivalent to EXPR.


Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>

From-SVN: r108855
2005-12-20 17:06:14 +00:00
Richard Guenther
f5a7da0f62 re PR middle-end/24306 (va_arg gets confused when skipping over certain zero-sized types with -msse)
2005-12-20  Richard Guenther  <rguenther@suse.de>

	PR middle-end/24306
	* builtins.c (std_gimplify_va_arg_expr): Do not align
	va frame for zero sized types.
	* config/i386/i386.c (ix86_gimplify_va_arg): Likewise.

        * gcc.target/i386/pr24306.c: New testcase.

From-SVN: r108854
2005-12-20 16:20:27 +00:00
Kazu Hirata
338b5886ea re PR tree-optimization/25501 (Segfault)
gcc/
	PR tree-optimization/25501
	* tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
	used in the PHI argument corresponding to the edge from BB to
	DEST.

gcc/testsuite/
	PR tree-optimization/25501
	* testsuite/gcc.dg/tree-ssa/pr25501.c: New.

From-SVN: r108853
2005-12-20 14:47:07 +00:00
Richard Guenther
bd989e4c10 revert: tree-cfg.c (mark_used_vars): New function.
2005-12-20  Richard Guenther  <rguenther@suse.de>

        Revert
        2005-12-02  Richard Guenther  <rguenther@suse.de>

        * tree-cfg.c (mark_used_vars): New function.
        (dump_function_to_file): Dump only used VAR_DECLs.

        * gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL.

From-SVN: r108852
2005-12-20 14:35:29 +00:00
Mark Mitchell
68d04c6749 re PR c++/21228 (-Wunreachable-code produces spurious warnings for constructor)
PR c++/21228
	* decl.c (use_eh_spec_block): New function.
	(store_parm_decls): Use it.
	(finish_function): Likewise.
	
	PR c++/21228
	* g++.dg/warn/Wunreachable-code-2.C: New test.

From-SVN: r108851
2005-12-20 08:48:13 +00:00
Mark Mitchell
c3115fd2d9 re PR c++/24278 (ICE while trying to print out error)
PR c++/24278
	* init.c (expand_member_init): Print messages about baseclasses
	using %T rather than %D.
	PR c++/24278
	* g++.dg/template/ctor5.C: New test.

From-SVN: r108840
2005-12-20 04:59:42 +00:00
Mark Mitchell
6b20b203a6 re PR c++/24915 (Overload errors generated without template instantiations for class member templates)
PR c++/24915
	* class.c (add_method): Do not treat templates as identical unless
	their return types are the same.
	PR c++/24915
	* g++.dg/template/overload8.C: New test.

From-SVN: r108837
2005-12-20 04:44:20 +00:00
Roger Sayle
c2c22cd634 combine.c (try_combine): Improve splitting of binary operators by taking advantage of reassociative...
* combine.c (try_combine): Improve splitting of binary operators
	by taking advantage of reassociative transformations.

From-SVN: r108834
2005-12-20 04:17:58 +00:00
Jeff Law
ea65cd378b tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
* tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
	Strip away all type conversions after simplifying the
	condition.

        * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
        cases the forwarder block dominates the destination.

From-SVN: r108833
2005-12-19 21:08:01 -07:00
DJ Delorie
4322a86f32 reload1.c (spill_failure): Dump failed reload data to dump file.
* reload1.c (spill_failure): Dump failed reload data to dump file.
(find_reload_regs): Likewise.

From-SVN: r108830
2005-12-19 20:04:24 -05:00
Paolo Carlini
1b4454bfd5 stl_deque.h (deque<>::resize, [...]): Avoid troubles with ADL, user defined operators and _Deque_iterator.
2005-12-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_deque.h (deque<>::resize, _M_fill_assign):
	Avoid troubles with ADL, user defined operators and _Deque_iterator.
	(operator-(const _Deque_iterator<>&, const _Deque_iterator<>&):
	Add overload for left and right iterators of the same type.
	* include/bits/deque.tcc (erase(iterator)): Avoid troubles with ADL,
	user defined operators and _Deque_iterator.
	* testsuite/23_containers/deque/types/1.cc: Add.
	
	* include/bits/deque.tcc (_M_insert_aux(iterator, size_type,
	const value_type&)): Qualify with std:: fill call.

From-SVN: r108827
2005-12-20 00:29:18 +00:00
GCC Administrator
31ec030f39 Daily bump.
From-SVN: r108824
2005-12-20 00:17:21 +00:00
Zdenek Dvorak
9be7ee44c4 re PR tree-optimization/24793 (ICE: expected ssa_name, have var_decl in verify_ssa, at tree-ssa.c:746)
PR tree-optimization/24793
	* tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
	original reference if there are subvars.
	* tree-ssa-operands.c (get_tmr_operands): Handle subvars.

From-SVN: r108808
2005-12-19 20:10:11 +00:00
Kenneth Zadeck
0bae56c460 df.c (df_analyze_1, [...]): Corrected basic block number calculations for changes in entry and exit numbering.
2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>
	* df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
	Corrected basic block number calculations for changes in entry and
	exit numbering.
2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>

	* gcc.c-torture/compile/pr25483 : New test.

From-SVN: r108805
2005-12-19 19:41:35 +00:00
Zdenek Dvorak
780e37d370 tree-flow.h (struct var_ann_d): Change type of may_aliases field to VEC(tree, gc) *.
* tree-flow.h (struct var_ann_d): Change type of
	may_aliases field to VEC(tree, gc) *.
	(may_aliases): Declaration changed.
	* tree-ssa-alias.c (group_aliases, add_may_alias,
	replace_may_alias, dump_may_aliases_for,
	is_aliased_with, add_type_alias, new_type_alias):
	Work with VEC(tree, gc) * instead of varray.
	* tree-flow-inline.h (may_aliases): Ditto.
	* tree-ssa.c (verify_flow_insensitive_alias_info,
	verify_name_tags): Ditto.
	* tree-ssa-operands.c (add_stmt_operand): Ditto.

From-SVN: r108804
2005-12-19 19:13:21 +00:00
Paul Brook
b214e1e755 Fix previous mis-applied patch.
* config/m68k/m68k.md (m68k_output_function_prologue): Always call
	dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
	when frame_pointer_needed.

From-SVN: r108801
2005-12-19 18:08:13 +00:00
Volker Reichelt
2f201ba050 re PR c++/20552 (ICE in write_type, at cp/mangle.c:1579)
PR c++/20552
	* g++.dg/ext/typeof10.C: New test.

From-SVN: r108796
2005-12-19 17:28:30 +00:00
Paolo Bonzini
8ef1f2df8f commit changelogs for previous change
From-SVN: r108794
2005-12-19 17:04:55 +00:00
Paolo Bonzini
d19bca389d configure.in: Select appropriate fragments for PowerPC/AIX.
2005-12-19  Paolo Bonzini  <bonzini@gnu.org>

	* configure.in: Select appropriate fragments for PowerPC/AIX.
	* configure: Regenerate.

	* Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS,
	BOOT_CFLAGS, BOOT_LDFLAGS.
	* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS,
	BOOT_CFLAGS, BOOT_LDFLAGS.
	(TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET.
	(stage[+id+]-bubble): Pass flags recursively to the comparison target.
	(stage): Fail if we cannot complete the work.
	* Makefile.in: Regenerate.

From-SVN: r108793
2005-12-19 17:02:00 +00:00
J"orn Rennecke
c2fc545623 re PR rtl-optimization/20070 (If-conversion can't match equivalent code, and cross-jumping only works for literal matches)
* cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
	comes back.

From-SVN: r108792
2005-12-19 14:36:59 +00:00
J"orn Rennecke
4264bbf9bd struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p check.
* struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
	check.

From-SVN: r108791
2005-12-19 14:02:56 +00:00
Ben Elliston
f8ef405c57 * doc/install.texi (Configuration): Typo in Fortran subheading.
From-SVN: r108790
2005-12-20 00:02:32 +11:00
Nathan Sidwell
4d509057e8 * gcc.dg/mt-loopi1.c: New.
From-SVN: r108788
2005-12-19 11:01:38 +00:00
Nathan Sidwell
819f8bd767 mt.md (decrement_and_branch_until_zero): Add another scratch.
* config/mt/mt.md (decrement_and_branch_until_zero): Add another
	scratch.  Correct its reload split. Adjust its peephole.
	(doloop_end): Add additional scratch.
	(nop): Use 'nop'.
	* config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
	(mt_asm_output_opcode, mt_print_operand): Use 'nop'.
	(mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
	(mt_builtin_saveregs): Replace with ...
	(mt_setup_incoming_varargs): ... here.  Save just the varadic
	args.
	(mt_va_start): Remove.
	(mt_reorg_hazard): Ignore USE insns.  Don't call set_noop_p.
	(mt_machine_reorg): Split all insns here.
	(TARGET_SETUP_INCOMING_VARARGS): Override.
	* config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
	Set to CPU type.
	(EXPAND_BUILTIN_VA_START): Remove.

From-SVN: r108787
2005-12-19 10:51:46 +00:00
Jerry DeLisle
2803e9970d re PR libfortran/25463 (T edit descriptor and ADVANCE="no")
2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/25463
	* gfortran.dg/advance.f90: New test.

From-SVN: r108785
2005-12-19 07:02:05 +00:00
Jerry DeLisle
0a73639369 re PR libfortran/25463 (T edit descriptor and ADVANCE="no")
2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/25463
	* io/transfer.c (finalize_transfer): Fix execution order so that
	next_record is set to zero in all cases.

From-SVN: r108784
2005-12-19 06:52:33 +00:00
Anthony Green
57b3c68ec5 natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.
2005-12-18  Anthony Green  <green@redhat.com>

	* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress): 
	New helper function.
	(setOption): Use getLocalAddress.  Don't downcast value to
	InetAddress.
	(getOption): Use getLocalAddress.

From-SVN: r108779
2005-12-19 02:54:19 +00:00
Kenneth Zadeck
f988a24784 Fixed typo in changelog.
From-SVN: r108778
2005-12-19 02:36:45 +00:00
Kenneth Zadeck
3d5f877adf flow.c (update_life_info, [...]): Fixed latent bug that could happen if update_life_info was called with a blocks...
2005-12-17  Kenneth Zadeck <zadeck@naturalbridge.com>

        * flow.c (update_life_info, count_or_remove_death_notes): Fixed
	latent bug that could happen if update_life_info was called with a
	blocks parameter and the call to cleanup_cfg actually deleted one
	of those blocks.

From-SVN: r108777
2005-12-19 02:35:44 +00:00
Zdenek Dvorak
fd0bd27803 tree-ssa-structalias.c (update_alias_info): Remove handling of may_be_aliased (SSA_NAME_VAR (op)) case.
* tree-ssa-structalias.c (update_alias_info): Remove handling
	of may_be_aliased (SSA_NAME_VAR (op)) case.

From-SVN: r108776
2005-12-19 00:56:31 +00:00