aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2010-02-05tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.Richard Guenther4-7/+77
2010-02-05 Richard Guenther <rguenther@suse.de> * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions. (fold_const_aggregate_ref): Likewise. (ccp_fold_stmt): Substitute loads. (maybe_fold_reference): Verify types before substituting. Unshare properly. (fold_gimple_assign): Unshare properly. (fold_stmt_1): Insert conversion if necessary before replacing the RHS. * gcc.dg/tree-ssa/ssa-ccp-28.c: New testcase. From-SVN: r156519
2010-02-05rs6000.c (rs6000_override_options): Invert check for rs6000_gen_cell_microcode.Nathan Froyd2-4/+9
* config/rs6000/rs6000.c (rs6000_override_options): Invert check for rs6000_gen_cell_microcode. From-SVN: r156518
2010-02-05be.po, [...]: Update.Joseph Myers17-165527/+175204
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update. From-SVN: r156516
2010-02-05re PR c++/42915 (ICE: same canonical type node for different types in recent ↵Dodji Seketeli4-1/+31
builds) Fix PR c++/42915 gcc/cp/ChangeLog: PR c++/42915 * typeck.c (get_template_parms_of_dependent_type): Try getting the template parameters fromt the type itself first. gcc/testsuite/ChangeLog: PR c++/42915 g++.dg/other/crash-9.C: New test. From-SVN: r156514
2010-02-05re PR fortran/42309 (Problem with a pointer array passed to a subroutine)Paul Thomas7-7/+91
2010-02-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/42309 * trans-expr.c (gfc_conv_subref_array_arg): Add new argument 'formal_ptr'. If this is true, give returned descriptor unity lbounds, in all dimensions, and the appropriate offset. (gfc_conv_procedure_call); If formal is a pointer, set the last argument of gfc_conv_subref_array_arg to true. * trans.h : Add last argument for gfc_conv_subref_array_arg. * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the new arg of gfc_conv_subref_array_arg to false. * trans-stmt.c (forall_make_variable_temp): The same. 2010-02-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/42309 * gfortran.dg/subref_array_pointer_4.f90 : New test. From-SVN: r156512
2010-02-05Daily bump.GCC Administrator1-1/+1
From-SVN: r156506
2010-02-04* gcc.pot: Regenerate.Joseph Myers2-2458/+2753
From-SVN: r156497
2010-02-04re PR rtl-optimization/42952 (possible integer wrong code bug)Richard Guenther4-3/+29
2010-02-04 Richard Guenther <rguenther@suse.de> PR rtl-optimization/42952 * dse.c (const_or_frame_p): Remove MEM handling. * gcc.dg/torture/pr42952.c: New testcase. From-SVN: r156494
2010-02-04mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.Nick Clifton1-0/+11
* config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define. (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define. (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM. (mn10300_asm_output_mi_thunk): New function. (mn10300_can_output_mu_thunk): New function. * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define. (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1. (FUNCTION_ARG): Delete incorrect comment. From-SVN: r156492
2010-02-04Fix a couple of nitsEric Botcazou1-2/+2
From-SVN: r156491
2010-02-04re PR fortran/42901 (reading array of structures from namelist fails)Jerry DeLisle2-0/+32
2010-02-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/42901 * gfortran.dg/namelist_60.f90: New test. From-SVN: r156488
2010-02-04Daily bump.GCC Administrator1-1/+1
From-SVN: r156486
2010-02-03re PR c++/40138 (ICE with invalid va_arg)Jason Merrill4-1/+20
PR c++/40138 * fold-const.c (operand_equal_p): Handle erroneous types. From-SVN: r156483
2010-02-03re PR c++/4926 (C++ ABI needs clarification on mangling of complex expressions)Jason Merrill5-54/+128
PR c++/4926 PR c++/38600 * mangle.c (write_unqualified_id): Split out from write_expression. (write_unqualified_name): Call it. (write_member_name): Likewise. (write_expression): Support TEMPLATE_ID_EXPR. Disambiguate operator names. From-SVN: r156482
2010-02-03re PR c++/12909 (ambiguity in mangling vector types)Jason Merrill5-2/+35
PR c++/12909 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling. From-SVN: r156481
2010-02-03h8300.md (can_delay): Fix attibute condition.Kaushik Phatak2-2/+6
* config/h8300/h8300.md (can_delay): Fix attibute condition. From-SVN: r156480
2010-02-03re PR rtl-optimization/42941 (-fsched-pressure -fschedule-insns - valgrind ↵Vladimir Makarov2-2/+8
warns about using uninitialized variable) 2010-02-03 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimizations/42941 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead of xmalloc. From-SVN: r156472
2010-02-03add missing ChangeLogJason Merrill1-0/+5
From-SVN: r156470
2010-02-03re PR c++/35652 (offset warning should be given in the front-end)Jason Merrill3-2/+31
PR c++/35652 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics. From-SVN: r156469
2010-02-03re PR debug/42896 (Random debug generation differences, bootstrap fails)Alexandre Oliva6-92/+118
2010-02-03 Alexandre Oliva <aoliva@redhat.com> PR debug/42896 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash. (cselib_reset_table): Renamed from... (cselib_reset_table_with_next_value): ... this. (cselib_get_next_uid): Renamed from... (cselib_get_next_unknown_value): ... this. * cselib.c (next_uid): Renamed from... (next_unknown_value): ... this. (cselib_clear_table): Adjust. (cselib_reset_table): Adjust. Renamed from... (cselib_reset_table_with_next_value): ... this. (cselib_get_next_uid): Adjust. Renamed from... (cselib_get_next_unknown_value): ... this. (get_value_hash): Use hash. (cselib_hash_rtx): Likewise. (new_cselib_val): Adjust. Set and dump uid. (cselib_lookup_mem): Pass next_uid as hash. (cselib_subst_to_values): Likewise. (cselib_log_lookup): Dump uid. (cselib_lookup): Pass next_uid as hash. Adjust. (cselib_process_insn): Adjust. (cselib_init): Initialize next_uid. (cselib_finish): Adjust. (dump_cselib_table): Likewise. * dse.c (canon_address): Dump value uid. * print-rtl.c (print_rtx): Print value uid. * var-tracking.c (VARIABLE_HASH_VAL): Dropped. (dvuid): New type. (dv_uid): New function, sort of renamed from... (dv_htab_hash): ... this, reimplemented in terms of it and... (dv_uid2hash): ... this. New. (variable_htab_eq): Drop excess assertions. (tie_break_pointers): Removed. (canon_value_cmp): Compare uids. (variable_post_merge_New_vals): Print uids. (vt_add_function_parameters): Adjust. (vt_initialize): Reset table. Adjust. From-SVN: r156468
2010-02-03re PR tree-optimization/42944 (errno misoptimization around malloc call)Richard Guenther4-0/+46
2010-02-03 Richard Guenther <rguenther@suse.de> PR tree-optimization/42944 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc. (call_may_clobber_ref_p_1): Likewise. Properly handle malloc and calloc clobbering errno. * gcc.dg/errno-1.c: New testcase. From-SVN: r156467
2010-02-03invoke.texi: Fix name of sched1 dump.Steven Bosscher4-25/+16
* doc/invoke.texi: Fix name of sched1 dump. * opts.c (decode_options): Set flag_tree_switch_conversion only conditionally on optimize >= 2. * gcse.c: Assorted comment fixes in pass description. From-SVN: r156466
2010-02-03Fix moxie tramponline alignment problemAnthony Green3-5/+17
From-SVN: r156465
2010-02-03re PR tree-optimization/42927 (type mismatch in shift expression produces ↵Richard Guenther4-3/+45
ice with -O3) 2010-02-03 Richard Guenther <rguenther@suse.de> PR middle-end/42927 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification. * gcc.c-torture/compile/pr42927.c: New testcase. From-SVN: r156464
2010-02-03config.gcc: Reenable check for obsolete targets.Rainer Orth2-10/+21
* config.gcc: Reenable check for obsolete targets. Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*, mips-sgi-irix6.[0-4]*. From-SVN: r156462
2010-02-03re PR fortran/42936 (Result of passing NULL() as actual arg doesn't inherit ↵Tobias Burnus4-3/+30
characteristics from the corresponding dummy arg) 2010-02-03 Tobias Burnus <burnus@net-b.de> PR fortran/42936 * interface.c (compare_parameter): Disable rank-checking for NULL(). 2010-02-03 Tobias Burnus <burnus@net-b.de> PR fortran/42936 * gfortran.dg/null_4.f90: New test. From-SVN: r156461
2010-02-03Daily bump.GCC Administrator1-1/+1
From-SVN: r156458
2010-02-02re PR c++/41090 (Using static label reference in c++ class constructor ↵Jason Merrill5-1/+77
produces wrong code) PR c++/41090 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls. * optimize.c (clone_body): Remap their initializers when making base variants. (maybe_clone_body): Complain if multiple clones aren't safe. From-SVN: r156455
2010-02-02re PR fortran/42650 (F90: DT function with in-line DT definition and RESULT ↵Tobias Burnus4-1/+25
is rejected) 2010-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/42650 * parse.c (decode_specification_statement): Use sym->result not * sym. 2010-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/42650 * gfortran.dg/func_result_5.f90: New test. From-SVN: r156449
2010-02-02rx.c (rx_is_legitimate_constant): Treat a maximum constant size of 4 as ↵Nick Clifton3-4/+11
being the same as 0. * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum constant size of 4 as being the same as 0. * doc/invoke.texi (RX Options): Document that -mmax-constant-size can take values in the range 0..4. From-SVN: r156447
2010-02-02re PR java/41991 (gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9)Jack Howarth3-0/+20
2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu> PR java/41991 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction() as _darwin10_Unwind_FindEnclosingFunction(). * libgcc-libsystem.ver: New. From-SVN: r156444
2010-02-02Daily bump.GCC Administrator1-1/+1
From-SVN: r156440
2010-02-01re PR fortran/42922 (Wrongly rejected derived types with default ↵Tobias Burnus4-6/+32
initializers in PURE procedures 2) 2010-02-01 Tobias Burnus <burnus@net-b.de> PR fortran/42922 * decl.c (variable_decl): Allow default initializer in TYPE declarations in PURE functions. 2010-02-01 Tobias Burnus <burnus@net-b.de> PR fortran/42922 * gfortran.dg/pure_initializer_3.f90: News test. From-SVN: r156433
2010-02-01re PR target/41399 (Scheduler gives huge dependence graph compiling ↵Vladimir Makarov2-0/+7
fortran/intrinsic.c on ARM) 2010-02-01 Vladimir Makarov <vmakarov@redhat.com> PR target/41399 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for implicitly set registers. From-SVN: r156431
2010-02-01arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.Richard Earnshaw4-77/+43
* arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K. (arm_override_options): Allow automatic selection of the thread pointer register if thumb2. (legitimize_pic_address): Improve code sequences for Thumb2. (arm_call_tls_get_addr): Likewise. (legitimize_tls_address): Likewise. * arm.md (pic_load_addr_arm): Delete. Replace with ... (pic_load_addr_32bit): ... this. New named pattern. * thumb2.md (pic_load_addr_thumb2): Delete. (pic_load_dot_plus_four): Delete. (tls_load_dot_plus_four): New named pattern. From-SVN: r156428
2010-02-01re PR libgomp/29986 (testsuite failures)Rainer Orth2-0/+23
PR libgomp/29986 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry. Document fix for TLS bug. From-SVN: r156427
2010-02-01* sv.po: Update.Joseph Myers2-283/+287
From-SVN: r156423
2010-02-01Daily bump.GCC Administrator1-1/+1
From-SVN: r156422
2010-01-31re PR fortran/42888 (ICE in fold_convert_loc, at fold-const.c:2670)Janus Weil7-24/+92
gcc/fortran/ 2010-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/42888 * resolve.c (resolve_allocate_expr): Move default initialization code here from gfc_trans_allocate. * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for EXEC_INIT_ASSIGN. * trans-expr.c (gfc_trans_class_assign): Handle default initialization of CLASS variables via memcpy. * trans-stmt.c (gfc_trans_allocate): Move default initialization code to resolve_allocate_expr. gcc/testsuite/ 2010-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/42888 * gfortran.dg/allocate_derived_2.f90: New test. From-SVN: r156418
2010-01-31re PR middle-end/42898 (volatile structures and compound literal initializers)Eric Botcazou2-0/+30
PR middle-end/42898 * gcc.dg/torture/pr42898-2.c: New test. From-SVN: r156414
2010-01-31tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be conservatively correct.Richard Guenther2-25/+39
2010-01-31 Richard Guenther <rguenther@suse.de> * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be conservatively correct. From-SVN: r156413
2010-01-31re PR target/42850 (FAIL: g++.dg/abi/forced.C execution test)John David Anglin2-1/+9
PR target/42850 Revert: 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two. From-SVN: r156410
2010-01-31configure.ac: Add "recommended" version checks for GMP/MPC.Kaveh R. Ghazi2-3/+7
* configure.ac: Add "recommended" version checks for GMP/MPC. Update recommended GMP/MPFR/MPC versions. * configure: Regenerate. gcc: * doc/install.texi: Update recommended GMP/MPFR/MPC versions. From-SVN: r156408
2010-01-31config.gcc: Adjust order of makefile fragments for mingw targets.Kai Tietz2-2/+12
2010-01-31 Kai Tietz <kai.tietz@onevision.com> * config.gcc: Adjust order of makefile fragments for mingw targets. From-SVN: r156406
2010-01-31re PR middle-end/42898 (volatile structures and compound literal initializers)Richard Guenther4-0/+49
2010-01-31 Richard Guenther <rguenther@suse.de> PR middle-end/42898 * gimplify.c (gimplify_init_constructor): For volatile LHS initialize a temporary. * gcc.dg/torture/pr42898.c: New testcase. From-SVN: r156404
2010-01-31configure.ac: Fix __stack_chk_fail check for cross builds configured ↵Matthias Klose3-2/+12
--with-headers 2010-01-31 Matthias Klose <doko@ubuntu.com> * configure.ac: Fix __stack_chk_fail check for cross builds configured --with-headers * configure: Regenerate. From-SVN: r156402
2010-01-31re PR fortran/38324 (Wrong lbound given to allocatable components)Paul Thomas8-122/+267
2010-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/38324 * expr.c (gfc_get_full_arrayspec_from_expr): New function. * gfortran.h : Add prototype for above. * trans-expr.c (gfc_trans_alloc_subarray_assign): New function. (gfc_trans_subcomponent_assign): Call new function to replace the code to deal with allocatable components. * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call gfc_get_full_arrayspec_from_expr to replace existing code. 2010-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/38324 * gfortran.dg/alloc_comp_basics_1.f90: Remove option -O2. * gfortran.dg/alloc_comp_bounds_1.f90: New test. From-SVN: r156399
2010-01-31Daily bump.GCC Administrator1-1/+1
From-SVN: r156392
2010-01-30inline-1.C: New.Paolo Bonzini4-0/+109
2010-01-30 Paolo Bonzini <bonzini@gnu.org> * g++.dg/tree-ssa/inline-1.C: New. * g++.dg/tree-ssa/inline-2.C: New. * g++.dg/tree-ssa/inline-3.C: New. From-SVN: r156384
2010-01-30Daily bump.GCC Administrator1-1/+1
From-SVN: r156375