aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
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
2008-01-17avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.Anatoly Sokolov3-6/+28
* config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around. * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add. From-SVN: r131609
2008-01-17re PR middle-end/34400 (bad interaction between DF and SJLJ exceptions)Seongbae Park3-18/+141
2008-01-17 Seongbae Park <seongbae.park@gmail.com> PR rtl-optimization/34400 * df-core.c (df_worklist_dataflow_overeager, df_worklist_dataflow_doublequeue): New functions. (df_worklist_dataflow): Two different worklist solvers. * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR): New param. From-SVN: r131608
2008-01-17re PR testsuite/34821 (new gcc.dg testsuite failures)Sebastian Pop2-2/+12
2008-01-16 Sebastian Pop <sebastian.pop@amd.com> PR testsuite/34821 * doc/invoke.texi: Document the dependence on pthread for fopenmp and ftree-parallelize-loops. From-SVN: r131606
2008-01-17re PR testsuite/34821 (new gcc.dg testsuite failures)Sebastian Pop16-0/+70
2008-01-17 Sebastian Pop <sebastian.pop@amd.com> PR testsuite/34821 * gcc.dg/autopar/autopar.exp: New. * g++.dg/tree-ssa/pr34355.C: Require pthread. * lib/target-supports.exp (check_effective_target_pthread): New. * gcc.dg/tree-ssa/parallelization-1.c: Moved to gcc.dg/autopar. * gcc.dg/tree-ssa/reduc-1short.c: Same. * gcc.dg/tree-ssa/reduc-1.c: Same. * gcc.dg/tree-ssa/reduc-2short.c: Same. * gcc.dg/tree-ssa/reduc-2.c: Same * gcc.dg/tree-ssa/reduc-3.c: Same. * gcc.dg/tree-ssa/reduc-1char.c: Same. * gcc.dg/tree-ssa/reduc-6.c: Same. * gcc.dg/tree-ssa/reduc-7.c: Same. * gcc.dg/tree-ssa/reduc-2char.c: Same. * gcc.dg/tree-ssa/reduc-8.c: Same. * gcc.dg/tree-ssa/reduc-9.c: Same. From-SVN: r131605
2008-01-17Fix 34826Mircea Namolaru2-0/+19
From-SVN: r131604
2008-01-17global.c (find_reg): Mark the eh regs as used if necessary.Andreas Krebbel4-1/+28
2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com> * global.c (find_reg): Mark the eh regs as used if necessary. * ra-conflict.c (global_conflicts): Set no_eh_reg flag. * ra.h (struct allocno): no_eh_reg field added. Changed no_stack_reg type to bitfield. From-SVN: r131601
2008-01-17tree.c (substitute_in_expr): Add missing 'break'.Eric Botcazou6-5/+35
* tree.c (substitute_in_expr): Add missing 'break'. ada/ * utils.c (build_function_stub): Properly build the call expression. From-SVN: r131600
2008-01-1720080114-1.c: Use empty asm statements.Eric Botcazou2-2/+6
* gcc.c-torture/compile/20080114-1.c: Use empty asm statements. From-SVN: r131596
2008-01-17re PR tree-optimization/34825 (ICE with -funsafe-math-optimizations)Richard Guenther4-1/+24
2008-01-17 Richard Guenther <rguenther@suse.de> PR tree-optimization/34825 * tree-ssa-math-opts.c (is_division_by): Do not recognize x / x as division to handle. * gcc.dg/pr34825.c: New testcase. From-SVN: r131595
2008-01-1720080117-1.c: New testcase.Richard Guenther2-0/+28
2008-01-17 Richard Guenther <rguenther@suse.de> * gcc.c-torture/execute/20080117-1.c: New testcase. From-SVN: r131594
2008-01-17Fix pr30957-1.c testcaseRevital Eres2-3/+12
From-SVN: r131593
2008-01-17re PR fortran/34429 (Fails: character(len=use_associated_const) function foo())Paul Thomas17-83/+554
2008-01-17 Paul Thomas <pault@gcc.gnu.org> PR fortran/34429 PR fortran/34431 PR fortran/34471 * decl.c : Remove gfc_function_kind_locus and gfc_function_type_locus. Add gfc_matching_function. (match_char_length): If matching a function and the length does not match, return MATCH_YES and try again later. (gfc_match_kind_spec): The same. (match_char_kind): The same. (gfc_match_type_spec): The same for numeric and derived types. (match_prefix): Rename as gfc_match_prefix. (gfc_match_function_decl): Except for function valued character lengths, defer applying kind, type and charlen info until the end of specification block. gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS. parse.c (decode_specification_statement): New function. (decode_statement): Call it when a function has kind = -1. Set and reset gfc_matching function, as function statement is being matched. (match_deferred_characteristics): Simplify with a single call to gfc_match_prefix. Do appropriate error handling. In any case, make sure that kind = -1 is reset or corrected. (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS. Throw an error if kind = -1 after last specification statement. parse.h : Prototype for gfc_match_prefix. 2008-01-17 Paul Thomas <pault@gcc.gnu.org> PR fortran/34429 * gfortran.dg/function_charlen_1.f90: New test. PR fortran/34431 * gfortran.dg/function_types_1.f90: New test. * gfortran.dg/function_types_2.f90: New test. PR fortran/34471 * gfortran.dg/function_kinds_4.f90: New test. * gfortran.dg/function_kinds_5.f90: New test. * gfortran.dg/defined_operators_1.f90: Errors now at function declarations. * gfortran.dg/private_type_4.f90: The same. * gfortran.dg/interface_15.f90: The same. * gfortran.dg/elemental_args_check_2.f90: The same. * gfortran.dg/auto_internal_assumed.f90: The same. From-SVN: r131592
2008-01-17Log entry for last change.John David Anglin1-0/+6
From-SVN: r131591
2008-01-17pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or ↵John David Anglin2-3/+6
"-pthread" is specified. * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or "-pthread" is specified. * pa-hpux11.h (LIB_SPEC): Likewise. From-SVN: r131590
2008-01-16re PR rtl-optimization/33796 (valgrind error with -O2 for linux kernel code)Janis Johnson2-1/+12
PR rtl-optimization/33796 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc. Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com> From-SVN: r131589
2008-01-17re PR libfortran/34699 (FAIL: ↵John David Anglin4-15/+10
gfortran.fortran-torture/execute/intrinsic_set_exponent.f90 execution) PR libgfortran/34699 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on static links. * pa-hpux10.h (LINK_SPEC): Likewise. * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1. From-SVN: r131586
2008-01-17Daily bump.GCC Administrator1-1/+1
From-SVN: r131584
2008-01-16sizetype.adb: New test.Eric Botcazou2-0/+18
* gnat.dg/sizetype.adb: New test. From-SVN: r131580
2008-01-16re PR middle-end/32628 (bogus integer overflow warning)Richard Guenther4-2/+37
2008-01-16 Richard Guenther <rguenther@suse.de> PR middle-end/32628 * fold-const.c (fold_convert_const_int_from_int): Do not set overflow if that occured only because of a sign extension change when converting from/to a sizetype with the same precision and signedness. * gcc.dg/overflow-warn-7.c: New testcase. From-SVN: r131579
2008-01-16re PR debug/34249 (FAIL: gcc.dg/tree-prof/bb-reorg.c compilation, ↵Uros Bizjak2-15/+25
-fprofile-use -D_PROFILE_USE) PR debug/34249 * dwarf2out.c (output_call_frame_info): Move output of FDE initial location address to the correct place. Update copyright year. From-SVN: r131578
2008-01-16lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences ↵Sebastian Pop2-2/+12
in the dependence_relations vector. 2008-01-16 Sebastian Pop <sebastian.pop@amd.com> * lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences in the dependence_relations vector. From-SVN: r131577
2008-01-16re PR rtl-optimization/31396 (Inline code performance much worse than ↵Jan Hubicka8-9/+65
out-of-line) PR rtl-optimization/31396 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED. * cfg.c (dump_reg_info): Print it. * regs.h (struct reg_info_t): add freq_calls_crossed. (REG_FREQ_CALLS_CROSSED): New macro. * global.c (global_alloc): Compute freq_calls_crossed for allocno. (find_reg): Update call of CALLER_SAVE_PROFITABLE. * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2, regmove_optimize): Update call crossed frequencies. * local-alloc.c (struct qty): Add freq_calls_crossed. (alloc_qty): Copute freq_calls_crossed. (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED. (find_free_reg): Update call of CALLER_SAVE_PROFITABLE. * ra.h (struct allocno): Add freq_calls_crossed. From-SVN: r131576
2008-01-16loop-19.c: Require nonpic.Kaveh R. Ghazi2-0/+5
* gcc.dg/tree-ssa/loop-19.c: Require nonpic. From-SVN: r131575
2008-01-16gcc.c (LINK_COMMAND_SPEC): Add includes and link options for libgomp when...Sebastian Pop2-2/+8
* gcc.c (LINK_COMMAND_SPEC): Add includes and link options for libgomp when compiling with ftree-parallelize-loops. (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops. From-SVN: r131574
2008-01-16re PR tree-optimization/34769 (gcc.dg/vect/no-vfa-pr29145.c)Richard Guenther3-19/+23
2008-01-16 Richard Guenther <rguenther@suse.de> PR tree-optimization/34769 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458. * tree.c (int_cst_value): Instead make this function more permissive in what it accepts as valid input. Document this function always sign-extends the value. From-SVN: r131573
2008-01-16re PR middle-end/34668 (ICE in find_compatible_field with -combine)Jakub Jelinek7-13/+79
2008-01-16 Jakub Jelinek <jakub@redhat.com> Richard Guenther <rguenther@suse.de> PR c/34668 * gimplify.c (fold_indirect_ref_rhs): Rename to ... (gimple_fold_indirect_ref_rhs): ... this. (gimple_fold_indirect_ref): New function with foldings that preserve lvalueness. (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs. * tree-flow.h (gimple_fold_indirect_ref): Declare. * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref to fold an INDIRECT_REF, fall back to the old use of fold_indirect_ref_1. * gcc.dg/pr34668-1.c: New test. * gcc.dg/pr34668-2.c: Likewise. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r131572
2008-01-16tree-data-ref.c (subscript_dependence_tester_1): Call free_conflict_function.Sebastian Pop2-2/+18
2008-01-16 Sebastian Pop <sebastian.pop@amd.com> * tree-data-ref.c (subscript_dependence_tester_1): Call free_conflict_function. (compute_self_dependence): Same. From-SVN: r131571
2008-01-16re PR debug/34249 (FAIL: gcc.dg/tree-prof/bb-reorg.c compilation, ↵Uros Bizjak4-11/+19
-fprofile-use -D_PROFILE_USE) PR debug/34249 * debug.h (dwarf2out_switch_text_section): Move declaration from ... * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make function global. * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]: Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section for DWARF2_UNWIND_INFO targets. From-SVN: r131570
2008-01-16re PR c++/33819 (Miscompiled shift of C++ bitfield)Richard Guenther4-0/+40
2008-01-16 Richard Guenther <rguenther@suse.de> PR c++/33819 * typeck.c (is_bitfield_expr_with_lowered_type): Recurse for conversions to type variants. * g++.dg/torture/pr33819.C: New testcase. From-SVN: r131569