Commit Graph

65598 Commits

Author SHA1 Message Date
Marc Espie 60828cbd4f collect2.c (main): Explicitly parse -dynamic-linker option.
2005-01-15  Marc Espie  <espie@openbsd.org>

	* collect2.c (main): Explicitly parse -dynamic-linker option.

okay Mark Mitchell

From-SVN: r93693
2005-01-15 10:43:19 +00:00
Jakub Jelinek 75b9aa9f27 re PR tree-optimization/19060 (Miscompiling of if and "long long")
PR tree-optimization/19060
	* tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
	Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
	(simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
	and handle extract_range_from_cond returning false.
	* fold-const.c (fold): Optimize comparisons with min/max even for
	width > HOST_BITS_PER_WIDE_INT.

	* gcc.c-torture/execute/20050104-1.c: New test.

From-SVN: r93692
2005-01-15 10:46:10 +01:00
Ralf Corsepius 4ba9f2a1e4 rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
	* config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
	Remove little endian multilib variants.
	Add mips32 multilib variant.

From-SVN: r93690
2005-01-15 09:38:53 +01:00
Bud Davis e1c74af03a re PR libfortran/18983 (can't open /dev/null as an output file)
2005-01-15  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/18983
        * io/transfer.c (st_write_done): only truncate when it
        is required.

2005-01-15  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/18983
        * gfortran.dg/write_to_null.f90: New test.

From-SVN: r93689
2005-01-15 08:10:23 +00:00
Kazu Hirata 6a29dc8b1b rtlanal.c (regs_set_between_p): Remove.
* rtlanal.c (regs_set_between_p): Remove.
	* rtl.h: Remove the corresponding prototype.

From-SVN: r93685
2005-01-15 04:14:10 +00:00
Kazu Hirata bbc8fb000b explow.c (copy_all_reg, stabilize): Remove.
* explow.c (copy_all_reg, stabilize): Remove.
	* expr.h: Remove the corresponding prototypes.

From-SVN: r93683
2005-01-15 04:10:54 +00:00
David Edelsohn 165a5bad87 rs6000.c (rs6k_nonimmediate_operand): Rename to rs6000_nonimmediate_operand.
* config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
        to rs6000_nonimmediate_operand.
        * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
        rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
        * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
        rs6000_nonimmediate_operand.
        * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
        rs6000_nonimmediate_operand.

From-SVN: r93682
2005-01-14 23:03:10 -05:00
Ulrich Weigand 95f16434b0 Update copyright years.
From-SVN: r93681
2005-01-15 02:59:58 +00:00
Andrew Pinski 0c12d24f70 re PR other/19328 (FAIL: gcc.dg/attr-alias-2.c (test for excess errors))
2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
            John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

        PR other/19328
        * gcc.dg/attr-alias-2.c: dg-require-alias takes an
        argument.

Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>

From-SVN: r93680
2005-01-14 18:54:27 -08:00
Andrew Pinski 7f9e6d2a42 tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.

From-SVN: r93679
2005-01-14 18:49:48 -08:00
GCC Administrator 6c80f42e95 Daily bump.
From-SVN: r93677
2005-01-15 00:18:06 +00:00
Jakub Jelinek 74aad7cc3c re PR c++/19263 (wrong-code: explicit initialization of v8qi miscompiled)
PR c++/19263
	* typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
	of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.

	* g++.dg/init/vector1.C: New test.

From-SVN: r93672
2005-01-15 00:45:59 +01:00
Mike Stump 28bbb5504d lang-specs.h ("@objective-c"): Use cc1obj when -E is used so that -fobjc-exceptions is accepted.
* lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
        that -fobjc-exceptions is accepted.

From-SVN: r93670
2005-01-14 23:40:43 +00:00
Aldy Hernandez 54b695e729 rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register on e500v2.
* config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
	on e500v2.
	(CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
	(PREDICATE_CODES): Add rs6k_nonimmediate_operand.

	* config/rs6000/rs6000.c (invalid_e500_subreg): New.
	(rs6k_nonimmediate_operand): New.
	(rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
	correctly.
	(legitimate_lo_sum_address_p): Same.
	(rs6000_legitimize_address): Same.
	(rs6000_legitimize_reload_address): Same.
	(rs6000_legitimate_address): Same.
	(spe_build_register_parallel): Pass DF and DC modes in a DI
	register.

	* config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
	to rs6k_nonimmediate_operand.

	* config/rs6000/spe.md ("*frob_df_di"): New.
	("*frob_di_df"): New.
	("*frob_di_df_2"): New.
	("*mov_sidf_e500_subreg0"): New.
	("*mov_sidf_e500_subreg4"): New.
	("*movdf_e500_double"): Change predicate to
	rs6k_nonimmediate_operand.

From-SVN: r93665
2005-01-14 21:22:14 +00:00
Robin Green fd3395a50b File.java (toURI): Generate a URI which we understand.
2005-01-14  Robin Green  <greenrd@greenrd.org>

	* java/io/File.java (toURI): Generate a URI which we understand.

From-SVN: r93664
2005-01-14 21:12:46 +00:00
Paolo Carlini 21c332dc93 re PR libstdc++/19422 (assoc. containers: ctor taking range is O(n log n) even if the range is sorted)
2005-01-14  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/19422
	* include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
	_Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
	respectively) with hint (end()).
	* testsuite/performance/23_containers/set_create_from_sorted.cc: New.

From-SVN: r93663
2005-01-14 21:09:38 +00:00
James E Wilson 66f9a6de4c Testcases for sibcall unwind info problems.
PR target/13158
* gcc.target/ia64/sibcall-unwind-1.c: New test.
PR target/18987
* gcc.target/ia64/sibcall-unwind-2.c: New test.

From-SVN: r93660
2005-01-14 11:45:23 -08:00
Aldy Hernandez 05075d4e46 postreload.c (move2add_note_store): Only call trunc_int_for_mode on scalar integers.
* postreload.c (move2add_note_store): Only call
	trunc_int_for_mode on scalar integers.

From-SVN: r93658
2005-01-14 19:17:52 +00:00
Steven Bosscher a28fee0388 tree-ssa-dce.c (visited_control_parents): New sbitmap to replace BB_VISITED uses.
* tree-ssa-dce.c (visited_control_parents): New sbitmap to
	replace BB_VISITED uses.
	(find_obviously_necessary_stmts): Don't clear BB_VISITED.
	(propagate_necessity): Check the bitmap instead of BB_VISITED.
	(tree_dce_done): Free visited_control_parents.
	(perform_tree_ssa_dce): Allocate and clear it.
	* tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
	(compute_antic): Iterate from here using a DFS.  Use an sbitmap
	instead of BB_VISITED.

From-SVN: r93654
2005-01-14 18:40:30 +00:00
Kazu Hirata 103a83e0fa c-tree.h, [...]: Remove unused prototypes.
* c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
	rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
	Remove unused prototypes.

From-SVN: r93651
2005-01-14 17:53:28 +00:00
Aldy Hernandez b5a5beb983 rs6000.c (rs6000_stack_info): Fix caching of SPE 64-bit register usage.
* config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
	64-bit register usage.
	(spe_func_has_64bit_regs_p): Add FIXME note.

[[Split portion of a mixed commit.]]

From-SVN: r93648.2
2005-01-14 16:52:43 +00:00
Aldy Hernandez 5ca189994e rs6000.c (rs6000_generate_compare): Replace flag_finite_math_only with flag_unsafe_math_optimizations.
* config/rs6000/rs6000.c (rs6000_generate_compare): Replace
	flag_finite_math_only with flag_unsafe_math_optimizations.

[[Split portion of a mixed commit.]]

From-SVN: r93646.2
2005-01-14 15:54:59 +00:00
Andrew Pinski 03eef11cd3 system-darwin-ppc.ads (ZCX_By_Default): Change to True.
2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>

        * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
        (GCC_ZCX_Support): Likewise.

From-SVN: r93644
2005-01-14 07:12:29 -08:00
J. D. Johnston 783d2650e5 tpf-unwind.h (s390_fallback_frame_state): Correct end-of-stack check.
2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>

	* config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
	end-of-stack check.
	(__tpf_eh_return): Copy TPF private stack area from the module
	boundary stack frame.  Add check for when module addresses are
	equal, but no stub address is found.

From-SVN: r93643
2005-01-14 14:27:42 +00:00
Richard Earnshaw b12a00f173 re PR target/7525 ([ARM/Thumb] long calls stubs only in one code section, cannot branch to them from other section)
PR target/7525
* arm.h (struct machine_function): Add call_via field.
(thumb_call_via_label): Declare.
* arm.c (thumb_call_via_label): New variable.
(thumb_call_reg_needed): New variable.
(arm_output_function_epilogue): For Thumb code, output any per-function
call-indirect trampolines.
(thumb_call_via_reg): New function.
(arm_file_end): New function.
(TARGET_ASM_FILE_END): Call arm_file_end.
(aof_file_end): Likewise.
* arm-protos.h (thumb_call_via_reg): Declare.
* arm.md (call_reg_thumb, call_value_reg_thumb): Call
thumb_call_via_reg in normal case.

From-SVN: r93641
2005-01-14 13:58:40 +00:00
Steven G. Kargl c224550fb5 resolve.c (compare_case): Cleanup.
2005-01-14  Steven G. Kargl  <kargls@comcast.net>

	* resolve.c (compare_case): Cleanup.
testsuite/
	* gfortran.dg/select_1.f90: New test.
	* gfortran.dg/select_2.f90: New test.
	* gfortran.dg/select_3.f90: New test.
	* gfortran.dg/select_4.f90: New test.

From-SVN: r93640
2005-01-14 11:55:12 +00:00
Jakub Jelinek 08a0c536df re PR middle-end/19084 (ICE: internal consistency failure)
PR middle-end/19084
	PR rtl-optimization/19348
	* recog.c (peephole2_optimize): Do global life update if some peephole
	decides it doesn't need at least one of its inputs and that change
	influences liveness at the start of the basic block.

	* basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
	arguments instead of 1.

	* gcc.dg/20050111-1.c: New test.
	* gcc.c-torture/execute/20050111-1.c: New test.

From-SVN: r93639
2005-01-14 11:50:18 +01:00
Jakub Jelinek a0afbdb682 * gcc.dg/i386-asm-4.c: New test.
From-SVN: r93638
2005-01-14 11:45:54 +01:00
Steven G. Kargl 6e06dac503 resolve.c (compare_case): Give arguments correct type.
2005-01-14  Steven G. Kargl  <kargls@comcast.net>

	* resolve.c (compare_case): Give arguments correct type.

From-SVN: r93637
2005-01-14 09:28:03 +00:00
Eric Botcazou eebeecacfb re PR middle-end/18820 (ACATS c95300[123] and c980002 fail at runtime)
PR middle-end/18820
	* varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
	zero for nested functions needing a static chain or functions
	with a non-constant address.

From-SVN: r93633
2005-01-14 08:03:20 +00:00
Graydon Hoare 84973b27e8 jni.h (_Jv_JNIEnv::bottom_locals): New field.
2005-01-13  Graydon Hoare  <graydon@redhat.com>

	* include/jni.h (_Jv_JNIEnv::bottom_locals): New field.
	* include/jvm.h (_Jv_FreeJNIEnv): Declare.
	* java/lang/natThread.cc (finalize_native): Call _Jv_FreeJNIEnv.
	* jni.cc: Reuse bottom frame between calls, avoid clearing
	frame when no local references are made.

From-SVN: r93632
2005-01-14 07:36:27 +00:00
Roger Sayle a0ee8b5f99 simplify-rtx.c (simplify_binary_operation): Optimize (and (sign_extend X) C) into (zero_extend (and X C)).
* simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
	(and (sign_extend X) C) into (zero_extend (and X C)).

From-SVN: r93629
2005-01-14 04:17:13 +00:00
David O'Brien 9201889788 Tweaking the previous freebsd-spec.h for the long term.
2005-01-13  David O'Brien  <obrien@FreeBSD.org>
	* config/freebsd-spec.h:  Make KSE pthread lib logic the default.

From-SVN: r93628
2005-01-14 03:23:17 +00:00
Richard Henderson 2d1d3cb267 Fix PR number.
From-SVN: r93621
2005-01-13 17:13:22 -08:00
Richard Henderson eaa49b4941 re PR target/19009 (Loading of FP constants into FP reg via SSE reg)
PR target/19099
        PR target/19250
        PR target/19252
        * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
        bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
        not just TARGET_SSE.
        (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
        (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
        (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
        (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
        (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
        (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
        (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
        fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
        (movdicc_c_rex64): Rename with '*'.
        (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
        (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
        (movsfcc_1_387): Rename from movsfcc_1.
        (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
        (movdfcc_1, movdfcc_1_rex64): Add check for 387.
        (sminsf3, smaxsf3, smindf3, smaxdf3): New.
        (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
        mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
        maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
        sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
        sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
        sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
        sse_movdfcc_const0_4): Remove.
        * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
        recognize min/max early.  Update for changed sse cmove patterns.
        (ix86_split_sse_movcc): New.
        * config/i386/i386-protos.h: Update.

From-SVN: r93620
2005-01-13 16:33:49 -08:00
GCC Administrator 997e120f69 Daily bump.
From-SVN: r93618
2005-01-14 00:16:20 +00:00
Steven Bosscher 1dff80c064 tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
* tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
	(fix_stmt_v_may_defs): Likewise.

From-SVN: r93614
2005-01-13 22:51:14 +00:00
Geoffrey Keating ae59b55c0f configure.host (darwin): On darwin8 or later, no need to build libstdc++ with -flat_namespace.
* configure.host (darwin): On darwin8 or later, no need to build
	libstdc++ with -flat_namespace.

From-SVN: r93613
2005-01-13 22:48:14 +00:00
Jonathan Wakely 516cb88aa9 user.cfg.in: Set HAVE_DOT back to YES.
2005-01-13  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.

From-SVN: r93612
2005-01-13 21:10:00 +00:00
Michael Koch e70324625f re PR libgcj/17784 (Thread.interrupt doesn't do security checks)
2005-01-13  Michael Koch  <konqueror@gmx.de>

	PR libgcj/17784
	* java/lang/Thread.java
	(Thread): Call checkAccess().
	(stop): Fixed argument name to match javadoc.
	* java/lang/natThread.cc
	(interrupt): Call checkAccess().
	(stop): Likewise.

From-SVN: r93611
2005-01-13 20:26:38 +00:00
Kazu Hirata 43a5ef693f iresolve.c, [...]: Fix comment typos.
* iresolve.c, trans-common.c, trans-types.c: Fix comment
	typos.

From-SVN: r93610
2005-01-13 19:34:37 +00:00
Paolo Carlini f5d8395b67 c99_classification_macros_c++.cc: Re-enable commented-out test for double type.
2005-01-13  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
	Re-enable commented-out test for double type.

From-SVN: r93609
2005-01-13 19:33:40 +00:00
Richard Henderson bb129a4f93 i386.c (ix86_expand_fp_absneg_operator): Use elt_mode for converting the mask.
* config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
        for converting the mask.

From-SVN: r93606
2005-01-13 10:08:40 -08:00
David Edelsohn 2cba2c8be0 aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE definition to 600.
* config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
	definition to 600.

From-SVN: r93605
2005-01-13 12:52:42 -05:00
Richard Henderson ed9b539671 i386.c (IX86_BUILTIN_MOVQ, [...]): Remove.
* config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
        IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
        IX86_BUILTIN_MOVDQ2Q): Remove.
        (IX86_BUILTIN_VEC_EXT_V4SI): New.
        (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
        (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
        shuffling.
        * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
        (sse2_pextrw): Fix immediate constraint.
        (sse2_loadq, sse2_loadq_rex64): Remove.
        * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
        Use __builtin_ia32_vec_ext_<size>.
        (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.

From-SVN: r93604
2005-01-13 09:51:34 -08:00
Aldy Hernandez 172847595a function.c (assign_parm_setup_block): Look inside original entry_parm when inspecting PARALLEL.
* function.c (assign_parm_setup_block): Look inside original
	entry_parm when inspecting PARALLEL.

From-SVN: r93602
2005-01-13 17:06:44 +00:00
Ralf Corsepius 5d58d2f83e re PR target/19399 (mutexes support broken)
2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
	    Joel Sherrill  <joel@oarcorp.com>

	PR target/19399
	* gthr-rtems.h (__gthread_recursive_mutex_t): New type.
	(__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
	rtems_gxx_recursive_mutex_init.
	(__gthread_recursive_mutex_lock): New function.
	(__gthread_recursive_mutex_trylock): Likewise.
	(__gthread_recursive_mutex_unlock): Likewise.

Co-Authored-By: Joel Sherrill <joel@OARcorp.com>

From-SVN: r93601
2005-01-13 16:50:07 +01:00
Ralf Corsepius 52786878fd t-rtems-i386: Multilib on -mtune instead of -mcpu.
2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>

	* config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.

From-SVN: r93597
2005-01-13 13:02:18 +01:00
Jan Beulich 16d8386b15 ia64.md (ashlti3, [...]): New.
gcc/
2005-01-13  Jan Beulich  <jbeulich@novell.com>

	* config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
	(ashrti3_internal): Indicate output is early clobber. Generate result
	into output rather than first input. Use move for low word of output
	if shift count is exactly 64.
	(lshrti3_internal): Likewise.

From-SVN: r93596
2005-01-13 07:12:11 +00:00
Hans-Peter Nilsson 0149f412ec re PR target/18329 (mmix-knuth-mmixware testsuite failure: execute/920501-7.c, execute/comp-goto-2.c)
PR target/18329
	PR target/18330
	* reload1.c (delete_output_reload): Don't delete an output reload
	if the pseudo lives longer than a single basic block.  Adjust and
	improve wording of comment.

From-SVN: r93250
2005-01-13 01:18:58 +00:00