Commit Graph

62651 Commits

Author SHA1 Message Date
Richard Earnshaw b79187bb54 configure.ac: Use $LN_S for creating symlinks (not $LN).
* configure.ac: Use $LN_S for creating symlinks (not $LN).
* configure: Regenerate.

From-SVN: r89036
2004-10-14 13:10:56 +00:00
Kaveh R. Ghazi c7525a642e install.texi (*-*-solaris2*): Update with info about kernel patches to solve spurious testsuite failures.
* doc/install.texi (*-*-solaris2*): Update with info about kernel
	patches to solve spurious testsuite failures.

From-SVN: r89033
2004-10-14 12:18:15 +00:00
Dorit Naishlos f09232570b tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
* tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
        Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
        (vect_analyze_operations): Make sure the vectorization factor > 1. Add
        gcc_assert under ENABLE_CHECKING.
        (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
        get_vectype_for_scalar_type).

        (vect_get_vec_def_for_operand): Remove redundant variables.
        (vect_transform_loop): Likewise.

From-SVN: r89032
2004-10-14 08:36:09 +00:00
Richard Sandiford a25036452a arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and global for -mcaller-super-interworking.
* config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
	global for -mcaller-super-interworking.
	(CALLER_INTERWORKING_SLOT_SIZE): New macro.
	* config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
	CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
	not need a frame pointer.
	(arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
	the soft frame pointer offset.
	(thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
	* config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
	_interwork_{r7,r11}_call_via_rN if some arguments are passed on
	the stack.  Use frame_pointer_needed to choose between them.
	* config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
	(interwork_with_frame): New macro.
	(interwork): Add _interwork_{r7,r11}_call_via_rN().

From-SVN: r89031
2004-10-14 07:37:11 +00:00
Ben Elliston ef9af07733 re PR other/17900 (GCC's source path in ICE is wrong)
PR other/17900
	* diagnostic.c (trim_filename): Fix logic bug in walking backwards
	up the filename looking for a previous directory separator.

From-SVN: r89029
2004-10-14 17:15:37 +10:00
Joseph Myers ac24fc258d errors.c (_cpp_begin_message): Print "error: " for errors.
libcpp:
	* errors.c (_cpp_begin_message): Print "error: " for errors.

gcc/testsuite:
	* gcc.dg/cpp/error-1.c: New test.

From-SVN: r89025
2004-10-14 01:56:22 +01:00
Joseph Myers 81da229b08 c-tree.h (enum c_typespec_kind, [...]): New.
* c-tree.h (enum c_typespec_kind, struct c_typespec,
	parser_xref_tag): New.
	(struct c_declspecs): Add tag_defined_p.  Adjust definition of
	typedef_p.
	(declspecs_add_type): Adjust prototypes.
	* c-parse.in (%union): Add tstype.
	(typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
	typespec_reserved_attr, typespec_nonreserved_nonattr,
	structsp_attr, structsp_nonattr): Change to tstype.  Update
	actions.
	* c-decl.c (build_null_declspecs): Initialize tag_defined_p.
	(declspecs_add_type): Update to take struct c_typespec argument.
	Set tag_defined_p and typedef_p as appropriate.
	(xref_tag): Rename to parser_xref_tag and replace by wrapper.
	Update to return struct c_typespec.
	(shadow_tag_warned): Don't let empty declarations with qualifiers
	or storage class specifiers redeclare a tag if a previous
	declaration is visible.

testsuite:
	* gcc.dg/c99-tag-3.c, gcc.dg/declspec-14.c: New tests.

From-SVN: r89021
2004-10-14 01:34:01 +01:00
GCC Administrator 599a049f76 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89019.2
2004-10-14 00:16:29 +00:00
GCC Administrator 5dba7f2df3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89018.2
2004-10-14 00:16:22 +00:00
Richard Henderson d8cb061445 re PR debug/15860 (No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers)
PR debug/15860
        * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
        for DECL_INCOMING_RTL.

From-SVN: r89012
2004-10-13 16:43:56 -07:00
Hans-Peter Nilsson bf6ac87cc8 re PR target/17984 (Recent peephole2:s may cause internal compiler errors (2))
PR target/17984
	* config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
	trunc_int_for_mode for constants used in shortened mode.

From-SVN: r89011
2004-10-13 23:35:03 +00:00
Hans-Peter Nilsson 5a78838a41 re PR target/17984 (Recent peephole2:s may cause internal compiler errors (2))
PR target/17984
	* gcc.dg/cris-peep2-xsrand2.c: New test.

From-SVN: r89010
2004-10-13 23:32:15 +00:00
Richard Henderson 61f03abaa5 re PR c/17384 (ICE with mode attribute on structures)
PR c/17384
        * c-common.c (handle_mode_attribute): Disallow mode changes that
        alter the CODE of the top-level type.

        * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
        integer from internal limits macros.
        * config/i386/mm3dnow.h (__v2sf): Fix base type.

From-SVN: r89009
2004-10-13 16:31:23 -07:00
Richard Henderson 32e66afd7f re PR debug/13841 (missing debug info for _Complex function arguments)
PR debug/13841
        * function.c (instantiate_decl): Recurse for CONCAT.

From-SVN: r89007
2004-10-13 16:25:13 -07:00
David Edelsohn 9a3c428bc0 (extzvdi_internal1): Add attribute "compare".
(extzvdi_internal2): Same.

From-SVN: r89004
2004-10-13 18:41:36 -04:00
Tobias Schlüter 19e4c59dbf trans-decl.c (generate_local_decl): Simplify logic, fix comment typo.
* trans-decl.c (generate_local_decl): Simplify logic, fix comment
typo.
(gfc_generate_function_code): Fix formatting issue.

From-SVN: r89003
2004-10-14 00:37:12 +02:00
David Edelsohn 520308bcb8 rs6000.md (andsi3): Add attribute "compare" for andi./andis.
* config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
        andi./andis.
	(anddi3): Same.

From-SVN: r89002
2004-10-13 18:20:24 -04:00
Tom Tromey 090359d60e * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
From-SVN: r89001
2004-10-13 20:53:43 +00:00
Dale Johannesen 2f59e40ed6 extend.texi (Extended Asm): Rewrite asm volatile description.
2004-10-13  Dale Johannesen  <dalej@apple.com>

       * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.

From-SVN: r88999
2004-10-13 19:14:44 +00:00
Frank Ch. Eigler ddfabf89bb configure.ac: Check for more headers, functions.
2004-10-12  Frank Ch. Eigler  <fche@redhat.com>

	* configure.ac: Check for more headers, functions.
	* mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for
	tracking overridden FILE buffers.
	(fopen, setvbuf): New/revised hook functions for buffer overriding.
	(setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto.
	(fflush): Accept given NULL stream (means "all streams").
	* mf-runtime.h.in:
	* mf-runtime.c (__mfu_check): Accept accesses that span adjacent
	HEAP/GUESS objects.
	(LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively.
	(__mf_adapt_cache): Use them all.
	* testsuite/libmudflap.c/pass35-frag.c: Update warning message.
	* testsuite/libmudflap.c++/ctors.exp: Ditto.
	* testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests.
	* configure, config.h.in: Regenerated.

From-SVN: r88996
2004-10-13 18:27:16 +00:00
Frank Ch. Eigler ccab73c3b7 toplev.c (compile_file): Call mudflap_finish_file from here ...
2004-10-13  Frank Ch. Eigler  <fche@redhat.com>

	* toplev.c (compile_file): Call mudflap_finish_file from here ...
	* c-decl.c (c_write_global_declarations): ... instead of here ...
	* cp/decl.c (cp_finish_file): ... and here.
	* tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.

From-SVN: r88995
2004-10-13 18:18:18 +00:00
Andrew Pinski 163075a027 tree-ssa-dom.c (record_range): Free the element if we are not going to use it.
2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-dom.c (record_range): Free the element if we are not
        going to use it.

From-SVN: r88994
2004-10-13 10:27:31 -07:00
Kazuhiro Inaoka a472e9d4e6 Makefile.am: Add m32r support.
* Makefile.am: Add m32r support.
* configure.ac: Likewise.
* Makefile.in: Regenerate.
* confiugre: Regenerate.
* src/types.c: Add m32r port to FFI_INTERNAL_TYPEDEF
 (uint64, sint64, double, longdouble)
* src/m32r: New directory.
* src/m32r/ffi.c: New file.
* src/m32r/sysv.S: Likewise.
* src/m32r/ffitarget.h: Likewise.

From-SVN: r88993
2004-10-13 17:20:24 +00:00
Andrew Pinski bcd46a7c65 re PR c++/17661 (ICE in create_tmp_var)
2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17661
        * testsuite/g++.dg/expr/for2.C: New test.

2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17661
        * semantics.c (finish_for_expr): Convert expression to void
        so that we don't create temporaries for a?b:c.

From-SVN: r88992
2004-10-13 10:18:16 -07:00
Tom Tromey 38467a0deb re PR java/15578 (gcj doesn't support -extdirs)
PR java/15578:
	* lang.opt (--extdirs): Document.
	* jvspec.c (lang_specific_driver): Recognize -encoding and
	-extdirs.

From-SVN: r88991
2004-10-13 17:04:57 +00:00
Tom Tromey e89f282171 re PR java/15578 (gcj doesn't support -extdirs)
PR java/15578:
	* gcc.c (option_map): Added --extdirs and --encoding.

From-SVN: r88990
2004-10-13 17:03:56 +00:00
Eric Botcazou 65e71cd635 Fix incomplete commit.
From-SVN: r88986
2004-10-13 14:09:05 +00:00
Eric Botcazou b9bf58e5fa re PR target/14454 (virtual function with vararg won't compile)
PR target/14454
	* config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
	sparc_can_output_mi_thunk.
	(sparc_output_mi_thunk): Simplify handling of delta offset.  Add
	handling of vcall offset.
	(sparc_can_output_mi_thunk): New predicate.
	* doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
	(TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.

	* config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.

	* config/sparc/sparc.md (movdi): Remove redundant test.

From-SVN: r88985
2004-10-13 14:04:32 +00:00
Paolo Bonzini 2a10039cc9 tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL, TDF_IPA from -fdump-tree-*-all.
2004-10-13  Paolo Bonzini  <bonzini@gnu.org>

	* tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
	TDF_IPA from -fdump-tree-*-all.

From-SVN: r88984
2004-10-13 13:48:16 +00:00
Paul Brook fe01343558 arm-protos.h (arm_load_pic_register): Update prototype.
* config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
	* config/arm/arm.c (thumb_find_work_register): Update comments.
	(arm_load_pic_register): Add argument for scratch register.
	(arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
	* config/arm/arm.md (builtin_setjmp_receiver): Ditto.

From-SVN: r88982
2004-10-13 12:48:03 +00:00
Kazu Hirata f0ec2b9a29 * search.c: Fix a comment typo.
From-SVN: r88981
2004-10-13 12:02:25 +00:00
Kazu Hirata 50300b4cc4 * tree-data-ref.c: Fix comment typos.
From-SVN: r88980
2004-10-13 11:58:10 +00:00
Jakub Jelinek 69d4980288 re PR tree-optimization/17724 (wrong dominator (eh/fold all builtins) related)
PR tree-optimization/17724
	* tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.

	* g++.dg/opt/pr17724-1.C: New test.
	* g++.dg/opt/pr17724-2.C: New test.
	* g++.dg/opt/pr17724-3.C: New test.
	* g++.dg/opt/pr17724-4.C: New test.
	* g++.dg/opt/pr17724-5.C: New test.
	* g++.dg/opt/pr17724-6.C: New test.

Co-Authored-By: Zdenek Dvorak <dvorakz@suse.cz>

From-SVN: r88979
2004-10-13 13:27:01 +02:00
Dorit Naishlos 13c62176e5 rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>

        * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
        (altivec_builtin_mask_for_store): Likewise.
        (altivec_init_builtins): Use lang_hooks.builtin_function to
        create the decls for builtin_altivec_mask_for_load/store.

From-SVN: r88978
2004-10-13 11:04:24 +00:00
Nick Clifton 1ce3d58afa Remove inclusion of loop.h
From-SVN: r88977
2004-10-13 10:50:30 +00:00
Kazuhiro Inaoka 66c0e3b596 Add support for M32R
From-SVN: r88976
2004-10-13 10:34:21 +00:00
Paolo Carlini cbb0dcef12 basic_string.tcc (_S_create): Use consistently the exponential policy, simplify.
2004-10-13  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (_S_create): Use consistently
	the exponential policy, simplify.
	* testsuite/performance/21_strings/string_append_2.cc: New.

	* include/ext/array_allocator.h (allocate): Fix bad_alloc check.
	* testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
	that case sizeof(_Rep) == 24).

From-SVN: r88972
2004-10-13 08:58:41 +00:00
Ben Elliston f76ccf602e basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
* basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
	(ei_container): New; renamed.
	(ei_start, ei_last): New macros.
	(ei_start_1, ei_last_1): Renamed from ei_start.
	(ei_last_1, ei_end_p): Use ei_container() where applicable.
	(ei_one_before_end_p, ei_next, ei_edge): Likewise.
	* gcse.c (remove_reachable_equiv_notes): Use ei_container().

From-SVN: r88966
2004-10-13 14:33:28 +10:00
Sebastian Pop 86df10e35e Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>

	* Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
	* cfgloop.c (initialize_loops_parallel_p): New.
	(flow_loops_find): Initialize the parallel_p field to true for all
	the loops.
	* tree-ssa-loop-niter.c: Include "tree-data-ref.h".
	(estimate_numbers_of_iterations_loop): Infers the loop bounds from
	the size of the data accessed in the loop.
	(struct nb_iter_bound): Moved...
	* cfgloop.h (struct nb_iter_bound): ... here.
	(estimated_nb_iterations, parallel_p): New fields in struct loop.
	(record_estimate): Declare extern here.
	* tree-chrec.c: Fix comments.
	(nb_vars_in_chrec): New function.
	* tree-chrec.h (nb_vars_in_chrec): Declared here.
	* tree-data-ref.c: Don't include lambda.h, that is already included
	in tree-data-ref.h.
	(tree_fold_divides_p): Don't check for integer_onep.
	(tree_fold_bezout): Removed.
	(gcd): New static duplicated function.
	(int_divides_p, dump_subscript): New.
	(dump_data_dependence_relation): Use dump_subscript.
	(dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
	estimate_niter_from_size_of_data): New.
	(analyze_array_indexes, analyze_array): Call
	estimate_niter_from_size_of_data during	the detection of array
	references.  Pass in a pointer to the statement that contains the
	array reference.
	(all_chrecs_equal_p): New.
	(compute_distance_vector): Renamed compute_subscript_distance.
	Deal with multivariate conflict functions.
	(initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
	DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
	(non_affine_dependence_relation): New.
	(analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
	analyze_siv_subscript, analyze_miv_subscript,
	analyze_overlapping_iterations, subscript_dependence_tester):
	Initialize and return last_conflicts function.
	(initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
	compute_overlap_steps_for_affine_1_2): New.
	(analyze_siv_subscript_affine_cst): Removed.
	(analyze_subscript_affine_affine): Disprove dependences based on the
	iteration domains.  Solve the univariate dependence case as before,
	but use lambda_matrix_right_hermite instead of tree_fold_bezout.
	Implement the multivariate case of 2 versus 1 variables.
	(build_classic_dist_vector, build_classic_dir_vector): Implement some
	unhandled cases.
	(find_data_references_in_loop): Compute and initialize
	loop->estimated_nb_iterations and loop->parallel_p.
	(analyze_all_data_dependences): Modify the debug dump order.
	* tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
	subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
	(SUB_LAST_CONFLICT, subscript->last_conflict,
	data_dependence_relation->affine_p, data_dependence_relation->size_vect,
	DDR_AFFINE_P, DDR_SIZE_VECT): New.
	(find_data_references_in_loop, initialize_data_dependence_relation,
	dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.

From-SVN: r88965
2004-10-13 03:48:03 +00:00
Kelley Cook 06c3418c6c configure: Regenerate.
2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>

	* configure: Regenerate.

From-SVN: r88962
2004-10-13 00:55:22 +00:00
GCC Administrator 76c1875c9d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88960.2
2004-10-13 00:16:45 +00:00
GCC Administrator 194dd0a1ca Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88958.2
2004-10-13 00:16:40 +00:00
Paolo Carlini a3186d4e60 [multiple changes]
2004-10-12  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/17948
	* include/bits/stl_tree.h (erase(iterator, iterator)): Revert
	wrong commit of 2004-10-07.

2004-10-12  Scott Snyder  <snyder@fnal.gov>

	PR libstdc++/17948
	* testsuite/23_containers/set/modifiers/17948.cc: New.

From-SVN: r88956
2004-10-13 00:11:14 +00:00
Kelley Cook c8e6cd4166 configure.in (*-*-cygwin*): Supress warning if newlib not present.
2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in (*-*-cygwin*): Supress warning if newlib not present.
	* configure: Regenerate.

From-SVN: r88954
2004-10-12 22:49:34 +00:00
Fariborz Jahanian 661fc48614 Restored acciddental check-in.
From-SVN: r88951
2004-10-12 20:51:50 +00:00
Fariborz Jahanian 01d8c00bfc re PR tree-optimization/17892 (gcc-4.0 should not reassociate floating point add or multiplication)
PR 17892.
OKed by Roger Sayle.

From-SVN: r88950
2004-10-12 20:50:08 +00:00
Ulrich Weigand 967af719d2 s390.c (s390_va_start): Use build_va_arg_indirect_ref.
* config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
	(s390_gimplify_va_arg): Likewise.

From-SVN: r88949
2004-10-12 20:37:15 +00:00
Daniel Jacobowitz 888d2cd6b5 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
(MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
	(REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
	* regclass.c (record_address_regs): Remove ifdef.  Use
	REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
	* regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
	definition.
	(scan_rtx_address, replace_oldest_value_addr): Use
	REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
	* reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
	unnecessary definitions.
	(find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
	and MODE_BASE_REG_REG_CLASS.
	* config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
	(MODE_BASE_REG_REG_CLASS): Define.
	(REGNO_MODE_OK_FOR_REG_BASE_P): Define.
	(REG_MODE_OK_FOR_REG_BASE_P): Define.
	* doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
	REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.

From-SVN: r88948
2004-10-12 19:28:56 +00:00
Daniel Berlin 3d4818fd4d The apostrophe was there to signal that the s was coming
From-SVN: r88946
2004-10-12 18:31:42 +00:00
Daniel Berlin 7dcdacadb2 tree-ssa-alias.c (verify_name_tags): New function.
2004-10-12  Daniel Berlin <dberlin@dberlin.org>

	* tree-ssa-alias.c (verify_name_tags): New function.
	(verify_flow_sensitive_alias_info): Remove code that used to check name tags.
	(verify_alias_info): Call verify_name_tags.

From-SVN: r88945
2004-10-12 18:24:45 +00:00