1. 22 Jan, 2013 1 commit
  2. 19 Jan, 2013 1 commit
    • re PR target/54908 (misc regressions on emutls targets remain from dynamic… · 5af057d8
      re PR target/54908 (misc regressions on emutls targets remain from dynamic initialization of non-function-local TLS variables)
      
      	PR target/54908
      c-family/
      	* c.opt (-fextern-tls-init): New.
      	* c-opts.c (c_common_post_options): Handle it.
      cp/
      	* decl2.c (get_local_tls_init_fn): New.
      	(get_tls_init_fn): Handle flag_extern_tls_init.  Don't bother
      	with aliases for internal variables.  Don't use weakrefs if
      	the variable needs destruction.
      	(generate_tls_wrapper): Mark the wrapper as const if no
      	initialization is needed.
      	(handle_tls_init): Don't require aliases.
      
      From-SVN: r195310
      Jason Merrill committed
  3. 18 Jan, 2013 1 commit
    • Add support for Marvell's PJ4 CPU · df8de9b3
      2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
      	    Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	* config/arm/marvell-pj4.md: New file.
      	* config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
      	* config/arm/arm.md (generic_sched): Add marvell_pj4.
      	(generic_vfp): Likewise.
      	* config/arm/arm-cores.def: Add marvell-pj4.
      	* config/arm/arm-tune.md: Regenerate.
      	* config/arm/arm-tables.opt: Regenerate.
      	* config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
      	* doc/invoke.texi: Document marvell-pj4.
      
      
      
      
      Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
      
      From-SVN: r195295
      Yi-Hsiu Hsu committed
  4. 16 Jan, 2013 1 commit
  5. 13 Jan, 2013 1 commit
    • Makefile.in (s-mlib): New argument MULTILIB_REUSE. · e7f49d92
      2013-01-13  Terry Guo  <terry.guo@arm.com>
      
              * gcc/Makefile.in (s-mlib): New argument MULTILIB_REUSE.
              * gcc/doc/fragments.texi: Document MULTILIB_REUSE.
              * gcc/gcc.c (multilib_reuse): New internal spec.
              (set_multilib_dir): Also search multilib from multilib_reuse.
              * gcc/genmultilib (tmpmultilib3): Refactor code.
              (tmpmultilib4): Ditto.
              (multilib_reuse): New multilib argument.
      
      From-SVN: r195134
      Terry Guo committed
  6. 11 Jan, 2013 2 commits
  7. 10 Jan, 2013 1 commit
  8. 07 Jan, 2013 3 commits
  9. 04 Jan, 2013 1 commit
  10. 03 Jan, 2013 1 commit
  11. 27 Dec, 2012 1 commit
    • Before this patch... · eb745e40
      Before this patch, function multiversioning determines that two functions
      are different by comparing the arch type and isa flags that are set
      after the target string is processed. This leads to cases where  the
      versions become identical when the command-line target options are
      altered.
      
      This patch modifies the function version determination to
      just compare the target string.
      
      
      2012-12-27  Sriraman Tallam  <tmsriram@google.com>
      
      	* doc/tm.texi.in (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Document
      	new target hook.
      	* doc/tm.texi: Regenerate.
      	* c-family/c-common.c (handle_target_attribute): Retain target attribute
      	for targets that support versioning.
      	* target.def (supports_function_versions): New hook.
      	* cp/class.c (add_method): Remove calls
      	to DECL_FUNCTION_SPECIFIC_TARGET.
      	* config/i386/i386.c (ix86_function_versions): Use target string
      	to check for function versions instead of target flags.
      	* (ix86_supports_function_versions): New function.
      	* (is_function_default_version): Check target string.
      	* TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS: New macro.
      
      2012-12-27  Sriraman Tallam  <tmsriram@google.com>
      
      	* testsuite/g++.dg/mv1.C: Remove target options.
      	* testsuite/g++.dg/mv2.C: Ditto.
      	* testsuite/g++.dg/mv3.C: Ditto.
      	* testsuite/g++.dg/mv4.C: Ditto.
      	* testsuite/g++.dg/mv5.C: Ditto.
      
      From-SVN: r194730
      Sriraman Tallam committed
  12. 19 Dec, 2012 1 commit
    • target.def: Define canonicalize_comparison hook. · c354951b
      2012-12-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* target.def: Define canonicalize_comparison hook.
      	* targhooks.h (default_canonicalize_comparison): New prototype.
      	* targhooks.c (default_canonicalize_comparison): New function.
      	* doc/tm.texi: Add documentation for the new target hook.
      	* doc/tm.texi.in: Likewise.
      	* combine.c (try_combine): Adjust to use the target hook.
      	* config/alpha/alpha.h (CANONICALIZE_COMPARISON): Remove macro
      	definition.
      	* config/alpha/alpha.c (alpha_canonicalize_comparison): New
      	function.
      	(TARGET_CANONICALIZE_COMPARISON): New macro definition.
      	* config/arm/arm-protos.h (arm_canonicalize_comparison): Remove
      	prototype.
      	* config/arm/arm.c (arm_canonicalize_comparison): Add new
      	parameter.
      	(TARGET_CANONICALIZE_COMPARISON): New macro definition.
      	* config/arm/arm.h (CANONICALIZE_COMPARISON): Remove macro
      	definition.
      	* config/s390/s390-protos.h (s390_canonicalize_comparison): Remove
      	prototype.
      	* config/s390/s390.c (s390_canonicalize_comparison): Add new
      	parameter.
      	(TARGET_CANONICALIZE_COMPARISON): New macro definition.
      	* config/s390/s390.h (CANONICALIZE_COMPARISON): Remove macro
      	definition.
      	* config/sh/sh-protos.h (sh_canonicalize_comparison): Remove
      	prototype.
      	* config/sh/sh.c (sh_canonicalize_comparison): Add new prototype.  New
      	function overloading the old one.
      	(TARGET_CANONICALIZE_COMPARISON): New macro definition.
      	* config/sh/sh.h (CANONICALIZE_COMPARISON): Remove macro
      	definition.
      	* config/spu/spu.c (spu_canonicalize_comparison): New function.
      	(TARGET_CANONICALIZE_COMPARISON): New macro definition.
      	* config/spu/spu.h (CANONICALIZE_COMPARISON): Remove macro
      	definition.
      
      From-SVN: r194608
      Andreas Krebbel committed
  13. 18 Dec, 2012 2 commits
  14. 12 Dec, 2012 1 commit
    • dumpfile.h (enum tree_dump_index): Remove TDI_vcg. · af9acf91
      	* dumpfile.h (enum tree_dump_index): Remove TDI_vcg.
      	* dumpfile.c (dump_files[]): Remove entry for TDI_vcg.
      	* tree-cfg.c (gimple_cfg2vcg): Remove.
      	(build_gimple_cfg): Don't call it.
      	* doc/invoke.texi (-fdump-tree-vcg): Remove documentation.
      	Correct GraphViz documentation, it does handle multiple functions
      	in a single dump.
      
      From-SVN: r194445
      Steven Bosscher committed
  15. 11 Dec, 2012 1 commit
  16. 10 Dec, 2012 1 commit
    • neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm, Vrintz to type. · 8d28afb4
      gcc/ChangeLog
      
      2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm,
      	Vrintz to type.
      	(type features): Add Requires_arch type constructor.
      	(ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features.
      	* config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn,
      	Vrinta, Vrintp, Vrintm, Vrintz, Vrintx.
      	* config/arm/neon-testgen.ml (effective_target): Define check for 
      	Requires_arch 8.
      	* config/arm/neon-gen.ml 
      	(print_feature_test_start): Handle Requires_arch.
      	(print_feature_test_end): Likewise.
      	Add 2012 to Copyright notice.
      	* doc/arm-neon-intrinsics.texi: Regenerate.
      	* config/arm/arm_neon.h: Regenerate.
      
      gcc/testsuite/ChangeLog
      
      2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* gcc.target/arm/neon/vrndaf32.c: New test.
      	* gcc.target/arm/neon/vrndqaf32.c: Likewise.
      	* gcc.target/arm/neon/vrndf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqf32.c: Likewise.
      	* gcc.target/arm/neon/vrndmf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqmf32.c: Likewise.
      	* gcc.target/arm/neon/vrndnf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqnf32.c: Likewise.
      	* gcc.target/arm/neon/vrndpf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqpf32.c: Likewise.
      
      From-SVN: r194353
      Kyrylo Tkachov committed
  17. 06 Dec, 2012 1 commit
  18. 05 Dec, 2012 1 commit
    • tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation. · aeb9f7cf
      	* doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
      	* doc/tm.texi: Regenerate.
      	* regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
      	existing files global.c and local-alloc.c.
      	* regmove.c (copy_src_to_dest): Likewise.
      	* function.h (struct rtl_data): Likewise.
      	* ira-color.c (allocno_priority_compare_func): Likewise.
      	* regstat.c (regstat_compute_ri): Likewise.
      	* config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
      	config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
      	config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
      	config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
      	config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
      	config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
      
      From-SVN: r194229
      Steven Bosscher committed
  19. 04 Dec, 2012 1 commit
  20. 02 Dec, 2012 1 commit
  21. 28 Nov, 2012 1 commit
  22. 26 Nov, 2012 3 commits
    • invoke.texi: Remove -dv documentation. · a27a5de9
      gcc/
      	* doc/invoke.texi: Remove -dv documentation.  Fix up graph dump related
      	documentation.  Document the '-graph' dump option.  Complete the '-slim'
      	dump option documentation.
      
      	* common.opt (Variable graph_dump_format): Remove.
      	* flag-types.h (enum graph_dump_types): Remove.
      	* flags.h (dump_for_graph): Remove.
      	* opts.c (decode_d_option): Remove -dv handling.
      	* sched-int.h (print_insn, print_pattern, print_value): Move prototypes
      	from here ...
      	* rtl.h: ...to here.  Add note that these functions ought to be in
      	another file.
      	* sched-vis.c (print_insn): Add detailed dump for insn notes.
      	* print-rtl.c (dump_for_graph): Remove.
      	(print_rtx): Remove dump_for_graph related code.
      	* graph.c: Almost complete re-write to dump DOT (GraphViz) dumps
      	instead of VCG dumps.
      	* graph.h (print_rtl_graph_with_bb): Update prototype.
      	* passes.c (finish_optimization_passes): Fix profile dump finishing.
      	Unconditionally loop over graph dumps to finalize.
      	(execute_function_dump): Split code to dump graphs to separate block.
      	(execute_one_pass): Don't set TDF_GRAPH here, let the dump option
      	decoders do their job.
      
      	* ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION.
      	* toplev.c: Don't include graph.h.
      	* tree-optimize.c: Don't include graph.h.
      
      testsuite/
      	* testsuite/gcc.dg/20050811-1.c: Change -dv option to -graph option
      	to -fdump-rtl-all.
      	* testsuite/gcc.dg/pr37858.c: Remove -dv option.
      
      From-SVN: r193821
      Steven Bosscher committed
    • sourcebuild.texi: Document arm_v8_vfp_ok. · e3f9361d
      gcc/
      
      2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* doc/sourcebuild.texi: Document arm_v8_vfp_ok.
      
      gcc/testsuite/
      
      2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* lib/target-supports.exp (check_effective_target_arm_v8_vfp_ok):
      	 New procedure.
      	(add_options_for_arm_v8_vfp): New procedure.
      	* gcc.target/arm/vrintaf32.c: New test.
      	* gcc.target/arm/vrintaf64.c: Likewise.
      	* gcc.target/arm/vrintmf32.c: Likewise.
      	* gcc.target/arm/vrintmf64.c: Likewise.
      	* gcc.target/arm/vrintpf32.c: Likewise.
      	* gcc.target/arm/vrintpf64.c: Likewise.
      	* gcc.target/arm/vrintrf32.c: Likewise.
      	* gcc.target/arm/vrintrf64.c: Likewise.
      	* gcc.target/arm/vrintxf32.c: Likewise.
      	* gcc.target/arm/vrintxf64.c: Likewise.
      	* gcc.target/arm/vrintzf32.c: Likewise.
      	* gcc.target/arm/vrintzf64.c: Likewise.
      
      From-SVN: r193814
      Kyrylo Tkachov committed
    • re PR middle-end/55030 (gcc.c-torture/execute/builtins/memcpy-chk.c execution, -Os (et al)) · adddc347
      	PR middle-end/55030
      	* builtins.c (expand_builtin_setjmp_receiver): Update comment
      	regarding purpose of blockage.
      	* emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for
      	the head comment.
      	* rtlanal.c (volatile_insn_p): Ditto.
      	* doc/md.texi (blockage): Update similarly.  Change wording to
      	require one of two forms, rather than implying a wider choice.
      	* cse.c (cse_insn): Where checking for blocking insns, use
      	volatile_insn_p instead of manual check for volatile ASM.
      	* dse.c (scan_insn): Ditto.
      	* cselib.c (cselib_process_insn): Ditto.
      
      From-SVN: r193802
      Hans-Peter Nilsson committed
  23. 25 Nov, 2012 1 commit
    • tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation. · 97049e83
      gcc/
      	* doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation.
      	(ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
      	* doc/tm.texi: Regenerate.
      	* reorg.c (fill_simple_delay_slots): Remove code conditional on
      	DELAY_SLOTS_FOR_EPILOGUE being defined.
      	(make_return_insns, dbr_schedule): Likewise.
      	* system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison.
      	(ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
      
      From-SVN: r193787
      Steven Bosscher committed
  24. 23 Nov, 2012 3 commits
  25. 22 Nov, 2012 3 commits
  26. 21 Nov, 2012 3 commits
  27. 19 Nov, 2012 2 commits
    • md.texi: Document define_subst. · 477c104e
              * doc/md.texi: Document define_subst.
              * gensupport.c (MAX_OPERANDS): New define.
              (operand_data): New.
              (match_operand_entries_in_pattern): New.
              (used_operands_numbers): New.
              (subst_true): New.
              (subst_false): New.
              (define_subst_queue): New.
              (define_subst_tail): New.
              (define_subst_attr_queue): New.
              (define_subst_attr_tail): New.
              (has_subst_attribute): New.
              (subst_pattern_match): New.
              (get_alternatives_number): New.
              (alter_output_for_subst_insn): New.
              (alter_attrs_for_subst_insn): New.
              (process_substs_on_one_elem): New.
              (subst_dup): New.
              (process_define_subst): New.
              (duplicate_alternatives): New.
              (duplicate_each_alternative): New.
              (constraints_handler_t): New typedef.
              (alter_constraints): New.
              (adjust_operands_numbers): New.
              (replace_duplicating_operands_in_pattern): New.
              (remove_from_queue): New.
              (process_rtx): Handle define_subst and define_subst_attr.
              (change_subst_attribute): New.
              (alter_predicate_for_insn): Fix formatting.
              (alter_attrs_for_insn): Likewise.
              (alter_output_for_insn): Likewise.
              (mark_operands_from_match_dup): New.
              (mark_operands_used_in_match_dup): New.
              (find_first_unused_number_of_operand): New.
              (renumerate_operands_in_pattern): New.
              (generate_match_dup): New.
              (check_define_attr_duplicates): New.
              (init_rtx_reader_args_cb): Add checking for duplicated attrs and
              processing of define_subst.
              (read_md_rtx): Handle define_subst.
              * read-rtl.c (struct subst_attr_to_iter_mapping): New.
              (substs): New global.
              (apply_subst_iterator): New.
              (bind_subst_iter_and_attr): New.
              (find_subst_iter_by_attr): New.
              (map_attr_string): Handle subst-iterators.
              (add_condition_to_rtx): Handle define_subst.
              (apply_iterators): Likewise.
              (initialize_iterators): Likewise.
              (add_define_attr_for_define_subst): New.
              (add_define_subst_attr): New.
              (read_subst_mapping): New.
              (read_rtx): Handle define_subst_attr.
              (read_rtx_code): Add subst-attributes recognition during reading of
              strings.
              * rtl.def (DEFINE_EXPAND): Add vector of attributes.
              (DEFINE_SUBST): New.
              (DEFINE_SUBST_ATTR): New.
      
      
      Co-Authored-By: Kirill Yukhin <kirill.yukhin@intel.com>
      Co-Authored-By: Michael Zolotukhin <michael.v.zolotukhin@intel.com>
      
      From-SVN: r193618
      Maxim Kuznetsov committed
    • extend.texi: Use @smallexample consistently. · c513ecbf
      2012-11-18  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/extend.texi: Use @smallexample consistently.  Add @noindent
      	when continuing a sentence or paragraph past an example.  Change
      	tabs to spaces in examples.
      
      From-SVN: r193611
      Sandra Loosemore committed