Commit Graph

65064 Commits

Author SHA1 Message Date
GCC Administrator
c3bcec128a Daily bump.
From-SVN: r93719
2005-01-16 00:16:16 +00:00
John David Anglin
de2a399ddc Update copyrights to 2005.
From-SVN: r93714
2005-01-15 22:57:16 +00:00
Tobias Schlüter
da8309c66d primary.c (check_digit): Call 'ISXDIGIT' instead of assuming ASCII-like character encoding.
* primary.c (check_digit): Call 'ISXDIGIT' instead of assuming
ASCII-like character encoding.

From-SVN: r93713
2005-01-15 23:38:01 +01:00
Michael Koch
4b8a70aa26 re PR java/19444 (GCJ implementation of java.net.URI misses host support)
2005-01-15  Michael Koch  <konqueror@gmx.de>

	PR libgcj/19444
	* java/net/URI.java
	(AUTHORITY_REGEXP): New regexp constant.
	(AUTHORITY_USERINFO_GROUP): New constant.
	(AUTHORITY_HOST_GROUP): Likewise.
	(AUTHORITY_PORT_GROUP): Likewise.
	(port): Changed default value to -1.
	(parseURI): Parse authority part and initialize host,
	port and userInfo.

From-SVN: r93711
2005-01-15 22:27:02 +00:00
Hans-Peter Nilsson
01c4f82a92 re PR rtl-optimization/19462 (generating return insns while current_function_epilogue_delay_list nonempty)
PR rtl-optimization/19462
	* gcc.dg/torture/pr19462-1.c: New test.

From-SVN: r93709
2005-01-15 21:30:41 +00:00
Ziemowit Laski
aecaa19a32 re PR objc/19321 (objc ignores volatile in argument types for messages)
[gcc/objc/ChangeLog]
2005-01-15  Ziemowit Laski  <zlaski@apple.com>

        PR objc/19321
        * objc-act.c (get_arg_type_list): Decay function arguments into
        pointers.
        (objc_push_parm): Likewise; bring PARM_DECL construction closer
        in line with what the C front-end does.
        (objc_get_parm_info): Call pushdecl() and finish_decl() on
        each PARM_DECL, like the C front-end does.
        (start_method_def): Remove redundant ARRAY_TYPE decay.
        (objc_start_function): Bring closer in line with what the
        C front-end does for functions.

[gcc/testsuite/ChangeLog]
2005-01-15  Ziemowit Laski  <zlaski@apple.com>

        PR objc/19321
        * objc.dg/func-ptr-2.m: New.
        * objc.dg/volatile-1.m: New.

From-SVN: r93706
2005-01-15 21:18:56 +00:00
John David Anglin
a04b62b220 * gcc.dg/20040813-1.c: Add hppa*64*-*-* to no stabs list.
From-SVN: r93704
2005-01-15 20:28:25 +00:00
John David Anglin
83c32f2e48 re PR target/19336 (HPPA64 does not support TImode)
PR target/19336
	* pa.c (pa_scalar_mode_supported_p): New function.
	(TARGET_SCALAR_MODE_SUPPORTED_P): Define.
	* pa.h (MIN_UNITS_PER_WORD): Add comment.

From-SVN: r93703
2005-01-15 20:04:57 +00:00
John David Anglin
2d5ca9a017 pa-protos.h (prefetch_operand): Delete.
* pa-protos.h (prefetch_operand): Delete.
	(prefetch_cc_operand, prefetch_nocc_operand): New declations.
	* pa.c (prefetch_operand): Delete.
	(prefetch_cc_operand, prefetch_nocc_operand): New functions.
	* pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
	(PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
	and prefetch_nocc_operand.
	* pa.md (prefetch): Rework to avoid reload problems handling short
	displacements when a cache control completer needs to be provided.
	(prefetch_32, prefetch_64): Delete.
	(prefetch_cc, prefetch_nocc): New patterns.

From-SVN: r93702
2005-01-15 18:57:29 +00:00
David Edelsohn
6a9836b1cd * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
From-SVN: r93700
2005-01-15 12:40:00 -05:00
David Edelsohn
57307e313d * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
From-SVN: r93699
2005-01-15 12:38:04 -05:00
John David Anglin
22f549fddc re PR target/19388 (MAX_OFILE_ALIGNMENT on PA HP-UX)
PR ada/19388
	* pa.c (pa_asm_output_aligned_common): Warn if specified alignment
	exceeds maximum alignment for global common data.
	* pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
	* som.h (MAX_OFILE_ALIGNMENT): Likewise.

From-SVN: r93698
2005-01-15 17:10:02 +00:00
Roger Sayle
19e1af6e02 * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
From-SVN: r93697
2005-01-15 16:47:53 +00:00
Roger Sayle
778f72f2cf harg-reg-set.h (reg_class_names): Prototype global array.
* harg-reg-set.h (reg_class_names): Prototype global array.
	* regclass.c (reg_class_names): Declare here and initialize to
	REG_CLASS_NAMES.
	(dump_regclass): Remove local declaration of reg_class_names.
	(regclass): Likewise.
	* cfg.c (dump_flow_info): Likewise.
	* ra-debug.c (reg_class_names): Likewise.
	* regrename.c (reg_class_names): Likewise.
	* reload.c (reg_class_names): Likewise.
	* reload1.c (spill_failure): Likewise.
	* config/m68hc11/m68hc11.c (reg_class_names): Likewise.

From-SVN: r93696
2005-01-15 16:06:17 +00:00
Ulrich Weigand
9c3c3dcc1f s390.md ("reload_outti"): Remove predicate for output operand.
* config/s390/s390.md ("reload_outti"): Remove predicate for
	output operand.  Abort if operand is not a MEM.
	("reload_outdi", "reload_outdf"): Likewise.

From-SVN: r93695
2005-01-15 15:34:51 +00:00
Marc Espie
378b66d476 config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
2005-01-11  Marc Espie  <espie@openbsd.org>

	* config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
	(i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
	* config/openbsd.h:  Fix C++ includes for native configurations.
	Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
	Add trampoline support.
	* config/i386/openbsdelf.h: New.

okay Richard Earnshaw, Zack Weinberg, further changes in a separate patch.

From-SVN: r93694
2005-01-15 10:56:48 +00:00
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