62499 Commits

Author SHA1 Message Date
Michael Matz
a252f3e84f * loop-doloop.c (doloop_optimize): Extend count.
From-SVN: r88750
2004-10-08 13:10:00 +00:00
Kazu Hirata
ee81147e28 * pt.c, search.c: Fix comment typos.
From-SVN: r88749
2004-10-08 13:04:09 +00:00
Andrew Pinski
646544e310 pch.c (cpp_write_pch_state): Remove variable z as it is not used.
2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        * pch.c (cpp_write_pch_state): Remove variable z as it is not
        used.
        (cpp_read_state): Remove unused variables, m, d and mac_count.

From-SVN: r88748
2004-10-08 05:50:12 -07:00
Kaz Kojima
07ea92d369 sh.md (tls_global_dynamic): Use MEM pattern for the first argument of CALL.
* config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
	first argument of CALL.
	(tls_local_dynamic): Likewise.

	* config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
	(prefetch): Convert to expander.

From-SVN: r88747
2004-10-08 11:44:20 +00:00
Joseph Myers
085d4f5587 * gcc.pot: Regenerate.
From-SVN: r88743
2004-10-08 11:34:22 +01:00
Joseph Myers
2ac2f1647d c-typeck.c (enum impl_conv): New.
* c-typeck.c (enum impl_conv): New.
	(convert_for_assignment): Use it.  Take tree for function called
	instead of its name.  Handle ObjC selectors for diagnostics at
	start of function.  Select diagnostic text within the function
	using full sentences for diagnsotics.  Use %qE to name functions
	in diagnostics.
	(convert_arguments, build_modify_expr,
	c_convert_parm_for_inlining, digest_init, c_finish_return): Update
	callers to convert_for_assignment.
	(warn_for_assignment): Remove.

testsuite:
	* gcc.dg/assign-warn-1.c, gcc.dg/assign-warn-2.c: New tests.
	* gcc.dg/warn-1.c, gcc.dg/noncompile/20020213-1.c,
	objc.dg/method-9.m: Update expected diagnostics.

From-SVN: r88741
2004-10-08 11:21:42 +01:00
Sebastian Pop
710acc5772 Remove the entry corresponding to a not yet committed patch:
2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>

From-SVN: r88740
2004-10-08 09:55:47 +00:00
Nick Clifton
da06f1aeb1 (symbian_possibly_export_base_class): Replace use of deleted...
(symbian_possibly_export_base_class): Replace use of deleted
TYPE_USES_VIRTUAL_BASECLASSES macro with TYPE_CONTAINS_VPTR_P.

From-SVN: r88739
2004-10-08 09:46:23 +00:00
Nathan Sidwell
5d5a519f6a cp-tree.h (dfs_walk, [...]): Remove.
* cp-tree.h (dfs_walk, dfs_walk_real, dfs_unmark, markedp,
	unmarkedp): Remove.
	(dfs_skip_bases, dfs_walk_all, dfs_walk_once): New.
	* class.c (struct find_final_overrider_data): Remove most_derived,
	vpath_list and vpath fields.  Add path field.
	(dfs_find_final_ocerrider_1): Add DEPTH parameter. Adjust.
	(dfs_find_final_overrider): Rename to ...
	(dfs_find_final_overrider_pre): ... here. Adjust.
	(dfs_find_final_overrider_post): Adjust.
	(dfs_find_final_overrider_q): Fold into
	dfs_find_final_overrider_pre.
	(find_final_overrider): Adjust dfs searching.
	(dfs_modify_vtables): Don't mark binfo here.
	(modify_all_vtables): Use dfs_walk_once.
	(build_vtt_inits): Likwise. Use dfs_walk_all.
	(dfs_build_secondary_vptr_vtt_inits): Don't mark binfo here.
	Return dfs_skip_bases as appropriate.
	(dfs_fixup_binfo_vtbls): Return dfs_skip_bases as appropriate.
	* init.c (dfs_initialized_vtbl_ptrs): Return dfs_skip_bases as
	appropriate. Don't mark binfo here.
	(initialize_vtbl_ptrs): Use dfs_walk_once.
	* search.c (struct vbase_info): Remove unused struct.
	(access_in_type): Use dfs_walk_once.
	(dfs_access_in_type): Don't mark binfo here.
	(dfs_accessible_queue_p, dfs_accessible_p) Remove.
	Fold into ...
	(accessible_r): ... here. New. Specialize dfs_walk_once.
	(accessible_p): Use accessible_r.
	(lookup_field_queue_p): Remove. Fold into ...
	(lookup_field_r): ... here. Adjust.
	(lookup_member): Use dfs_walk_all.
	(dfs_walk_real, dfs_walk): Replace with ...
	(dfs_walk_all, dfs_walk_once): ... these.
	(dfs_walk_once_r, dfs_unmark_r): Workers for dfs_walk_once.
	(dfs_unmark, unmarkedp, markedp): Remove.
	(dfs_get_pure_virtuals): Don't mark binfo here.
	(get_pure_virtuals): Use dfs_walk_once.
	(dfs_debug_unmarked_p): Remove. Fold into ...
	(dfs_debug_mark): ... here.
	(note_debug_info_needed): Use dfs_walk_all.

