Commit Graph

74730 Commits

Author SHA1 Message Date
Eric Christopher 4f8bdef929 darwin-c.c (darwin_ms_struct): Move this
2006-04-28  Eric Christopher  <echristo@apple.com>

        * config/darwin-c.c (darwin_ms_struct): Move this
        (darwin_set_default_type_attributes): and this...
        * config/darwin.c: ... here.
        * config/darwin.h (darwin_ms_struct): Declare.

From-SVN: r113358
2006-04-28 20:52:01 +00:00
Andrew MacLeod a5f844647b The condition the assert was flawed.
2006-04-28  Andrew MacLeod  <amacleod@redhat.com>

	* tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.

From-SVN: r113356
2006-04-28 20:39:18 +00:00
Roger Sayle a0f0ab9fc1 re PR c/25309 (ICE on initialization of a huge array)
PR c/25309
	* c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
	(push_array_bounds): Delete prototype.  Change BOUNDS argument to
	an unsigned HOST_WIDE_INT.
	(print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
	array index.
	(really_start_incremental_init): No need to call convert because
	bitsize_zero_node is already of type bitsizetype.
	(push_init_level): Extract the value of constructor_index as an
	unsigned HOST_WIDE_INT quantity, using tree_low_cst.
	(process_init_element): Likewise.

	* gcc.dg/large-size-array-2.c: New test case.

From-SVN: r113355
2006-04-28 19:59:57 +00:00
Jan Beulich 87ceee7236 MAINTAINERS (Write After Approval): Add myself.
2006-04-28  Jan Beulich  <jbeulich@novell.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r113350
2006-04-28 14:44:20 +00:00
Richard Guenther a4858cb066 re PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)
2006-04-28  Richard Guenther  <rguenther@suse.de>

	PR target/26826
	* gcc.target/i386/pr26826.c: New testcase.

From-SVN: r113348
2006-04-28 14:36:14 +00:00
Matthias Klose 9edaf51efb - add missing ChangeLog entry, see PR27334
From-SVN: r113347
2006-04-28 14:05:42 +00:00
Joseph Myers c7370b8375 gcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing to make_relative_prefix.
* gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
	value before passing to make_relative_prefix.

From-SVN: r113345
2006-04-28 13:15:36 +01:00
Alan Modra bb6a0ee1c5 re PR middle-end/27260 (ICE in expand_expr_real_1, at expr.c:6750)
gcc/
	PR middle-end/27260
	* builtins.c (expand_builtin_memset): Expand val in original mode.
gcc/testsuite/
	PR middle-end/27260
	* gcc.c-torture/execute/pr27260.c: New.

From-SVN: r113341
2006-04-28 13:11:34 +09:30
Alan Modra 5cd9edb524 re PR middle-end/27095 (O2 produces duplicate code)
PR middle-end/27095
	* gcc.dg/pr27095.c: New.

From-SVN: r113340
2006-04-28 13:06:15 +09:30
Mark Mitchell 33a1b314e5 re PR c++/27292 (ICE on casts on bitfields)
PR c++/27292
	* tree.c (rvalue): Convert bitfields to their declared types.
	PR c++/27292
	* g++.dg/conversion/bitfield4.C: New test.

