Commit Graph

64234 Commits

Author SHA1 Message Date
Devang Patel a50c69c459 re PR target/18702 (mmix-knuth-mmixware testsuite failure: gcc.dg/cpp/isysroot-1.c)
PR 18702
       * gcc.dg/cpp/isysroot-1.c: Make this test darwin specific.

From-SVN: r91535
2004-11-30 11:38:15 -08:00
Zack Weinberg 80ded1258e mklibgcc.in: Correct calculation of libgcc_s_soname and libunwind_soname.
* mklibgcc.in: Correct calculation of libgcc_s_soname and
	libunwind_soname.  Use $out, not $outS, in commands for
	no-shared-library case.  Move EXTRA_MULTILIB_PARTS rules above
	library build rules, make $libunwind_so and $libgcc_s_so
	depend on them in the normal fashion, and filter those objects
	out of @shlib_objs@.

From-SVN: r91534
2004-11-30 19:35:26 +00:00
Janis Johnson 98705d7dfa altivec.h (vec_step_help): Support const vector types.
* config/rs6000/altivec.h (vec_step_help): Support const vector types.
	* g++.dg/ext/altivec-13.C: New test.

From-SVN: r91533
2004-11-30 19:15:38 +00:00
Andrew Pinski 209e170cf4 re PR tree-optimization/18298 (bad code from lim ssa pass with strcmp)
2004-11-30  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18298
        * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
        pass right after fold builtins.
2004-11-30  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18298
        * gcc.c-torture/execute/p18298.c: New test.

From-SVN: r91529
2004-11-30 07:38:43 -08:00
Andreas Krebbel 00bda9206b s390-modes.def: Added cc modes documentation.
2004-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390-modes.def: Added cc modes documentation.
	* config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
	s390_expand_addcc): Added cc mode comments.
	* config/s390/s390.md: Removed old cc mode documentation.

From-SVN: r91528
2004-11-30 15:31:12 +00:00
Mark Dettinger 017e0eb94d s390.c (struct processor_costs): New data type.
2004-11-30  Mark Dettinger  <dettinge@de.ibm.com>

	* config/s390/s390.c (struct processor_costs): New data type.
	(s390_cost, z900_cost, z990_cost): New global variables.
	(override_options): Initialize s390_cost.
	(s390_rtx_costs): Reimplement.

From-SVN: r91527
2004-11-30 15:14:05 +00:00
Kazu Hirata 472c29c364 * parser.c: Fix comment typos.
From-SVN: r91525
2004-11-30 15:07:39 +00:00
Ira Rosen 218d1b8834 re PR tree-optimization/18607 (Vectorizer: data_reference is overwritten in vect_analyze_data_refs)
PR tree-opt/18607
	* gcc.dg/vect/vect-89.c: New test.

From-SVN: r91523
2004-11-30 14:54:20 +00:00
Daniel Berlin e92845664c re PR tree-optimization/18673 (Tree-PRE is O(N^4) in the depth of the dominator tree)
2004-11-29  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/18673

	* tree-ssa-pre.c: Remove splay-tree.h include.
	(bitmap_value_replace_in_set): Fix to add if it does not exist.
	(find_or_generate_expression): Remove now-wrong condition.
	(create_expression_by_pieces): Fix condition and comment reason
	for it.
	(insert_aux): Fix condition and comment reasons for it.
	Factor insertion code from here.
	(insert_into_preds_of_block): To here.  Fix conditions in factored
	function and comment reasons for them.

From-SVN: r91522
2004-11-30 14:49:37 +00:00
Ira Rosen f2b60e4039 re PR tree-optimization/18607 (Vectorizer: data_reference is overwritten in vect_analyze_data_refs)
2004-11-30  Ira Rosen  <irar@il.ibm.com>

        PR tree-opt/18607
        * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
        variable for data_reference when looking for memtag.

