Commit Graph

85439 Commits

Author SHA1 Message Date
Jonathan Wakely
013d0feab1 update_web_docs_libstdcxx_svn: "docs" dir moved to "doc".
2008-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* update_web_docs_libstdcxx_svn: "docs" dir moved to "doc".

From-SVN: r131702
2008-01-21 21:04:00 +00:00
Luciano Chavez
e0c604077e re PR libgcj/34369 (java.net.URI.relativize(URI) method returns incorrect results)
2008-01-21  Luciano Chavez  <lnx1138@us.ibm.com>

	PR libgcj/34369:
	* java/net/URI.java (relativize): Check initial segment for
	trailing "/".

From-SVN: r131701
2008-01-21 20:08:38 +00:00
Tobias Burnus
d68e117b15 re PR fortran/34901 (add kind information to mismatched-types error message)
2007-01-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34901
        * interface.c (compare_parameter): Improved error message
        for arguments of same type and mismatched kinds.

From-SVN: r131700
2008-01-21 19:33:10 +01:00
Richard Guenther
bb0c55f6ee re PR target/34856 (ICE with some constant vectors)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34856
	* tree-cfg.c (verify_expr): Allow all invariant expressions
	instead of just constant class ones as reference argument.
	* tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
	like any other constant.
	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.

	* gcc.c-torture/compile/pr34856.c: New testcase.

From-SVN: r131696
2008-01-21 16:21:45 +00:00
H.J. Lu
94c54fea1a regmove.c (fixup_match_1): Update call crossed frequencies.
2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>

	* regmove.c (fixup_match_1): Update call crossed frequencies.

From-SVN: r131695
2008-01-21 07:54:41 -08:00
Richard Guenther
c54e3854ad re PR tree-optimization/34885 (ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:574)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR c/34885
	* tree-inline.c (setup_one_parameter): Deal with mismatched
	types using a VIEW_CONVERT_EXPR.

	* gcc.c-torture/compile/pr34885.c: New testcase.

From-SVN: r131694
2008-01-21 14:25:46 +00:00
Eric Botcazou
41b72e5916 Update copyright year.
From-SVN: r131693
2008-01-21 12:05:13 +00:00
Eric Botcazou
461d6eb38e trans.c (gnat_to_gnu): Use POINTER_PLUS_EXPR in pointer arithmetics.
* trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
	in pointer arithmetics.
	* utils2.c (build_allocator): Likewise.

From-SVN: r131692
2008-01-21 11:58:53 +00:00
Joseph Myers
6cc199f4b6 * de.po: Update.
From-SVN: r131691
2008-01-21 10:33:38 +00:00
Richard Guenther
02dcf7badb re PR c++/34850 (Recursive BLOCK tree causes compilation to hang during diagnostics)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR c++/34850
	cp/
	* error.c (cp_print_error_function): Deal with recursive
	BLOCK trees.

	* g++.dg/torture/pr34850.C: New testcase.

From-SVN: r131690
2008-01-21 09:34:19 +00:00
Alon Dayan
b158b5c6aa re PR middle-end/34701 (ICE in tree-ssa-ccp.c with -fipa-struct-reorg)
2008-01-21  Alon Dayan  <alond@il.ibm.com>
	    Olga Golovanevsky  <olga@il.ibm.com>

	PR tree-optimization/34701
	* gcc.dg/struct/wo_prof_array_field.c: New test.
	
2008-01-21  Alon Dayan  <alond@il.ibm.com>
	    Olga Golovanevsky  <olga@il.ibm.com>
	
	PR tree-optimization/34701
	* ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
	when the structure size is not a power of 2.

Co-Authored-By: Olga Golovanevsky <olga@il.ibm.com>

From-SVN: r131689
2008-01-21 09:07:12 +00:00
Paolo Carlini
b8ce93da2d re PR c++/34891 (Broken diagnostic: 'view_convert_expr' not supported by dump_expr)
/cp
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34891
        * error.c (dump_expr): Deal with VIEW_CONVERT_EXPR.

/testsuite
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34891
        * g++.dg/ext/vector9.C: New.

From-SVN: r131687
2008-01-21 02:30:31 +00:00
Paolo Carlini
dbc21af5a9 re PR c++/34776 (ICE with invalid member declaration in template class)
/cp
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34776
	PR c++/34486
        * name-lookup.c (do_class_using_decl): Do not call constructor_name_p
	on non-IS_AGGR_TYPE type scope.
	(constructor_name_p): Assert IS_AGGR_TYPE.

/testsuite
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34776
	PR c++/34486
        * g++.dg/template/crash75.C: New.
        * g++.dg/template/crash76.C: Likewise.

From-SVN: r131686
2008-01-21 01:49:29 +00:00
Kenneth Zadeck
604f825c83 install.texi: Add doc for --enable-checking=df.
2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>

	* doc/install.texi: Add doc for --enable-checking=df.