From-SVN: r113339
2006-04-28 02:40:58 +00:00
GCC Administrator 6a0ca517a3 Daily bump.
From-SVN: r113331
2006-04-28 00:17:21 +00:00
Eric Christopher 16d6f99461 target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket with #ifndef/#endif.
2006-04-27  Eric Christopher  <echristo@apple.com>

        * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
        with #ifndef/#endif.
        * config/darwin-c.c (darwin_ms_struct): New.
        (darwin_pragma_ms_struct): Ditto.
        (darwin_set_default_type_attributes): Ditto.
        * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
        * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
        Register ms_struct pragma.
        * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
        (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
        * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
        darwin_set_default_type_attributes if TARGET_MACHO.

2006-04-27  Eric Christopher  <echristo@apple.com>

        * gcc.dg/pragma-ms_struct.c: New.

From-SVN: r113327
2006-04-27 22:53:23 +00:00
Benjamin Kosnik 6f3d6562d8 TODO: Update.
2006-04-27  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/17_intro/TODO: Update.

From-SVN: r113325
2006-04-27 22:49:28 +00:00
Andreas Tobler 2a67186a24 configure.ac: Add an additional checks for dladdr and dlopen on dld.
2006-04-28  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.ac: Add an additional checks for dladdr and dlopen on dld.
	* configure: Rebuilt.

From-SVN: r113323
2006-04-28 00:20:03 +02:00
Andrew MacLeod 6c00f606c1 Implement new immediate use iterators.
2006-04-27  Andrew MacLeod  <amacleod@redhat.com>

	PR tree-optimization/26854
	* tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
	* doc/tree-ssa.texi: Update immuse iterator documentation.
	* tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
	* tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
	* tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
	first_safe_imm_use, next_safe_imm_use): Remove.
	(end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
	(end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
	(move_use_after_head): New.  Helper function to sort immuses in a stmt.
	(link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
	(first_imm_use_stmt): New.  Get first stmt in an immuse list.
	(next_imm_use_stmt): New.  Get next stmt in an immuse list.
	(first_imm_use_on_stmt): New.  Get first immuse on a stmt.
	(end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
	(next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
	* tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
	* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
	(perfect_nestify): Use new iterator.
	* tree-vect-transform.c (vect_create_epilog_for_reduction): Use new 
	iterator.
	* tree-flow.h (struct immediate_use_iterator_d): Add comments.
	(next_imm_name): New field in struct immediate_use_iterator_d.
	(FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
	(FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT, 
	FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
	* tree-cfg.c (replace_uses_by): Use new iterator.
	* tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
	* tree-ssa-operands.c (correct_use_link): Remove.
	(finalize_ssa_use_ops): No longer call correct_use_link.

From-SVN: r113321
2006-04-27 20:22:17 +00:00
Mark Mitchell 8fcd79cbcd re PR c++/27102 (ICE with invalid class name in function template)
PR c++/27102
	* typeck2.c (cxx_incomplete_type_diagnostic): Handle
	TYPENAME_TYPE.
	PR c++/27102
	* g++.dg/template/crash47.C: New test.

From-SVN: r113320
2006-04-27 19:02:54 +00:00
Stuart Hastings 9613eaffa4 t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
	* config/t-darwin (crt3.o): Use it.
	* config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
	'pmode', use Pmode instead of SImode for SYMBOL_REF.
	* config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
	call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
	call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
	support.

From-SVN: r113319
2006-04-27 18:57:11 +00:00
Roger Sayle 135c2bd408 expmed.c (store_fixed_bit_field): If we're not optimizing for size...
* expmed.c (store_fixed_bit_field): If we're not optimizing for
	size, force the intermediate into a new pseudo rather instead of
	performing both a bitwise AND and a bitwise IOR in memory.

From-SVN: r113318
2006-04-27 17:26:03 +00:00
Richard Guenther 921b02cd1f re PR rtl-optimization/26685 (documentation refer to nonexisting --param max-cse-insns)
2006-04-27  Richard Guenther  <rguenther@suse.de>

	PR rtl-optimization/26685
	* params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
	this one "max-flow-memory-locations".

From-SVN: r113300
2006-04-27 14:25:49 +00:00
Richard Guenther 67ac6e637c re PR tree-optimization/25148 (compare_values assumes that CST in a + CST (and a - CST) is always postive)
2006-04-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/25148
	* tree-vrp.c (compare_values): Remove code dealing with
	comparisons against type min/max value.  Honour overflow
	and negative constants in code dealing with comparisons
	of plus and minus expressions.
	(value_inside_range): Use fold_binary with LE_EXPR and
	GE_EXPR rather than compare_values.

From-SVN: r113298
2006-04-27 13:52:44 +00:00
Dirk Mueller 869170df10 xmmintrin.h (_mm_shuffle_pi16): make available for SSE.
2006-04-27  Dirk Mueller  <dmueller@suse.de>

        * config/i386/xmmintrin.h (_mm_shuffle_pi16): make available
        for SSE.

        * testsuite/gcc.target/i386/sse-7.c: build with -msse.

From-SVN: r113297
2006-04-27 11:13:45 +00:00
H.J. Lu ded5b063bb re PR testsuite/27274 (execution test of gcc.dg/i386-sse-9.c fails on non-SSE CPU)
2006-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/27274:
	* gcc.target/i386/sse-9.c: Include "../../gcc.dg/i386-cpuid.h".
	(main): Exit if processor doesn't support SSE.

From-SVN: r113296
2006-04-26 23:13:40 -07:00
GCC Administrator 54468df782 Daily bump.
From-SVN: r113290
2006-04-27 00:17:35 +00:00
Benjamin Kosnik 0c092147be re PR libstdc++/26875 (Array allocator use count is shared between array_allocator instances)
2006-04-26  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/26875
	* include/ext/array_allocator.h (array_allocator): _M_used, new
	data member.  
	* testsuite/ext/array_allocator/26875.cc: New.

From-SVN: r113283
2006-04-26 19:52:31 +00:00
Shantonu Sen 0c3f35451c re PR libstdc++/26513 (make_exports.pl hardcoded to build nm)
2006-04-26  Shantonu Sen  <ssen@opendarwin.org>

         PR libstdc++/26513
         * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present.

From-SVN: r113281
2006-04-26 19:13:18 +00:00
David Edelsohn 52d094062c re PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)
PR middle-end/27282
        * gcc.c-torture/compile/pr27282.c: New test

From-SVN: r113278
2006-04-26 13:57:03 -04:00
Kenneth Zadeck 3bf7d5e771 basic-block.h (safe_insert_insn_on_edge): Removed.
2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>

	* basic-block.h (safe_insert_insn_on_edge): Removed.
	* cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.

From-SVN: r113276
2006-04-26 16:17:01 +00:00
David Edelsohn 7b282ff9a0 re PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)
2006-04-26  David Edelsohn  <edelsohn@gnu.org>
	    Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/27282
	* combine.c (simplify_and_const_int_1): Use gen_int_mode.
	(simplify_and_const_int): Same.

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

From-SVN: r113275
2006-04-26 10:33:49 -04:00
Aldy Hernandez 444704336a * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
From-SVN: r113274
2006-04-26 10:29:02 +00:00
Jakub Jelinek 91b6c26dd2 re PR c/26171 (#pragma omp threadprivate requires -funit-at-a-time)
PR c/26171
	* cgraph.c (cgraph_varpool_finalize_decl): Don't call
	cgraph_varpool_assemble_pending_decls if -fopenmp, unless
	cgraph_global_info_ready.

	* testsuite/libgomp.c/pr26171.c: New test.

From-SVN: r113271
2006-04-26 10:26:06 +02:00
Jakub Jelinek 07ed51c9ce re PR middle-end/26913 (ICE with -fopenmp and -O1)
PR middle-end/26913
	* tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.

	* g++.dg/gomp/pr26913.C: New test.

From-SVN: r113270
2006-04-26 10:24:28 +02:00
Jakub Jelinek 1562e1fee7 re PR c/25996 ([gomp] ICE on undefined iteration variable)
PR c/25996
	* c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
	either decl or init is error_mark_node.

	* gcc.dg/gomp/pr25996.c: New test.
	* g++.dg/gomp/pr25996.C: New test.

From-SVN: r113269
2006-04-26 10:23:12 +02:00
Jakub Jelinek 21a66e91d0 re PR middle-end/25989 (gomp ICE with -O2 and schedule(guided))
PR middle-end/25989
	* tree-flow.h (struct omp_region): Add sched_kind.
	* omp-low.c (expand_parallel_call): Use region->inner->sched_kind
	instead of extracting omp for data.
	(expand_omp_for): Save extracted sched_kind.

From-SVN: r113268
2006-04-26 10:20:57 +02:00
Geoffrey Keating 887dc802b3 dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there are no branches.
* dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
	are no branches.

From-SVN: r113267
2006-04-26 06:57:01 +00:00
Roger Sayle f7acbf4c82 expmed.c (store_bit_field): Also check whether the bitsize is valid for the machine's "insv" instruction...
* expmed.c (store_bit_field): Also check whether the bitsize is
	valid for the machine's "insv" instruction before moving the
	target into a pseudo for use with the insv.
	* config/i386/predicates.md (const8_operand): New predicate.
	* config/i386/i386.md (extv, extzv, insv): Use the new
	const8_operand predicate where appropriate.

From-SVN: r113265
2006-04-26 00:51:14 +00:00
GCC Administrator a22b8ac1e4 Daily bump.
From-SVN: r113263
2006-04-26 00:17:08 +00:00
DJ Delorie c99364274e install.texi (Specific): Clarify that this is not a list of supported hosts or targets.
* doc/install.texi (Specific): Clarify that this is not a list of
supported hosts or targets.

From-SVN: r113259
2006-04-25 18:08:53 -04:00
Richard Sandiford c0c5d392eb re PR rtl-optimization/26725 (ICE in check_reg_live, at haifa-sched.c:4645 with -O2 on ia64)
gcc/
	PR rtl-optimization/26725
	* cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
	block's BB_DIRTY flag.

gcc/testsuite/
	* gcc.c-torture/compile/pr26725.c: New test.

From-SVN: r113257
2006-04-25 21:34:48 +00:00
Richard Henderson 60e1758f60 re PR libgomp/25865 (libgomp incorrectly detects support for TLS)
PR libgomp/25865
        * configure.ac: Use GCC_CHECK_TLS.
        * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
        * Makefile.in, aclocal.m4, configure: Regenerate.

From-SVN: r113256
2006-04-25 13:58:25 -07:00
Geoffrey Keating d61772b25d dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just to print an integer.
* dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
	to print an integer.

From-SVN: r113254
2006-04-25 19:12:50 +00:00
Richard Guenther cfa81d8af3 val-prof-2.c: Check for n + ffff rather than n + -1.
2006-04-25  Richard Guenther  <rguenther@suse.de>

        * gcc.dg/tree-prof/val-prof-2.c: Check for n + ffff rather
        than n + -1.

From-SVN: r113252
2006-04-25 15:38:32 +00:00
Tom Tromey 1f263074ea natSharedLibLoader.cc: Include gc.h later.
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
	Include platform.h.  Set GC_DEBUG before including gc.h, if
	needed.

From-SVN: r113251
2006-04-25 15:20:33 +00:00
David Edelsohn d5fa3ec8dc varasm.c (align_variable): New function.
* varasm.c (align_variable): New function.
	(get_block_for_decl): Apply align_variable to DECL before
	calculating section information.
	(assemble_variable): Split out alignment computation.

From-SVN: r113250
2006-04-25 11:00:53 -04:00
Andreas Krebbel 495db1a115 expmed.c (store_bit_field): Handle paradoxical subregs on big endian machines.
2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>

	* expmed.c (store_bit_field): Handle paradoxical subregs on big endian
	machines.

2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.dg/20060425-1.c: New testcase.

From-SVN: r113248
2006-04-25 12:11:25 +00:00
Bernd Schmidt 6d75cd5f57 rtl.texi (ss_ashift): Improve wording.
* doc/rtl.texi (ss_ashift): Improve wording.

From-SVN: r113247
2006-04-25 11:58:22 +00:00
Andrew Haley 5233753562 natClassLoader.cc: Don't include link.h or dladdr.h.
2006-04-25  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
        * boehm.cc: Don't include link.h.
        (_Jv_RegisterLibForGc): Cast away const when calling dladdr().

From-SVN: r113246
2006-04-25 11:54:15 +00:00
Bernd Schmidt 75d8b2d014 genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a MODE_PARTIAL_INT mode.
* genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
	MODE_PARTIAL_INT mode.
	* config/bfin/bfin-modes.def: Add V2PDI and V2SI.
	* config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
	for CONST_INTs.
	(hard_regno_mode_ok): V2PDImode is ok for accumulators.
	* config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
	V2PDImode.
	* config/bfin/predicates.md (const01_operand, vec_shift_operand):
	New predicates.
	* config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
	New constants.
	(MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
	MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
	MACFLAG_IH): Likewise.
	(movstricthi_1): Renamed from "*movstricthi".
	(load_accumulator, load_accumulator_pair, movsi_insv, insv,
	ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
	abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
	movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
	movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
	movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
	addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
	sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
	addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
	mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
	ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
	flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
	flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
	flag_macv2hi_parts, flag_macv2hi_parts_acconly,
	flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.

From-SVN: r113245
2006-04-25 11:49:27 +00:00
Jakub Jelinek ec23e15b4c re PR tree-optimization/26865 (Segmentation fault with -std=c99 -O1 and alloca())
PR tree-optimization/26865
	* gcc.dg/pr26865.c: New test.

From-SVN: r113242
2006-04-25 11:42:41 +02:00
Geoffrey Keating 6f8d8ef049 dwarf2out.c (verify_marks_clear): New.
* dwarf2out.c (verify_marks_clear): New.
	(prune_unused_types): Call verify_marks_clear initially, not
	prune_unmark_dies.

From-SVN: r113241
2006-04-25 05:56:36 +00:00
Mark Mitchell efe1ad468e re PR c++/27292 (ICE on casts on bitfields)
PR c++/27292
	* typeck.c (decay_conversion): Don't adjust bitfield types.
	(perform_integral_promotions): Treat bitfield enums as enums, not
	as short integer types.
	* tree.c (rvalue): Convert bitfields to their correct types.
	PR c++/27292
	* g++.dg/conversion/bitfield1.C: New test.
	* g++.dg/conversion/bitfield2.C: Likewise.
	* g++.dg/conversion/bitfield3.C: Likewise.

From-SVN: r113240
2006-04-25 03:33:38 +00:00