From-SVN: r91521
2004-11-30 14:40:38 +00:00
Jakub Jelinek 1b3c8f4655 c-opts.c (check_deps_environment_vars): If spec != NULL, set deps_seen.
* c-opts.c (check_deps_environment_vars): If spec != NULL, set
	deps_seen.

From-SVN: r91520
2004-11-30 15:10:08 +01:00
Dorit Nuzman f093059e6b changed from 'PR tree-opt/18173' to 'PR target/18173'
From-SVN: r91519
2004-11-30 14:02:04 +00:00
Dorit Naishlos 37ea4e6756 tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use tree_low_cst instead of TREE_INT_CST_LOW.
* tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
	tree_low_cst instead of TREE_INT_CST_LOW.

From-SVN: r91518
2004-11-30 13:24:16 +00:00
Dorit Naishlos d75bf0cab4 tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for decls that are assembled before vectorization takes place.
* tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
	decls that are assembled before vectorization takes place.
	(vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.

From-SVN: r91517
2004-11-30 13:19:54 +00:00
Ulrich Weigand 9b09c842b5 passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks if local_alloc modified jumps.
* passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
	if local_alloc modified jumps.

From-SVN: r91516
2004-11-30 12:10:23 +00:00
Alan Modra 0050e8620a varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL on TLS symbols.
* varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
	on TLS symbols.
	* config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
	check.

From-SVN: r91515
2004-11-30 20:19:03 +10:30
Zack Weinberg 7370bebd3f * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
* unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.

	* mklibgcc.in: Drastic restructure for comprehensibility.
	Remove the old hidden-directive hack.
	Eliminate support for .txt files in LIB2ADD etc (never used).
	Eliminate support for assembly source files in LIB2ADDEH* and
	LIBUNWIND (also never used).
	Build up dependency lists for libraries incrementally.
	If we have SHLIB_LINK, compile each file twice, once for the
	static and once for the shared library; also probe for
	-fvisibility=hidden in the generated libgcc.mk.  If found,
	pass that and -DHIDE_EXPORTS to the compilation of every C
	source file going into the static library.  If found, generate
	hidden-directive lists for every assembly source file going
	into the static library, but incorporate them with -include
	instead of ld -r.
	Write comments into generated libgcc.mk to facilitate debugging.
	* Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
	* config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.

	* config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
	-Zdynamiclib case.

From-SVN: r91513
2004-11-30 08:15:42 +00:00
Richard Henderson afe849213e expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
* expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
        (handled_component_p): Likewise.
        * alias.c (can_address_p): Reformat and simplify.  Handle
        REAL/IMAGPART_EXPR.  Do not disable addressability based on
        alias set zero.
        * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
        check for REAL/IMAGPART_EXPR.
        * gimplify.c (gimplify_compound_lval): Likewise.
        * tree-cfg.c (verify_expr): Likewise.
        * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
        * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
        (convert_local_reference): Likewise.
        * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.

From-SVN: r91511
2004-11-29 19:52:37 -08:00
Alan Modra f2978871b2 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
From-SVN: r91510
2004-11-30 14:09:50 +10:30
John David Anglin c621016bc8 re PR pch/14940 (PCH largefile test fails on various platforms)
PR pch/14940
	* config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
	* config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
	and host_xmake_file using new host configuration files.

From-SVN: r91509
2004-11-30 03:11:28 +00:00
Matt Kraai 57ab8ba918 * MAINTAINERS (Write After Approval): Update my e-mail address.
From-SVN: r91508
2004-11-30 03:06:52 +00:00
Matt Kraai ecc30353f4 * pex-unix.c: Fix the spelling of longjmp.
From-SVN: r91507
2004-11-30 02:56:42 +00:00
Roger Sayle 0cc5dec18a reg-stack.c (change_stack): Improve algorithm used to pop regs off the stack to maximize ffreep usage and...
* reg-stack.c (change_stack): Improve algorithm used to pop regs
	off the stack to maximize ffreep usage and reduce fxch count.

From-SVN: r91506
2004-11-30 02:34:56 +00:00
Bryce McKinlay c54d30fae2 re PR libgcj/18699 (SIGSEGV in GC_local_gcj_malloc)
2004-11-29  Bryce McKinlay  <mckinlay@redhat.com>

        PR libgcj/18699
        Revert patches of 2004-11-26 and 2004-11-27.

From-SVN: r91505
2004-11-30 00:38:57 +00:00
James A. Morrison 1ac0ac8b90 re PR c/18596 (ICE in make_decl_rtl)
2004-11-26  James A. Morrison  <phython@gcc.gnu.org>

        PR middle-end/18596
        * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
        on errors.

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

From-SVN: r91504
2004-11-30 00:32:34 +00:00
GCC Administrator 1590d64e4f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91502.2
2004-11-30 00:16:31 +00:00
GCC Administrator 36cf004a74 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91501.2
2004-11-30 00:16:27 +00:00
Kelley Cook 68c8f6ab4b Makefile.am: Define ACLOCAL_AMFLAGS.
2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.am: Define ACLOCAL_AMFLAGS.
	* acinclude.m4: Remove.
	* stamp-h.in: Remove superfluous stamp file.
	* aclocal.m4, configure, Makefile.in: Regenerate.
	* testsuite/Makefile.in: Likewise.

From-SVN: r91499
2004-11-30 00:07:44 +00:00
Richard Kenner 7acda55251 expr.c (expand_expr_real_1, [...]): Properly handle REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
* expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
	REDUCE_BIT_FIELD by applying it to result, not input, of conversion.

From-SVN: r91498
2004-11-29 19:01:45 -05:00
R. Kelley Cook 0d0a093554 Correct my erronous ChangeLog entries.
From-SVN: r91496
2004-11-29 23:51:45 +00:00
Kelley Cook 2539bffe37 libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Re-import linux-gnu case from CVS libtool to always pass_all.
2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>

	* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Re-import linux-gnu case
	from CVS libtool to always pass_all.

	* libjava/configure, libffi/configure, libjava/configure,
	libobjc/configure, boehm-gc/configure: Regenerated.

From-SVN: r91495
2004-11-29 23:45:23 +00:00
Ben Elliston 2a983309cc * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
From-SVN: r91494
2004-11-30 10:29:50 +11:00
Ben Elliston 9d6ccbe6fd * g++.old-deja/g++.other/decl5.C: Remove remaining XFAILs.
From-SVN: r91493
2004-11-30 10:24:30 +11:00
Andrew Pinski e8233ac225 re PR c/18479 (__attribute__ ((visibility("default"))) in C causes internal compiler error)
2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/18479
        * gcc.dg/pr18479.c: New test.

2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/18479
        * c-common.c (handle_visibility_attribute): When the type decl
        is really a identifier node, warn about being ignored and return.

From-SVN: r91492
2004-11-29 15:11:30 -08:00
Tom Tromey 693ac16709 Main.java (main): Mention gcj-dbtool.
* gnu/gcj/tools/gcj_dbtool/Main.java (main): Mention gcj-dbtool.
	Recognize --help and --version.
	(usage): Mention gcj-dbtool.  Added "out" argument.
	(insist): Updated.

From-SVN: r91491
2004-11-29 22:26:00 +00:00
Richard Henderson bac8beb402 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
From-SVN: r91490
2004-11-29 13:06:11 -08:00
Hans-Peter Nilsson e59165e65a re PR target/18490 (mmix-knuth-mmixware testsuite failure: g++.old-deja/g++.law/bit-fields2.C)
PR target/18490
	* g++.old-deja/g++.law/bit-fields2.C: Reinstate skip for
	mmix-knuth-mmixware.

	* g++.old-deja/g++.other/local-alloc1.C: Reinstate skip for
	cris-*-elf* cris-*-aout* mmix-*-*

From-SVN: r91489
2004-11-29 21:00:30 +00:00
Steven Bosscher 6be85b25c2 cfgcleanup.c (outgoing_edges_match, [...]): Remove CASE_DROPS_THROUGH checks, it is never defined.
* cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
	Remove CASE_DROPS_THROUGH checks, it is never defined.
	* cfglyout.c (fixup_reorder_chain): Likewise.
	* cfgrtl.c (rtl_verify_flow_info): Likewise.
	* stmt.c (expand_case): Likewise.
	* cfgbuild.c (make_edges): Likewise.  Also remove force_fallthru,
	it is now always 0.
	* system.h (CASE_DROPS_THROUGH): Poison.
	* doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
	* doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.

	* config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.

From-SVN: r91488
2004-11-29 20:46:14 +00:00
Andrew Pinski 5e23162d1a re PR middle-end/18725 (another ICE on trivial invalid asm)
2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/18725
        * gcc.dg/pr18725.c: New test.

2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/18725
        * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
        shared always.

From-SVN: r91487
2004-11-29 12:36:36 -08:00
Hans-Peter Nilsson 3798c21bd8 re PR target/18488 (mmix-knuth-mmixware testsuite failure: g++.dg/opt/vt1.C)
PR target/18488
	* g++.dg/opt/vt1.C: Skip for mmix-*-*.

From-SVN: r91486
2004-11-29 20:30:08 +00:00
Hans-Peter Nilsson 226e69266f re PR target/18336 (mmix-knuth-mmixware testsuite failure: gcc.dg/20040813-1.c)
PR target/18336
	* gcc.dg/20040813-1.c: Skip for mmix-*-*.

From-SVN: r91485
2004-11-29 20:14:19 +00:00
Mark Mitchell 13034073ac Fix typo
From-SVN: r91484
2004-11-29 20:11:49 +00:00
Mark Mitchell fc6a28d763 re PR c++/18368 (C++ error message regression)
PR c++/18368
	* parser.c (cp_parser_check_for_definition_in_return_type): Take
	the defined type as a parameter, and inform the user about the
	possibility of a missing semicolon.
	(cp_parser_explicit_instantiation): Adjust call to
	cp_parser_check_for_definition_in_return_type.
	(cp_parser_init_declarator): Likewise.
	(cp_parser_member_declaration): Likewise.

	PR c++/18674
	* cp-tree.def (TYPENAME_TYPE): Remove discussion of implicit
	typename from comments.
	* cp-tree.h (TYPENAME_IS_ENUM_P): New macro.
	(TYPENAME_IS_CLASS_P): Likewise.
	(make_typename_type): Change prototype.
	* decl.c (struct_typename_info): New type.
	(typename_compare): Expect the second argument to be a
	typename_info, not a tree.
	(build_typename_type): Add tag_type parameter.  Do not create a
	new type until necessary.
	(make_typename_type): Add tag_type parameter.
	* error.c (TYPENAME_TYPE): Print tags other than "typename" if
	appropriate.
	* friend.c (make_friend_class): Adjust call to make_typename_type.
	* parser.c (cp_parser_make_typename_type): Likewise.
	(cp_parser_primary_expression): Adjust call to
	cp_parser_lookup_name.
	(cp_parser_unqualified_id): Adjust calls to cp_parser_class_name.
	(cp_parser_class_or_namespace_name): Likewise.
	(cp_parser_postfix_expression): Adjust calls to
	make_typename_type.
	(cp_parser_mem_initializer_id): Adjust calls to
	cp_parser_class_name.
	(cp_parser_type_parameter): Adjust calls to cp_parser_lookup_name.
	(cp_parser_template_name): Likewise.
	(cp_parser_template_argument): Likewise.
	(cp_parser_type_name): Adjust call to cp_parser_class_name.
	(cp_parser_elaborated_type_specifier): Adjust calls to
	make_typename_type and cp_parser_lookup_name.
	(cp_parser_namespace_name): Likewise.
	(cp_parser_class_name): Replace type_p parameter with tag_type.
	Adjust calls to make_typename_type and cp_parser_lookup_name.
	(cp_parser_class_head): Adjust calls to cp_parser_class_name.
	(cp_parser_base_specifier): Likewise.
	(cp_parser_lookup_name): Replace is_type parameter with tag_type.
	Adjust calls to make_typename_type and lookup_qualified_name.
	(cp_parser_lookup_name_simple): Adjust call to
	cp_parser_lookup_name.
	(cp_parser_constructor_declarator_p): Adjust call to
	cp_parser_class_name.
	* pt.c (convert_template_argument): Adjust all to
	make_typename_type.
	(tsubst_decl): Do not pre-substitute the type of the declaration.
	(tsubst): Hand off declarations more quickly.  Adjust call to
	make_typename_type.

	PR c++/18512
	* parser.c (cp_parser_postfix_dot_deref_expression): Robustify.

	PR c++/18674
	* g++.old-deja/g++.brendan/crash16.C: Adjust error messages.
	* g++.old-deja/g++.law/ctors5.C: Likewise.
	* g++.old-deja/g++.other/crash25.C: Likewise.

	PR c++/18674
	* g++.dg/template/error16.C: New test.

	PR c++/18512
	* g++.dg/template/crash29.C: New test.

From-SVN: r91483
2004-11-29 20:10:18 +00:00
Diego Novillo b7034e060b Add missing PR identifier for PR18712 fix.
From-SVN: r91482
2004-11-29 15:08:17 -05:00
Diego Novillo d21d51d099 tree-into-ssa.c (insert_phi_nodes_for): Pass argument WORK_STACK by reference.
* tree-into-ssa.c (insert_phi_nodes_for): Pass argument
	WORK_STACK by reference.
	Call VEC_safe_push instead of VEC_quick_push.
	Update all users.

testsuite/ChangeLog

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

From-SVN: r91481
2004-11-29 15:02:09 -05:00
Joseph Myers 86f029aa95 [multiple changes]
2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>

	PR c/7544
	* Makefile.in (c-lang.o): Update dependencies.
	* c-lang.c: Include "c-pragma.h".
	(finish_file): Call maybe_apply_pending_pragma_weaks.
	* c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
	* c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.

cp:
2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>

	* Make-lang.in (cp/decl2.o): Update dependencies.
	* decl2.c (finish_file): Call maybe_apply_pending_pragma_weaks.

objc:
2004-11-29  Joseph Myers  <joseph@codesourcery.com>

	* Make-lang.in (objc/objc-act.o): Update dependencies.
	* objc-act.c (objc_finish_file): Call
	maybe_apply_pending_pragma_weaks if not OBJCPLUS.

testsuite:
2004-11-29  Joseph Myers  <joseph@codesourcery.com>

	* g++.dg/ext/weak1.C, gcc.dg/weak/weak-10.c, objc.dg/weak-1.m: New
	tests.

From-SVN: r91479
2004-11-29 18:54:06 +00:00
Richard Henderson b0c2dee9fb re PR target/17224 (relocation truncated to fit: GPREL22)
PR target/17224
        * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
        outside the referenced object.

From-SVN: r91478
2004-11-29 10:42:26 -08:00
Kazu Hirata dda88f6f85 cfg.c (flow_obstack): Remove.
* cfg.c (flow_obstack): Remove.
	(flow_firstobj): Likewise.
	(init_flow): Remove all uses of flow_obstack.

From-SVN: r91477
2004-11-29 18:01:07 +00:00
Kazu Hirata 4edbbd3f25 tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge only when needed.
* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
	only when needed.

From-SVN: r91476
2004-11-29 18:00:01 +00:00
Kazu Hirata afb7cf1807 cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using EDGE_COUNT.
* cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
	EDGE_COUNT.

From-SVN: r91475
2004-11-29 17:58:27 +00:00