From-SVN: r131685
2008-01-21 01:09:04 +00:00
GCC Administrator
4f8aaa248f Daily bump.
From-SVN: r131683
2008-01-21 00:17:21 +00:00
Kaz Kojima
539c54bafb re PR rtl-optimization/34808 (ICE in prescan_insns_for_dce)
PR rtl-optimization/34808
	* emit-rtl.c (try_split): Handle REG_RETVAL notes.
	* gcc.c-torture/compile/pr34808.c: New test.

From-SVN: r131680
2008-01-21 00:04:23 +00:00
Paul Thomas
f5d67ede42 re PR fortran/34861 (ICE in function with entry (and result?))
2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34861
	* resolve.c (resolve_entries): Do not do an array bounds check
	if the result symbols are the same.

	PR fortran/34854
	* module.c (read_module) : Hide the symtree of the previous
	version of the symbol if this symbol is renamed.

2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34784
	* gfortran.dg/mapping_2.f90: Correct ubound expression for h4.

	PR fortran/34861
	* gfortran.dg/entry_array_specs_3.f90: New test.

	PR fortran/34854
	* gfortran.dg/use_rename_1.f90: New test.

From-SVN: r131679
2008-01-20 16:58:15 +00:00
Joseph Myers
bdf8f544b6 * sv.po: Update.
From-SVN: r131678
2008-01-20 14:53:58 +00:00
Paul Thomas
fe8edd0c23 trans-array.c (gfc_add_loop_ss_code): Correct whitespace.
2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	* trans-array.c (gfc_add_loop_ss_code) :  Correct whitespace.

From-SVN: r131677
2008-01-20 10:26:42 +00:00
Richard Sandiford
ecff8c1c5d global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per input.
gcc/
	* global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
	input.

From-SVN: r131676
2008-01-20 08:47:14 +00:00
Paul Thomas
f2d3cb2501 re PR fortran/34784 (implicit character(s) hides type of selected_int_kind intrinsic)
2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34784
	* array.c (gfc_check_constructor_type): Clear the expression ts
	so that the checking starts from the deepest level of array
	constructor.
	* primary.c (match_varspec): If an unknown type is changed to
	default character and the attempt to match a substring fails,
	change it back to unknown.

	PR fortran/34785
	* trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
	NULL for an array constructor, use the cl.length expression to
	build it.
	(gfc_conv_array_parameter): Change call to gfc_evaluate_now to
	a tree assignment.


2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34784
	* gfortran.dg/array_constructor_20.f90: New test.
	* gfortran.dg/mapping_2.f90: Correct ubound expression for h4.

	PR fortran/34785
	* gfortran.dg/array_constructor_21.f90: New test.

From-SVN: r131675
2008-01-20 08:22:56 +00:00
Jerry DeLisle
2045a99abb Fix it.
From-SVN: r131674
2008-01-20 06:55:46 +00:00
Jerry DeLisle
c13ff92614 re PR fortran/34795 (inquire statement , direct= specifier incorrectly returns YES)
2008-01-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34795
	* gfortran.dg/inquire_13.f90: New test.
	
	PR libfortran/34659
	* gfortran.dg/continuation_9.f90: New test.

