Commit Graph

65078 Commits

Author SHA1 Message Date
Bud Davis
f53d3f9317 re PR libfortran/18778 (ENDFILE is not functionnal)
2005-01-16  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/18778
        * gfortran.dg/endfile_2.f90: New test.

        * io/transfer.c (us_read): no bytes available is not a
        runtime error.

From-SVN: r93737
2005-01-16 20:44:01 +00:00
Jonathan Wakely
412dc870cb rope: Qualify calls to std::copy() by sequence_buffer.
2005-01-16  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
	* testsuite/ext/rope/4.cc: Add.

From-SVN: r93736
2005-01-16 19:16:27 +00:00
Paul Brook
35e4be358b Update copyright dates.
From-SVN: r93735
2005-01-16 17:53:26 +00:00
Tobias Schlüter
dfbb43185d re PR fortran/19182 (Error messages seem to be printed slower)
2005-01-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

	PR fortran/19182
	* error.c (error_char): Line-buffer errors / warnings.

From-SVN: r93734
2005-01-16 17:44:17 +00:00
Tobias Schlüter
ef1b6bcd00 * trans-intrinsic.c, trans-types.c: Update copyright years.
From-SVN: r93732
2005-01-16 17:48:16 +01:00
Tobias Schlüter
0da87370fb trans-intrinsic.c (gfc_conv_intrinsic_index, [...]): Remove 'gfc'-prefix from local variable...
* trans-intrinsic.c (gfc_conv_intrinsic_index,
gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify): Remove
'gfc'-prefix from local variable, remove dead code, use correct
type when inserting argument.

From-SVN: r93731
2005-01-16 17:45:57 +01:00
Tobias Schlüter
e805a59940 trans-intrinsic.c (build_fixbound_expr, [...]): Use 'build_int_cst' instead of converting 'integer_zero_node' or...
* trans-intrinsic.c (build_fixbound_expr,
gfc_conv_intrinsic_bound, gfc_conv_intrinsic_anyall,
gfc_conv_intrinsic_count, gfc_conv_intrinsic_btest,
gfc_conv_intrinsic_singlebitop): Use 'build_int_cst' instead
of converting 'integer_zero_node' or 'integer_one_node'
respectively.
(gfc_conv_intrinsic_ishftc): Same, but store in local variable to
evade re-building.
(gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_rrspacing,
gfc_conv_intrinsic_trim, gfc_conv_intrinsic_iargc): Use
'build_int_cst' instead of converting 'integer_zero_node' or
'integer_one_node' respectively.

From-SVN: r93730
2005-01-16 17:16:00 +01:00
Tobias Schlüter
5e3b87274d trans-types.c (gfc_get_character_type_len): : Use gfc_charlen_type_node as basic type for the range field.
* trans-types.c (gfc_get_character_type_len): : Use
gfc_charlen_type_node as basic type for the range field.

From-SVN: r93729
2005-01-16 17:05:46 +01:00
Tobias Schlüter
de46b50562 trans-intrinsic.c (gfc_conv_intrinsic_ishft): Fix signed / unsigned issue.
* trans-intrinsic.c (gfc_conv_intrinsic_ishft): Fix signed /
unsigned issue.  Use build_int_cst instead of converting
integer_zero_node.  Remove unnecessary conversion.

From-SVN: r93727
2005-01-16 16:38:03 +01:00
John David Anglin
083b671742 re PR target/16304 (bootstrap failure on AIX 4.3.3: cannot build strstream in libstdc++)
PR target/16304
	* defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
	* toplev.c (compile_file): Call process_pending_assemble_output_defs
	just before targetm.asm_out.file_end.
	* tree.h (process_pending_assemble_output_defs): Declare.
	* varasm.c (assemble_output_def, process_pending_assemble_output_defs):
	New functions.
	(assemble_alias): Defer generation of assembly code for defines when
	TARGET_DEFERRED_OUTPUT_DEFS is true.
	* config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
	* config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
	* doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.

From-SVN: r93726
2005-01-16 15:28:18 +00:00
Steven G. Kargl
5352b89f60 re PR fortran/19168 (Mismatched KINDs in SELECT CASE constucts is not handled correctly)
2005-01-16  Steven G. Kargl  <kargls@comcast.net>

	PR 19168
	* resolve.c (check_case_overlap): Typo in comment.
	(validate_case_label_expr):  Fix up kinds of case values
	(resolve_select): Properly handle kind mismatches.
testsuite/
	* gfortran.dg/select_5.f90: New test.

From-SVN: r93725
2005-01-16 12:51:04 +00:00
Paul Brook
36c028f675 re PR fortran/17675 ([Regression w.r.t. g77] Alignment constraints not honored in EQUIVALENCE)
2004-01-16  Paul Brook  <paul@codesourcery.com>

	PR fortran/17675
	* trans-common.c (translate_common): Remove duplicate function call.
	(finish_equivalences): Preserve alignment when biasing offsets.
testsuite/
	* gfortran.dg/common_4.f90: New test.

From-SVN: r93724
2005-01-16 12:05:53 +00:00
Lorenz Minder
3a2794abdb re PR libstdc++/19322 (std::isnan<>() is broken on FreeBSD)
2005-01-16  Lorenz Minder  <lminder@gmx.net>
	    Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/19322
	* include/c_std/std_cmath.h: Define the C99 classification facilities
	directly inside namespace std:.
	* testsuite/26_numerics/cmath/19322.cc: New.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r93723
2005-01-16 09:59:06 +00:00
Ziemowit Laski
6435c34baf objc-act.c (objc_push_parm): Call c_type_promotes_to() via a lang-hook.
[gcc/objc/ChangeLog]
2005-01-16  Ziemowit Laski  <zlaski@apple.com>

        * objc-act.c (objc_push_parm): Call c_type_promotes_to()
        via a lang-hook.

From-SVN: r93722
2005-01-16 08:13:14 +00:00
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