From-SVN: r88738
2004-10-08 09:33:55 +00:00
Kazuhiro Inaoka
69a53ee8f0 m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers form all_used_regs.
m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers form
  all_used_regs. Update call_really_used_regs.
  (CALL_REALLY_USED_REGISTERS): Define.
m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs with call_really_used_regs.

From-SVN: r88737
2004-10-08 08:21:38 +00:00
Alan Modra
29ef89522e sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o for -profile as well as -p and -pg.
* config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
	for -profile as well as -p and -pg.

From-SVN: r88736
2004-10-08 16:34:27 +09:30
Andrew Pinski
4a750a6d6a libgcc2.c (__moddi3): Cast &w to UDWtype*.
2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>

        * libgcc2.c (__moddi3): Cast &w to UDWtype*.

From-SVN: r88735
2004-10-07 20:07:38 -07:00
Andrew Pinski
9c859be169 libgcc2.c (__moddi3): Cast &w to UDWtype*.
2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>

        * libgcc2.c (__moddi3): Cast &w to UDWtype*.

From-SVN: r88734
2004-10-07 19:55:15 -07:00
Andrew Pinski
131263fa87 pt.c (tsubst_expr): Look passed the CLEANUP_POINT_EXPR to get the asm expression.
2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>

        * pt.c (tsubst_expr) <case ASM_EXPR>: Look passed the
        CLEANUP_POINT_EXPR to get the asm expression.

From-SVN: r88733
2004-10-07 19:46:00 -07:00
Bob Wilson
530f533138 xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS, [...]): New.
2004-10-07  Bob Wilson  <bob.wilson@acm.org>
        * xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS,
        XCHAL_HAVE_PREDICTED_BRANCHES, XCHAL_INST_FETCH_WIDTH): New.
        (XCHAL_EXTRA_SA_SIZE, XCHAL_EXTRA_SA_ALIGN): Delete.

From-SVN: r88727
2004-10-08 00:28:50 +00:00
Tobias Schlüter
edbfca8fd7 re PR fortran/17676 (Problem with user operator)
PR fortran/17676
* resolve.c (resolve_operator): Use correct operator name in message.

From-SVN: r88726
2004-10-08 02:16:28 +02:00
GCC Administrator
9c049d3808 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88724.2
2004-10-08 00:16:13 +00:00
GCC Administrator
f2061b07be Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88723.2
2004-10-08 00:16:10 +00:00
J"orn Rennecke
ebe550240f MAINTAINERS: Update my email address.
2004-10-07  J"orn Rennecke <joern.rennecke@st.com>

	* MAINTAINERS:  Update my email address.