From-SVN: r131673
2008-01-20 06:48:39 +00:00
Jerry DeLisle
17c2c96cdc inquire.c (inquire_via_unit): If a unit is opened...
2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io/inquire.c (inquire_via_unit): If a unit is opened, return values
	according to the open action for DIRECT, FORMATTED, and	UNFORMATTED.
	(inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
	FORAMATTED, and UNFORMATTED inquiries.
	* io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
	for files that are not opened. (inquire_direct): Same.
	(inquire_formatted): Same.

From-SVN: r131672
2008-01-20 06:33:49 +00:00
Paolo Carlini
e08c673e05 configure: Regenerate.
2008-01-19  Paolo Carlini  <pcarlini@suse.de>

	* configure: Regenerate.
	* Makefile.in: Likewise.
	* src/Makefile.in: Likewise.
	* doc/Makefile.in: Likewise.
	* po/Makefile.in: Likewise.
	* libmath/Makefile.in: Likewise.
	* include/Makefile.in: Likewise.
	* libsupc++/Makefile.in: Likewise.
	* testsuite/Makefile.in: Likewise.
	* aclocal.m4: Likewise.

From-SVN: r131671
2008-01-20 01:48:44 +00:00
Kenneth Zadeck
2b49e1a09d re PR tree-optimization/26854 (Inordinate compile times on large routines)
2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR rtl-optimization/26854
	PR rtl-optimization/34400
	* ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
	DF_RD->gen.
	* df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
	(df_rd_bb_info.expanded_lr_out): New.
	* loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
	* loop_iv.c (iv_analysis_loop_init): Ditto.
	* df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
	df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
	Added code to allocate, initialize or free expanded_lr_out.
	(df_rd_bb_local_compute_process_def): Restructured to make
	more understandable.
	(df_rd_confluence_n): Add code to do nothing with fake edges and
	code to no apply invalidate_by_call sets if the sets are being trimmed.
	(df_lr_local_finalize): Renamed to df_lr_finalize.
	(df_live_local_finalize): Renamed to df_live_finalize.

From-SVN: r131670
2008-01-20 01:48:25 +00:00
Joseph Myers
1828e8e9bf * de.po: Restore to current version from TP site.
From-SVN: r131669
2008-01-20 00:18:42 +00:00
GCC Administrator
ee7e9a0be0 Daily bump.
From-SVN: r131667
2008-01-20 00:17:40 +00:00
Joseph Myers
1831259863 * sv.po: Update.
From-SVN: r131664
2008-01-20 00:13:43 +00:00
Joseph Myers
e523d4f296 * sv.po: Update.
From-SVN: r131663
2008-01-20 00:12:09 +00:00
Richard Sandiford
0decaff6a5 re PR target/34831 (ICE on gcc.dg/pr34233.c for MIPS)
gcc/
	PR target/34831
	* config/mips/mips.md (div<mode>3): Use <recip_condition> when
	deciding whether to use reciprocal instructions.

gcc/testsuite/
	PR target/34831
	* gcc.target/mips/pr34831.c: New test.

From-SVN: r131662
2008-01-20 00:05:07 +00:00
Joseph Myers
2f94c6715b * sv.po: Update.
From-SVN: r131661
2008-01-19 23:57:18 +00:00
Thomas Koenig
c613d54045 re PR fortran/34817 (mixed-kind "any" and "all" intrinsics with expressions)
2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/34817
	PR fortran/34838
	* iresolve.c (gfc_resolve_all):  Remove conversion of mask
	argument to kind=1 by removing call to resolve_mask_arg().
	(gfc_resolve_any):  Likewise.

2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/34817
	PR fortran/34838
	* gfortran.dg/any_all_1.f90:  New test.
	* gfortran.dg/any_all_2.f90:  New test.

From-SVN: r131660
2008-01-19 22:47:47 +00:00
John David Anglin
e2bd3e81f5 ia64-2.C: Place "dg-do run" statement before "dg-require-weak" statement.
* g++.dg/eh/ia64-2.C: Place "dg-do run" statement before
	"dg-require-weak" statement.
	* g++.dg/eh/weak1.C: Likewise.

From-SVN: r131657
2008-01-19 21:38:20 +00:00
Uros Bizjak
d0b9dbd562 dwarf2out.c (dwarf2out_switch_text_section): Do not call dwarf2out_note_section_used if cold_text_section is NULL.
* dwarf2out.c (dwarf2out_switch_text_section): Do not call
        dwarf2out_note_section_used if cold_text_section is NULL.

From-SVN: r131654
2008-01-19 18:57:57 +01:00
Jakub Jelinek
135a171d9e re PR gcov-profile/34610 (ICE with "-fprofile-arcs -fopenmp")
PR gcov-profile/34610
	* tree-cfg.c (make_edges): Mark both outgoing edges from
	OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
	* omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
	from OMP_FOR and OMP_CONTINUE outgoing edges.

	* tree-profile.c (tree_profiling): Return early if
	cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
	at the end.
	* omp-low.c (expand_omp_parallel): Copy after_tree_profile
	from cfun to child_cfun.
	* function.h (struct function): Add after_tree_profile bit.

	* gcc.dg/gomp/pr34610.c: New test.

From-SVN: r131653
2008-01-19 18:49:46 +01:00
Tobias Burnus
d7e2fcd003 re PR fortran/34760 (PRIVATE variable not allowed as STAT variable in ALLOCATE)
2008-01-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34760
        * primary.c (match_variable): Handle FL_UNKNOWN without
        uneducated guessing.
        (match_variable): Improve error message.

2008-01-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34760
        * gfortran.dg/implicit_11.f90: New.
        * gfortran.dg/allocate_stat.f90: Update dg-error pattern.
        * gfortran.dg/entry_15.f90: Ditto.
        * gfortran.dg/func_assign.f90: Ditto.
        * gfortran.dg/gomp/reduction3.f90: Ditto.
        * gfortran.dg/proc_assign_1.f90: Ditto.

        * gfortran.dg/interface_proc_end.f90: Use dg-error instead
        of dg-excess-errors.

From-SVN: r131652
2008-01-19 16:41:04 +01:00
Anatoly Sokolov
0a84fec696 * config/avr/avr.S (_exit): Disable interrupt.
From-SVN: r131651
2008-01-19 15:15:02 +03:00
Manuel López-Ibáñez
daf6ff4c78 re PR other/33768 (splay-tree.c typo)
2008-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR other/33768
	* splay-tree.c (rotate_left): Fix minor typo in comment.
	(rotate_right): Likewise.

From-SVN: r131650
2008-01-19 00:39:08 +00:00
Kenneth Zadeck
5aa52064ea re PR tree-optimization/26854 (Inordinate compile times on large routines)
2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
	    Steven Bosscher  <stevenb.gcc@gmail.com>

	PR rtl-optimization/26854
	PR rtl-optimization/34400
	* df-problems.c (df_live_scratch): New scratch bitmap.
	(df_live_alloc): Allocate df_live_scratch when doing df_live.
	(df_live_reset): Clear the proper bitmaps.
	(df_live_bb_local_compute): Only process the artificial defs once
	since the order is not important.
	(df_live_init): Init the df_live sets only with the variables
	found live by df_lr.
	(df_live_transfer_function): Use the df_lr sets to prune the
	df_live sets as they are being computed.  
	(df_live_free): Free df_live_scratch.


Co-Authored-By: Steven Bosscher <stevenb.gcc@gmail.com>

From-SVN: r131649
2008-01-19 00:38:34 +00:00
GCC Administrator
4b59989677 Daily bump.
From-SVN: r131647
2008-01-19 00:17:03 +00:00
Tobias Burnus
a0710c29ea re PR fortran/32616 ("Too short actual argument" for array element storage sequence)
2008-01-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/32616
        * interface.c (get_expr_storage_size): Return storage size
        for array element designators.
        (compare_actual_formal): Reject unequal string sizes for
        assumed-shape dummy arguments. And fix error message for
        array-sections with vector subscripts.

2008-01-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/32616
        * gfortran.dg/argument_checking_15.f90: New.
        * gfortran.dg/argument_checking_5.f90: Change TODO into
        dg-warning.

From-SVN: r131643
2008-01-19 00:46:04 +01:00
Tobias Burnus
7939be8022 enum_4.f90: Replace dg-excess-errors by dg-error.
2008-01-18  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/enum_4.f90: Replace dg-excess-errors by dg-error.
        * gfortran.dg/enum_5.f90: Ditto.
        * gfortran.dg/enum_6.f90: Ditto.
        * gfortran.dg/bom_error.f90: Ditto.
        * gfortran.dg/func_decl_4.f90: Ditto.

From-SVN: r131642
2008-01-19 00:04:50 +01:00
Jerry DeLisle
a6e0993cf8 re PR fortran/34782 (tab format failure to display properly (regression vs. g77))
2007-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR target/34782
	* gfortran.dg/fmt_t_6.f: New test.

From-SVN: r131641
2008-01-18 22:22:21 +00:00
Jerry DeLisle
6c540522ba transfer.c (formatted_transfer_scalar): Set max_pos to the greater of the current max_pos or the newly calculated position.
2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
	of the current max_pos or the newly calculated position.

From-SVN: r131640
2008-01-18 22:19:15 +00:00
Tobias Burnus
810143349d write.c (write_real): Increase default precision for
2008-01-18  Tobias Burnus  <burnus@net-b.de>

        * io/write.c (write_real): Increase default precision for
        * REAL(16) by one.

2008-01-18  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/large_real_kind_form_io_1.f90: Enlarge string for
        * internal I/O.

From-SVN: r131639
2008-01-18 22:43:08 +01:00
Jonathan Wakely
a4c2b85784 two-stage2.C: fix comment.
2008-01-18  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* g++.dg/lookup/two-stage2.C: fix comment.

From-SVN: r131636
2008-01-18 21:18:37 +00:00
Alexandre Oliva
70a0694b3a re PR c++/33887 (Reference to bitfield gets wrong value when optimizing)
PR c++/33887
* link.cc (_Jv_Linker::prepare_constant_time_tables):
has_interfaces is boolean, treat it as such.

From-SVN: r131632
2008-01-18 19:11:15 +00:00
Ian Lance Taylor
987b399aaf Document -fno-merge-debug-strings rather than -fmerge-debug-strings.
From-SVN: r131631
2008-01-18 16:21:13 +00:00
Ian Lance Taylor
28a0816854 common.opt: Add fmerge-debug-strings.
./:	* common.opt: Add fmerge-debug-strings.
	* dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
	flag_merge_debug_strings rather than flag_merge_constants.
	* doc/invoke.texi (Option Summary): Mention
	-fmerge-debug-strings.
	(Debugging Options): Document -fmerge-debug-strings.
testsuite/:
	* gcc.dg/debug/dwarf2/var1.c: Add -fno-merge-debug-strings.

From-SVN: r131630
2008-01-18 15:46:43 +00:00