aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-06-14decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode.Steve Ellcey2-1/+5
2011-06-14 Steve Ellcey <sje@cup.hp.com> * decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. From-SVN: r175053
2011-06-14common-target-def.h, [...]: New files.Joseph Myers16-18/+277
* common/common-target-def.h, common/common-target.def, common/common-target.h, common/config/default-common.c, common/config/pa/pa-common.c: New files. * Makefile.in (common_out_file, common_out_object_file, COMMON_TARGET_H, COMMON_TARGET_DEF_H): New. (OBJS-libcommon-target): Include $(common_out_object_file). (prefix.o): Update dependencies. ($(common_out_object_file), common/common-target-hooks-def.h, s-common-target-hooks-def-h): New. (s-tm-texi): Also check timestamp on common-target.def. (build/genhooks.o): Update dependencies. * config.gcc (common_out_file, target_has_targetm_common): Define. * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with TARGET_ALWAYS_STRIP_DOTDOT. * configure.ac (common_out_object_file): Define. (common_out_file, common_out_object_file): Substitute. (common): Create directory. * configure: Regenerate. * doc/tm.texi.in (targetm_common): Document. (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry. * doc/tm.texi: Regenerate. * genhooks.c (hook_array): Also include common/common-target.def. * prefix.c (tm.h): Don't include. (common/common-target.h): Include. (ALWAYS_STRIP_DOTDOT): Don't define. (update_path): Use targetm_common.always_strip_dotdot instead of ALWAYS_STRIP_DOTDOT. * system.h (ALWAYS_STRIP_DOTDOT): Poison. From-SVN: r175052
2011-06-14dumping cleanup phase 1 -- Removing TODO_dump_funcDavid Li93-233/+252
From-SVN: r175051
2011-06-14pr45701-1.c: Require thumb support.Janis Johnson4-0/+7
* gcc.target/arm/pr45701-1.c: Require thumb support. * gcc.target/arm/pr45701-2.c: Likewise. * gcc.target/arm/thumb-branch1.c: Likewise. From-SVN: r175047
2011-06-14mla-1.c: Ignore warnings about conflicting switches.Janis Johnson13-0/+27
* gcc.target/arm/mla-1.c: Ignore warnings about conflicting switches. * gcc.target/arm/pr39839.c: Likewise. * gcc.target/arm/pr40657-2.c: Likewise. * gcc.target/arm/pr40956.c: Likewise. * gcc.target/arm/pr41679.c: Likewise. * gcc.target/arm/pr42235.c: Likewise. * gcc.target/arm/pr42495.c: Likewise. * gcc.target/arm/pr42505.c: Likewise. * gcc.target/arm/pr42574.c: Likewise. * gcc.target/arm/pr46883.c: Likewise. * gcc.target/arm/pr46934.c: Likewise. * gcc.target/arm/xor-and.c: Likewise. From-SVN: r175046
2011-06-14* error.c (type_to_string): Print typedef-stripped version too.Jason Merrill2-0/+11
From-SVN: r175045
2011-06-14re PR c++/49117 (4.5 -> 4.6: user-unfriendly change in "invalid conversion" ↵Jason Merrill5-3/+11
error message) PR c++/49117 * call.c (perform_implicit_conversion_flags): Print source type as well as expression. From-SVN: r175044
2011-06-14re PR c++/49389 ([C++0x] Wrong value category for pointer-to-member ↵Jason Merrill4-1/+25
expression with rvalue object expression) PR c++/49389 * typeck2.c (build_m_component_ref): Preserve rvalueness. From-SVN: r175043
2011-06-14re PR c++/49369 (typeof() strips const from member when used in const method)Jason Merrill4-16/+31
PR c++/49369 * class.c (build_base_path): Fix cv-quals in unevaluated context. From-SVN: r175042
2011-06-14re PR c++/49290 ([C++0x] ICE in in cxx_eval_indirect_ref, at ↵Jason Merrill4-40/+175
cp/semantics.c:6795) PR c++/49290 * semantics.c (cxx_fold_indirect_ref): Local, more permissive copy of fold_indirect_ref_1. (cxx_eval_indirect_ref): Use it. From-SVN: r175041
2011-06-14fix utf-8Jason Merrill1-1/+1
From-SVN: r175040
2011-06-14Properly expand strlen to Pmode.H.J. Lu2-2/+15
2011-06-14 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47364 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode and properly handle result not in Pmode. From-SVN: r175034
2011-06-14kfreebsd-gnu.h: Resync with `config/i386/linux.h'.Robert Millan7-17/+56
* config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'. * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with `config/linux.h'. * config/i386/kfreebsd-gnu64.h: New file. * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h' with `i386/kfreebsd-gnu64.h'. * config/i386/linux64.h (GNU_USER_LINK_EMULATION32) (GNU_USER_LINK_EMULATION64): New macros. * config/i386/gnu-user64.h (LINK_SPEC): Rely on `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead of hardcoding `elf_i386' and `elf_x86_64'. From-SVN: r175031
2011-06-14re PR target/49403 (v850e-elf: incompatible pointer type (near ↵Nick Clifton3-2/+12
initialization for ‘targetm.memory_move_cost’)) PR target/49403 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter. PR target/49402 * config.gcc(v850*-*-*): Avoid duplication of v850.opt. From-SVN: r175030
2011-06-14re PR fortran/49103 (local variables exchange values / wrong code with -O3)Jakub Jelinek6-3/+64
PR fortran/49103 * tree.h (DECL_NONSHAREABLE): Define. (struct tree_decl_common): Change decl_common_unused to decl_nonshareable_flag. * cfgexpand.c (expand_used_vars_for_block, clear_tree_used): Ignore vars with DECL_NONSHAREABLE bit set. * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE on stores to automatic aggregate vars. * gfortran.dg/pr49103.f90: New test. From-SVN: r175028
2011-06-14re PR middle-end/45098 (Missed induction variable optimization)Tom de Vries4-0/+80
2011-06-14 Tom de Vries <tom@codesourcery.com> PR target/45098 * gcc.target/arm/ivopts-3.c: New test. * gcc.target/arm/ivopts-4.c: New test. * gcc.target/arm/ivopts-5.c: New test. From-SVN: r175025
2011-06-14re PR rtl-optimization/49390 (GCSE miscompilation)Jakub Jelinek4-6/+118
PR rtl-optimization/49390 Revert: 2010-06-29 Bernd Schmidt <bernds@codesourcery.com> * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare MEM_ALIAS_SET. * gcc.c-torture/execute/pr49390.c: New test. From-SVN: r175023
2011-06-14re PR middle-end/45098 (Missed induction variable optimization)Zdenek Dvorak10-116/+185
2011-06-14 Zdenek Dvorak <ook@ucw.cz> Tom de Vries <tom@codesourcery.com> PR target/45098 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate): Document changed semantics. (max_stmt_executions, max_stmt_executions_int): Declare. * tree-data-ref.c (estimated_loop_iterations) (estimated_loop_iterations_int): Move functions... * tree-ssa-loop-niter.c (estimated_loop_iterations) (estimated_loop_iterations_int): here. (record_estimate): Change nb_iterations_upper_bound and nb_iterations_estimate semantics. (max_stmt_executions, max_stmt_executions_int): New function. * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ... (max_stmt_executions_tree): this. (analyze_miv_subscript): Use max_stmt_executions_tree instead of estimated_loop_iterations_tree. tree-ssa-loop-ivopts.c (avg_loop_niter): Use max_stmt_executions_int instead of estimated_loop_iterations_int. * predict.c (predict_loops): Idem. * tree-parloops.c (parallelize_loops): Idem. * tree-data-ref.c (analyze_siv_subscript_cst_affine) (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine) (init_omega_for_ddr_1): Idem. * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse) (loop_prefetch_arrays): Idem * graphite-sese-to-poly.c (build_loop_iteration_domains): Use max_stmt_executions instead of estimated_loop_iterations. * tree-data-ref.c (estimated_loop_iterations_tree): Idem. * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations instead of nb_iterations_upper_bound. Co-Authored-By: Tom de Vries <tom@codesourcery.com> From-SVN: r175022
2011-06-14* ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.Jan Hubicka2-8/+13
From-SVN: r175021
2011-06-14* g++.dg/torture/pr48954.C: Use dg-require-effective-target lto.Rainer Orth2-0/+6
From-SVN: r175019
2011-06-14re PR debug/48459 (avr: Assertion failure with -gdwarf-2)Richard Henderson2-7/+23
PR debug/48459 * dwarf2out.c (frame_pointer_fb_offset_valid): New. (based_loc_descr): Assert it's true. (compute_frame_pointer_to_fb_displacement): Set it, rather than aborting immediately. From-SVN: r175018
2011-06-14invoke.texi: Re-add missing -mcpu docs for Faraday cores.Sanjin Liu2-1/+8
2011-06-14 Sanjin Liu <scliu@faraday-tech.com> Mingfeng Wu <mingfeng@faraday-tech.com> * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores. Co-Authored-By: Mingfeng Wu <mingfeng@faraday-tech.com> From-SVN: r175017
2011-06-14* ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.Jan Hubicka2-1/+5
From-SVN: r175016
2011-06-14cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY similarly to ↵Jan Hubicka4-5/+12
DECL_COMDAT. * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY similarly to DECL_COMDAT. * cgraphunit.c (cgraph_analyze_function): Likewise. * ipa.c (function_and_variable_visibility): Likewise. From-SVN: r175015
2011-06-14lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output ↵Jan Hubicka2-1/+10
BINFO_VIRTUALS when streaming for ltrans unit. * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output BINFO_VIRTUALS when streaming for ltrans unit. From-SVN: r175014
2011-06-14cmpsi-2.c: Undo 172757.Georg-Johann Lay8-4/+28
testsuite/ * gcc.c-torture/execute/cmpsi-2.c: Undo 172757. * gcc.c-torture/execute/cmpsi-2.x: New file. * gcc.c-torture/execute/pr45262.c: Undo 172757. * gcc.c-torture/execute/pr45262.x: New file. * gcc.c-torture/compile/pr46534.c: Skip for AVR. * gcc.c-torture/compile/pr49029.c: Add dg-require-effective-target int32plus * gcc.c-torture/compile/pr49163.c: Ditto. From-SVN: r175012
2011-06-14Fix long linesEric Botcazou1-9/+11
From-SVN: r175011
2011-06-14vect-16.c: Rename to...Ira Rosen6-10/+26
* gcc.dg/vect/vect-16.c: Rename to... * gcc.dg/vect/no-fast-math-vect16.c: ...this. * gcc.dg/vect/vect-peel-3.c: Adjust misalignment values for double-word vectors. * gcc.dg/vect/vect-peel-4.c: Likewise. * gcc.dg/vect/bb-slp-10.c: Replace vect_hw_misalign with vect_element_align. * gcc.dg/vect/vect.exp: Run no-fast-math-* tests with -fno-fast-math. From-SVN: r175009
2011-06-14Change builtin make to runtime call at lowering time.Ian Lance Taylor8-598/+256
Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175008
2011-06-14Daily bump.GCC Administrator1-1/+1
From-SVN: r175006
2011-06-13[multiple changes]David Edelsohn2-26/+210
2011-06-13 David Edelsohn <dje.gcc@gmail.com> * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic. (movdi_internal64): Same. 2011-06-13 Edmar Wienskoski <edmar@freescale.com> * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with a set of similar patterns, where the MATCH_OPERAND for the function argument is replaced with individual references to hardware registers. (save_fpregs_<mode>): Ditto (restore_gpregs_<mode>): Ditto (return_and_restore_gpregs_<mode>): Ditto (return_and_restore_fpregs_<mode>): Ditto (return_and_restore_fpregs_aix_<mode>): Ditto From-SVN: r174997
2011-06-13* gcc.target/powerpc/outofline_rnreg.c: New testcase.Edmar Wienskoski2-0/+19
From-SVN: r174995
2011-06-13ipa-inline.c (reset_edge_caches): Walk aliases.Jan Hubicka2-3/+8
* ipa-inline.c (reset_edge_caches): Walk aliases. (update_caller_keys): Do not test inlinability of aliases. * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias. (do_estimate_growth): Fix typo. From-SVN: r174992
2011-06-13ipa-utils.c (postorder_stack): New structure.Jan Hubicka2-37/+61
* ipa-utils.c (postorder_stack): New structure. (ipa_reverse_postorder): Handle aliases. From-SVN: r174991
2011-06-13ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...Jan Hubicka2-7/+40
* ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from... (can_remove_node_now_p): ... here; handle same comdat groups. (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO. (inline_call): Update use of can_remove_node_now_p. From-SVN: r174989
2011-06-13Correct typos.H.J. Lu1-2/+2
From-SVN: r174988
2011-06-13Remove duplicated lines.H.J. Lu3-16/+8
2011-06-13 H.J. Lu <hongjiu.lu@intel.com> * gcc.dg/h8300-bit-insn-ice2.2: Remove duplicated lines. From-SVN: r174987
2011-06-13h8300.md (bsetqi_msx, [...]): Added condition to disallow non-identical ↵Kaushik Phatak3-30/+76
memory locations. * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added condition to disallow non-identical memory locations. (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give preference to bit manipulation instructions. * gcc.dg/h8300-bit-insn-ice2.2: New testcase. From-SVN: r174986
2011-06-13cgraph.c (cgraph_for_node_thunks_and_aliases, [...]): Fix thinko in ↵Jan Hubicka5-26/+74
recursive walking. * cgraph.c (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases): Fix thinko in recursive walking. (nonremovable_p): New function. (cgraph_can_remove_if_no_direct_calls_p): New function. (used_from_object_file_p): New functoin. (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for references from aliases. * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline. * ipa-inline.c (check_caller_edge): New function. (want_inline_function_called_once_p): Use it; accept aliases called once, too. * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME. From-SVN: r174985
2011-06-13re PR target/48454 (gfortran.dg/char_result_13.f90 fails with -O3 ↵Ramana Radhakrishnan2-2/+9
-funroll-loops -mvectorize-with-neon-quad) PR target/48454 Fix vmovn lengths. 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> PR target/48454 * config/arm/neon.md (vec_pack_trunc<mode>): Set the lengths correctly for the case with Quad vectors. From-SVN: r174984
2011-06-13frontend-passes.c (remove_trim): New function.Thomas Koenig4-43/+61
2011-06-13 Thomas Koenig <tkoenig@gcc.gnu.org> * frontend-passes.c (remove_trim): New function. (optimize_assignment): Use it. (optimize_comparison): Likewise. Return correct status for previous change. 2011-06-13 Thomas Koenig <tkoenig@gcc.gnu.org> * gfortran.dg/trim_optimize_8.f90: New test case. From-SVN: r174983
2011-06-13re PR tree-optimization/49352 (-fcompare-debug failure with -O2 ↵Jakub Jelinek4-85/+113
-ftree-vectorize) PR tree-optimization/49352 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at all, make sure loop_use_stmt after the loop is a def stmt of a used SSA_NAME that is the only one defined inside of the loop. Don't check for COND_EXPR and GIMPLE_BINARY_RHS. (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if check_reduction is true. Co-Authored-By: Ira Rosen <ira.rosen@linaro.org> From-SVN: r174982
2011-06-13Daily bump.GCC Administrator1-1/+1
From-SVN: r174979
2011-06-12re PR middle-end/49373 (Many testcase failures)Jan Hubicka2-0/+7
PR middle-end/49373 * ipa.c (cgraph_externally_visible_p): Check resolution info. From-SVN: r174972
2011-06-12re PR middle-end/48836 (internal compiler error: in execute_todo, at ↵Jan Hubicka3-1/+11
passes.c:1261) PR middle-end/48836 * ipa-inline-transform.c: Include tree-pass.h (inline_transform): Set TODO_update_ssa_only_virtuals. * Makefile.in (ipa-inline-transform.o): Add tree-pass.h. From-SVN: r174970
2011-06-12re PR middle-end/49378 (C++ is broken)Jan Hubicka2-1/+15
PR middle-end/49378 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out aliases and thunks. From-SVN: r174969
2011-06-12Fix moxie comparisonsAnthony Green1-1/+1
From-SVN: r174966
2011-06-12tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): Take number of ↵Ira Rosen2-1/+9
iterations to peel into account for equally frequent... * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): Take number of iterations to peel into account for equally frequent misalignment values. From-SVN: r174965
2011-06-12Daily bump.GCC Administrator1-1/+1
From-SVN: r174964
2011-06-122011-06-12 Tobias BurnusTobias Burnus5-3/+58
PR fortran/49324 * trans-expr.c (gfc_trans_assignment_1): Tell gfc_trans_scalar_assign to also deep-copy RHS nonvariables with allocatable components. * trans-array.c (gfc_conv_expr_descriptor): Ditto. 2011-06-12 Tobias Burnus PR fortran/49324 * gfortran.dg/alloc_comp_assign_11.f90: New. From-SVN: r174959