aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-01-21Update copyright year.Eric Botcazou1-1/+1
From-SVN: r131693
2008-01-21trans.c (gnat_to_gnu): Use POINTER_PLUS_EXPR in pointer arithmetics.Eric Botcazou5-6/+25
* 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* de.po: Update.Joseph Myers2-4/+8
From-SVN: r131691
2008-01-21re PR c++/34850 (Recursive BLOCK tree causes compilation to hang during ↵Richard Guenther4-1/+88
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-21re PR middle-end/34701 (ICE in tree-ssa-ccp.c with -fipa-struct-reorg)Alon Dayan4-1/+46
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-21re PR c++/34891 (Broken diagnostic: 'view_convert_expr' not supported by ↵Paolo Carlini4-0/+21
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-21re PR c++/34776 (ICE with invalid member declaration in template class)Paolo Carlini5-2/+41
/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-21install.texi: Add doc for --enable-checking=df.Kenneth Zadeck2-2/+6
2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com> * doc/install.texi: Add doc for --enable-checking=df. From-SVN: r131685
2008-01-21Daily bump.GCC Administrator1-1/+1
From-SVN: r131683
2008-01-21re PR rtl-optimization/34808 (ICE in prescan_insns_for_dce)Kaz Kojima4-1/+52
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-20re PR fortran/34861 (ICE in function with entry (and result?))Paul Thomas7-3/+68
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-20trans-array.c (gfc_add_loop_ss_code): Correct whitespace.Paul Thomas1-1/+1
2008-01-20 Paul Thomas <pault@gcc.gnu.org> * trans-array.c (gfc_add_loop_ss_code) : Correct whitespace. From-SVN: r131677
2008-01-20global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per input.Richard Sandiford2-2/+12
gcc/ * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per input. From-SVN: r131676
2008-01-20re PR fortran/34784 (implicit character(s) hides type of selected_int_kind ↵Paul Thomas7-1/+103
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-20re PR fortran/34795 (inquire statement , direct= specifier incorrectly ↵Jerry DeLisle3-2/+120
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-20re PR tree-optimization/26854 (Inordinate compile times on large routines)Kenneth Zadeck6-71/+160
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* de.po: Restore to current version from TP site.Joseph Myers2-1/+5
From-SVN: r131669
2008-01-20Daily bump.GCC Administrator1-1/+1
From-SVN: r131667
2008-01-20re PR target/34831 (ICE on gcc.dg/pr34233.c for MIPS)Richard Sandiford4-1/+19
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-19* sv.po: Update.Joseph Myers2-2618/+1228
From-SVN: r131661
2008-01-19re PR fortran/34817 (mixed-kind "any" and "all" intrinsics with expressions)Thomas Koenig5-4/+51
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-19ia64-2.C: Place "dg-do run" statement before "dg-require-weak" statement.John David Anglin3-2/+8
* 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-19dwarf2out.c (dwarf2out_switch_text_section): Do not call ↵Uros Bizjak2-2/+9
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-19re PR gcov-profile/34610 (ICE with "-fprofile-arcs -fopenmp")Jakub Jelinek7-9/+85
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-19re PR fortran/34760 (PRIVATE variable not allowed as STAT variable in ALLOCATE)Tobias Burnus10-16/+84
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* config/avr/avr.S (_exit): Disable interrupt.Anatoly Sokolov2-1/+7
From-SVN: r131651
2008-01-19re PR tree-optimization/26854 (Inordinate compile times on large routines)Kenneth Zadeck2-12/+42
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-19Daily bump.GCC Administrator1-1/+1
From-SVN: r131647
2008-01-19re PR fortran/32616 ("Too short actual argument" for array element storage ↵Tobias Burnus5-29/+146
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-19enum_4.f90: Replace dg-excess-errors by dg-error.Tobias Burnus6-5/+16
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-18re PR fortran/34782 (tab format failure to display properly (regression vs. ↵Jerry DeLisle2-0/+15
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-18write.c (write_real): Increase default precision forTobias Burnus2-1/+5
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-18two-stage2.C: fix comment.Jonathan Wakely2-1/+5
2008-01-18 Jonathan Wakely <jwakely.gcc@gmail.com> * g++.dg/lookup/two-stage2.C: fix comment. From-SVN: r131636
2008-01-18Document -fno-merge-debug-strings rather than -fmerge-debug-strings.Ian Lance Taylor1-2/+3
From-SVN: r131631
2008-01-18common.opt: Add fmerge-debug-strings.Ian Lance Taylor6-7/+33
./: * 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-18re PR c++/33407 (C++ operator new and new expression do not change dynamic type)Ian Lance Taylor8-9/+108
PR c++/33407 ./: * tree.h (DECL_IS_OPERATOR_NEW): Define. (struct tree_function_decl): Add new field operator_new_flag. * tree-inline.c (expand_call_inline): When inlining a call to operator new, force the return value to go into a variable, and set DECL_NO_TBAA_P on that variable. * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag. cp/: * decl.c (duplicate_decls): Copy DECL_IS_OPERATOR_NEW flag. (grok_op_properties): For NEW_EXPR and VEC_NEW_EXPR set DECL_IS_OPERATOR_NEW flag. testsuite/: * g++.dg/init/new26.C: New test. From-SVN: r131629
2008-01-18re PR middle-end/34801 (FAIL: gcc.dg/Warray-bounds.c)Richard Guenther2-3/+8
2008-01-18 Richard Guenther <rguenther@suse.de> PR middle-end/34801 * gcc.dg/Warray-bounds.c: XFAIL two tests, remove one redundant one. From-SVN: r131628
2008-01-18pr34355.C: Correct order of dg-do and dg-require-effective-target.Hans-Peter Nilsson2-1/+6
* g++.dg/tree-ssa/pr34355.C: Correct order of dg-do and dg-require-effective-target. From-SVN: r131627
2008-01-18re PR target/34484 (libgcc should check if feclearexcept (and others) ↵Uros Bizjak2-46/+56
available for BID support on uclibc) PR debug/34484 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with DWARF2_DEBUGGING_INFO. (dwarf2out_note_section_used): Ditto. Add prototype. (have_multiple_function_sections, text_section_used, cold_text_section_used, *cold_text_sections): Move declarations before their uses. From-SVN: r131626
2008-01-18re PR fortran/34556 (Rejects valid with bogus error message: parameter ↵Jerry DeLisle2-0/+29
initalization) 2007-01-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR target/34556 * gfortran.dg/reshape_2.f90: New test. From-SVN: r131624
2008-01-18re PR fortran/34556 (Rejects valid with bogus error message: parameter ↵Jerry DeLisle2-8/+38
initalization) 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/34556 * simplify.c (is_constant_array_expr): New static function that returns true if the given expression is an array and is constant. (gfc_simplify_reshape): Use new function. From-SVN: r131623
2008-01-18unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc field and add signal_ra.Bob Wilson5-17/+138
* config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc field and add signal_ra. * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove assignments to frame state pc. Move end of stack check after MD_FALLBACK_FRAME_STATE_FOR. (uw_update_context_1): Use frame state signal_regs if set, instead of checking signal_frame flag. (uw_update_context): Use frame state signal_ra if set. * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define. * config/xtensa/linux-unwind.h: New file. From-SVN: r131622
2008-01-17re PR fortran/33375 (ICE (segfault) gfortran.dg/common_6.f90)H.J. Lu4-5/+21
2008-01-17 H.J. Lu <hongjiu.lu@intel.com> PR fortran/33375 * symbol.c (free_common_tree): Renamed to ... (gfc_free_common_tree): This. Remove static. (gfc_free_namespace): Updated. * gfortran.h (gfc_free_common_tree): New. * match.c (gfc_match_common): Call gfc_free_common_tree () with gfc_current_ns->common_root and set gfc_current_ns->common_root to NULL on syntax error. From-SVN: r131621
2008-01-18re PR fortran/34686 (Aliasing bug when returning character pointers)Richard Sandiford2-7/+7
2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk> PR fortran/34686 * trans-expr.c (gfc_conv_function_call): Use proper type for returned character pointers. From-SVN: r131620
2008-01-18Daily bump.GCC Administrator1-1/+1
From-SVN: r131618
2008-01-18de.po: Fix typo.Bernhard Fischer2-1/+5
2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org> * de.po: Fix typo. From-SVN: r131615
2008-01-1820040223-1.c: Fix comment typo.Bernhard Fischer2-2/+6
2007-01-18 Bernhard Fischer <aldot@gcc.gnu.org> * gcc.dg/20040223-1.c: Fix comment typo. From-SVN: r131614
2008-01-18modulo-sched.c (get_sched_window): Fix comment typo.Bernhard Fischer2-1/+5
2007-01-18 Bernhard Fischer <aldot@gcc.gnu.org> * modulo-sched.c (get_sched_window): Fix comment typo. From-SVN: r131613
2008-01-17re PR target/34814 (SDmode function args not passed according to ABI ↵Janis Johnson2-3/+6
specification) PR target/34814 * gcc.target/powerpc/ppc32-abi-dfp-1.c: Enable checks that will fail until 34814 is fixed. From-SVN: r131611
2008-01-17Teach SCCVN that throwing expressions are not to be regenerated.Andrew MacLeod4-1/+51
http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00764.html Teach SCCVN that throwing expressions are not to be regenerated. 2008-01-17 Andrew MacLeod <amacleod@redhat.com> * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying. * gcc.c-torture/compile/pr34648.c: New testcase. From-SVN: r131610