From-SVN: r88721
2004-10-08 01:11:38 +01:00
Kazu Hirata
52ea044e54 tree-cfg.c (tree_block_forwards_to): Remove.
* tree-cfg.c (tree_block_forwards_to): Remove.
	* tree-flow.h: Remove the corresponding prototype.

From-SVN: r88719
2004-10-07 23:31:04 +00:00
Phil Edwards
ebd9dfc96d libstdc++.exp: Update list of undefined functions.
2004-10-07  Phil Edwards  <phil@codesourcery.com>

	* testsuite/lib/libstdc++.exp:  Update list of undefined functions.

From-SVN: r88716
2004-10-07 23:20:42 +00:00
Paolo Carlini
4681bebd90 list.tcc (operator=): Avoid iterator postincrement.
2004-10-07  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/list.tcc (operator=): Avoid iterator postincrement.
	* include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.

From-SVN: r88715
2004-10-07 22:44:30 +00:00
Kazu Hirata
d7d086f086 tree-flow-inline.h (phi_nodes): Remove an unnecessary check for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
* tree-flow-inline.h (phi_nodes): Remove an unnecessary check
	for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.

From-SVN: r88714
2004-10-07 22:24:43 +00:00
Benjamin Kosnik
3febde356c tr1: New.
2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>

	* include/tr1: New.
	* include/tr1/array: New.
	* include/Makefile.am (tr1_headers): New.
	(stamp-tr1): New.
	(install-headers): New.
	(allstamped): Add stamp-tr1.

	* include/ext/array_allocator.h: New.
	* include/Makefile.am: Add.
	* include/Makefile.in: Regenerate.
	* testsuite/ext/array_allocator/1.cc: New.
	* testsuite/ext/array_allocator/2.cc: New.

From-SVN: r88711
2004-10-07 22:06:23 +00:00
Richard Earnshaw
446e877825 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
From-SVN: r88710
2004-10-07 22:00:29 +00:00
Paul Brook
5615e8cdce transfer.c (finalize_transfer): Free internal streams.
* io/transfer.c (finalize_transfer): Free internal streams.
	* io/unix.c (mem_close): Free stream object.

From-SVN: r88709
2004-10-07 21:30:50 +00:00
Geoffrey Keating
add2402ef0 Radar 3813796
2004-10-07  Geoffrey Keating  <geoffk@apple.com>

	Radar 3813796
	* config/rs6000/rs6000.c (rs6000_generate_compare): When
	flag_trapping_math is in effect, don't generate subtract
	instructions.

Index: testsuite/ChangeLog
2004-10-07  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/ppc-fsel-3.c: New file.
	* gcc.dg/ppc-fsel-1.c: Add -fno-trapping-math, update comment.

From-SVN: r88707
2004-10-07 21:16:28 +00:00
Ulrich Weigand
0dfa6c5eae s390-protos.h (s390_narrow_logical_operator): Add.
* config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
	* config/s390/s390.c (s390_narrow_logical_operator): New function.
	(s390_extra_constraint_str): Add 'A' constraints.
	(s390_const_ok_for_constraint_p): Add 'Nx' constraints.
	* config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
	(CONSTRAINT_LEN): Likewise.
	* config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
	("*andsi3_zarch", "*andsi3_esa"): Likewise.
	("*andhi3_zarch", "*andhi3_esa"): Likewise.
	("*iordi3"): Add OI alternative and splitter.
	("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
	("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
	("*xordi3"): Add XI alternative and splitter.
	("*xorsi3", "*xorhi3"): Likewise.

From-SVN: r88705
2004-10-07 20:44:28 +00:00
Paul Brook
82e7998648 string_intrinsics.c (string_verify): Fix off by one error.
* intrinsics/string_intrinsics.c (string_verify): Fix off by one
	error.
testsuite/
	* gfortran.dg/intrinsic_verify_1.f90: New test.

From-SVN: r88704
2004-10-07 20:19:32 +00:00
Richard Sandiford
94b9aa66d8 mips.c (mips_function_rodata_section): New function.
* config/mips/mips.c (mips_function_rodata_section): New function.
	(TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.

From-SVN: r88703
2004-10-07 20:08:41 +00:00
Joseph Myers
63b191fe51 * de.po: Update.
From-SVN: r88699
2004-10-07 19:32:14 +01:00
Mark Mitchell
c7222c0224 cp-tree.h (ICS_USER_FLAG): Remove comment about obsolete flag.
* cp-tree.h (ICS_USER_FLAG): Remove comment about obsolete flag.
	(DECL_MEMBER_TEMPLATE_P): New macro.
	(is_member_template): Remove.
	(class_method_index_for_fn): New function.
	* pt.c (build_over_call): Use DECL_MEMBER_TEMPLATE_P.
	* class.c (finish_struct_methods): Remove out-of-date comment.
	* decl.c (copy_fn_p): Use DECL_MBMER_TEMPLATE_P.
	* decl2.c (check_classfn): Use DECL_MEMBER_TEMPLATE_P and
	class_method_index_for_fn.
	* pt.c (is_member_template): Remove.
	(is_member_template_class): Likewise.
	(optimize_specialization_lookup_p): New function.
	(retrieve_specialization): Optimize lookups for members that are
	not member templates.
	(register_specialization): Adjust accordingly.
	(build_template_decl): Add member_template_p parameter.  Set
	DECL_MEMBER_TEMPLATE_P.
	(process_partial_specialization): Adjust call to
	retrieve_specialization.
	(push_template_decl_real): Determine whether the template is a
	member template.
	(lookup_template_class): Use retrieve_specialization.
	(tsubst_decl): Adjust call to retrieve_specialization.
	(tsubst_exception_specification): New function.
	(tsubst): Use it.
	(tsubst_copy): Use DECL_MEMBER_TEMPLATE_P.
	(instantiate_template): Adjust call to retrieve_specialization.
	(regenerate_decl_from_template): Do not actually generate a new
	DECL.
	(instantiate_decl): Adjust call to retrieve_specialization.
	(class_method_index_for_fn): New method.

From-SVN: r88697
2004-10-07 17:48:36 +00:00
Paul Brook
d0e75c71c9 * gfortran.dg/empty_format_1.f90: Remove stray commas.
From-SVN: r88696
2004-10-07 17:45:40 +00:00
Tobias Schlüter
9e941b4a5d intrinsic_mvbits.f90, ishft.f90: Add more tests.
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
gfortran.dg/ishft.f90: Add more tests. Add dg-warning in followup
commit.

From-SVN: r88695
2004-10-07 19:07:18 +02:00
Devang Patel
21213b4c93 altivec.md (UNSPEC_VCMPBFP, [...]): New constant defines.
* rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
        UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
        UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
        UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
        UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
        UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
        UNSPEC_VCONDU_V16QI): New constant defines.
        (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
        vconduv16qi): New patterns.
        * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
        * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
        (get_vec_cmp_insn): Same.
        (get_vsel_insn): Same.
        (rs6000_emit_vector_compare): Same.
        (rs6000_emit_vector_select): Same.
        (INSN_NOT_AVAILABLE): New.

From-SVN: r88692
2004-10-07 09:05:35 -07:00
Roger Sayle
03d3f46d57 re PR libstdc++/17850 (bootstrap failure - libstdc++ uses strtold when undeclared)
PR libstdc++/17850
	* configure.ac: Newlib does not provide strtold.
	* configure: Regenerate.

From-SVN: r88691
2004-10-07 15:52:26 +00:00
Tobias Schlüter
5d874166a8 primary.c (match_boz_constant): Allow kind parameter suffixes.
fortran/
* primary.c (match_boz_constant): Allow kind parameter suffixes.
Move standard warning further to the front.

testsuite/
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
gfortran.dg/ishft.f90: Add more tests.

From-SVN: r88690
2004-10-07 17:12:06 +02:00
Zdenek Dvorak
14de86fa0a re PR tree-optimization/17749 (ICE with recursive function)
PR tree-optimization/17749
	* tree-tailcall.c (find_tail_calls): Check that parameter is
	a gimple_reg.

From-SVN: r88689
2004-10-07 14:21:15 +00:00
Andrew Pinski
ca05904340 parser.c (cp_parser_asm_definition): Look passed the CLEANUP_POINT_EXPR to get the asm expression.
cp/ChangeLog:
	* parser.c (cp_parser_asm_definition): Look passed the
	CLEANUP_POINT_EXPR to get the asm expression.

testsuite/ChangeLog:
	* g++.dg/ext/asm6.C: Remove extraneous semicolon.

From-SVN: r88688
2004-10-07 06:48:27 -07:00
Kazu Hirata
93348822aa * config/ia64/ia64.c: Fix a comment typo.
From-SVN: r88686
2004-10-07 13:18:34 +00:00
Kazu Hirata
54c2d93172 * trans-stmt.c: Fix a comment typo.
From-SVN: r88685
2004-10-07 13:16:16 +00:00
Eric Botcazou
224edf728f * doc/install.texi (*-*-solaris2*): Fix marker for URL.
From-SVN: r88682
2004-10-07 12:14:45 +00:00
Giovanni Bajo
09ebcffa19 re PR c++/17115 (-Winline does not respect __attribute__((__noinline__)))
PR c++/17115
	* tree-inline.c (expand_call_inline): Do not warn for functions
	marked with attribute noinline.

	PR c++/17115
	* g++.dg/warn/Winline-4.C: New test.

From-SVN: r88678
2004-10-07 08:36:28 +00:00
Eric Botcazou
22d66adf5d re PR target/17862 (internal compiler error: in sparc_asm_function_prologue)
PR target/17862
	* config/sparc/sparc.c (sparc_output_mi_thunk): Set
	current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.

	* config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
	of 0 as 4th argument to pass_by_reference.
	Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.

From-SVN: r88674
2004-10-07 07:55:39 +00:00
Eric Christopher
298321642a sh.c (sh_dwarf_calling_convention): Fix renesas dwarf attribute.
2004-10-06  Eric Christopher  <echristo@redhat.com>

	* config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
	attribute.

From-SVN: r88671
2004-10-07 06:48:22 +00:00
Richard Sandiford
ac6b57e5ec re PR target/17770 (No NOP after LWL with -mips1)
PR target/17770
	* config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.

From-SVN: r88670
2004-10-07 06:41:25 +00:00
Zdenek Dvorak
a82bbcbbbe re PR rtl-optimization/17791 (doloop can produce wrong code causes Ada bootstrap failure)
PR rtl-optimization/17791
	* loop-doloop.c (doloop_modify): Take number of iterations as
	argument.
	(doloop_optimize): Extend or shorten the number of iterations
	when changing mode of counter register.
	* loop-iv.c (lowpart_subreg): Export.
	* rtl.h (lowpart_subreg): Declare.

From-SVN: r88668
2004-10-07 06:20:34 +00:00
Christian Ehrhardt
1313b31fbb Fix wrong attribution.
From-SVN: r88666
2004-10-07 06:15:40 +00:00
Zdenek Dvorak
a746fd8cdd re PR tree-optimization/17806 (compiler error: in verify_loop_structure, at cfgloop.c:1491 , works -O2, breaks with -O3)
PR tree-optimization/17806
	* cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
	* cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
	flags moved to split_edge.

From-SVN: r88665
2004-10-07 06:14:15 +00:00
Christian Ehrhardt
cc67d2fa80 * gcc.c-torture/compile/20041007-1.c: New test.
From-SVN: r88662
2004-10-07 06:08:15 +00:00