1. 09 Aug, 2013 14 commits
    • re PR fortran/58058 (Memory leak with transfer function) · 36849c21
      2013-08-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58058
      	* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Free the temporary
      	string, if necessary.
      
      2013-08-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58058
      	* gfortran.dg/transfer_intrinsic_6.f90: New.
      
      From-SVN: r201633
      Janus Weil committed
    • cgraphbuild.c (cgraph_rebuild_references): Rebuild only non-speculative refs. · 042ae7d2
      
      	* cgraphbuild.c (cgraph_rebuild_references): Rebuild only non-speculative
      	refs.
      	* cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
      	(cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
      	(cgraph_set_call_stmt): Likewise.
      	(cgraph_create_edge_1): Fix release checking compilatoin;
      	clear lto_stmt_uid.
      	(cgraph_free_edge): Free indirect info.
      	(cgraph_turn_edge_to_speculative): New function.
      	(cgraph_speculative_call_info): New function.
      	(cgraph_make_edge_direct): Return direct edge; handle speculation.
      	(cgraph_redirect_edge_call_stmt_to_callee): Expand speculative
      	edges.
      	(dump_cgraph_node): Dump speculation.
      	(verify_edge_count_and_frequency): Accept speculative edges.
      	(verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
      	(verify_cgraph_node): Handle speculation.
      	* cgraph.h (cgraph_edge): Add SPECULATIVE flag.
      	(cgraph_set_call_stmt): Update prototype.
      	(cgraph_make_edge_direct): Update prototype.
      	(cgraph_speculative_call_info): Declare.
      	* ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
      	to change; update call of ipa_find_references.
      	* ipa-ref.c (ipa_record_reference): Fix return value; clear
      	lto_stmt_uid and speculative flags.
      	(ipa_dump_references): Dump speculation.
      	(ipa_clone_references): Clone speculative flag.
      	(ipa_clone_referring): Likewise.
      	(ipa_clone_ref): New function.
      	(ipa_find_reference): Look into lto_stmt_uids
      	(ipa_clear_stmts_in_references): Do not clear speculative calls.
      	* ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
      	(ipa_find_reference): Update declaration.
      	(ipa_clone_ref): Declare.
      	* lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
      	stream speculative flag.
      	(lto_output_ref): Stream statements uids and speculation.
      	(input_ref): Likewise.
      	(input_edge): Stream speuclation.
      	* cgraphclones.c (cgraph_clone_edge): Clone speculation.
      	(cgraph_set_call_stmt_including_clones): Handle speculation.
      	* ipa-inline.c (heap_edge_removal_hook): New function.
      	(inline_small_functions): Register it.
      	* lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
      	also initialize refs.
      	* ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
      	edge to change.
      	(try_make_edge_direct_simple_call): Likewise.
      	(try_make_edge_direct_simple_call): Likewise.
      	(update_indirect_edges_after_inlining): Likewise.
      	(remove_described_reference): Look proper lto_stmt_uid.
      	(propagate_controlled_uses): Likewise.
      	(propagate_controlled_uses): Liekwise.
      	* tree-inline.c (copy_bb): Copy speculative edges.
      	(redirect_all_calls): New function.
      	(copy_cfg_body): Do redirection after loop info
      	is updated.
      	(delete_unreachable_blocks_update_callgraph): Updadte
      	speculation.
      
      From-SVN: r201632
      Jan Hubicka committed
    • revert: re PR c++/46206 (using typedef-name error with typedef name hiding struct name) · 6efa6002
      /cp
      2013-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	Revert:
      	2013-08-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/46206
      	* name-lookup.c (lookup_name_real_1): Handle iter->type before
      	iter->value.
      
      /testsuite
      2013-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	Revert:
      	2013-08-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/46206
      	* g++.dg/lookup/typedef2.C: New.
      
      From-SVN: r201629
      Paolo Carlini committed
    • lto-streamer-out.c (output_function): Renumber PHIs. · aa1e10cc
      
      	* lto-streamer-out.c (output_function): Renumber PHIs.
      	* lto-streamer-in.c (input_function): Likewise.
      
      From-SVN: r201627
      Jan Hubicka committed
    • [AArch64] Fixup the vget_lane RTL patterns and intrinsics · 66adb8eb
      gcc/
      	* config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
      	(get_lane_unsigned): Likewise.
      	(dup_lane_scalar): Likewise.
      	(get_lane): enable for VALL.
      	* config/aarch64/aarch64-simd.md
      	(aarch64_dup_lane_scalar<mode>): Remove.
      	(aarch64_get_lane_signed<mode>): Likewise.
      	(aarch64_get_lane_unsigned<mode>): Likewise.
      	(aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
      	(aarch64_get_lane_zero_extendsi<mode>): Likewise.
      	(aarch64_get_lane<mode>): Enable for all vector modes.
      	(aarch64_get_lanedi): Remove misleading constraints.
      	* config/aarch64/arm_neon.h
      	(__aarch64_vget_lane_any): Define.
      	(__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
      	(vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
      	(vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
      	* config/aarch64/iterators.md (VDQQH): New.
      	(VDQQHS): Likewise.
      	(vwcore): Likewise.
      
      gcc/testsuite/
      	* gcc.target/aarch64/scalar_intrinsics.c: Update expected
      	output of vdup intrinsics.
      
      From-SVN: r201624
      James Greenhalgh committed
    • Fix typo · 23a6cb78
      From-SVN: r201623
      Eric Botcazou committed
    • configure.ac: Add GAS check for LEON instructions on SPARC. · 1f65ae7a
      	* configure.ac: Add GAS check for LEON instructions on SPARC.
      	* configure: Regenerate.
      	* config.in: Likewise.
      	* config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
      	sparc*-*-* block.
      	* config/sparc/sparc.opt (LEON, LEON3): New masks.
      	* config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
      	for LEON or LEON3.
      	(ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
      	(AS_LEON_FLAG): New macro.
      	* config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
      	and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
      	Deal with LEON and LEON3 for the memory model.
      	* config/sparc/sync.m (atomic_compare_and_swap<mode>): Enable for LEON3
      	(atomic_compare_and_swap<mode>_1): Likewise.
      	(*atomic_compare_and_swap<mode>_1): Likewise.
      
      From-SVN: r201622
      Eric Botcazou committed
    • regex_constants.h: Change syntax_option_type to enum type. · 6646d624
      2013-08-09  Tim Shen  <timshen91@gmail.com>
      
      	* include/bits/regex_constants.h: Change syntax_option_type to enum
      	type.
      
      From-SVN: r201621
      Tim Shen committed
    • ChangeLog: Fix whitespace. · 03b0ee0a
      	* ChangeLog: Fix whitespace.
      	* testsuite/ChangeLog: Ditto.
      
      From-SVN: r201619
      Uros Bizjak committed
    • neon.md (vcond): Fix floating-point vector comparisons against 0. · ff522f7f
      ChangeLog:
      2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
      
              * config/arm/neon.md (vcond): Fix floating-point vector
              comparisons against 0.
      
      testsuite/ChangeLog:
      2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
      
              * gcc.target/arm/lp1189445.c: New testcase.
      
      From-SVN: r201618
      Zhenqiang Chen committed
    • configure.ac: Adjust to check VTV_SUPPORTED. · b9bfa45a
      2013-08-08  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* configure.ac: Adjust to check VTV_SUPPORTED.
      	* configure: Regenerated.
      
      From-SVN: r201617
      Benjamin Kosnik committed
    • configure.tgt: Simplify, just use VTV_SUPPORTED. · 1e74b850
      gcc
      2013-08-08  Benjamin Kosnik  <bkoz@rehat.com>
      	    Michael Meissner <meissner@linux.vnet.ibm.com>
      
      	* configure.tgt : Simplify, just use VTV_SUPPORTED.
      
      gcc/libvtv
      2013-08-08  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* configure.ac: Adjust to check VTV_SUPPORTED.
      	* configure: Regenerated.
      
      From-SVN: r201616
      Benjamin Kosnik committed
    • Daily bump. · c0c68f91
      From-SVN: r201614
      GCC Administrator committed
  2. 08 Aug, 2013 13 commits
  3. 07 Aug, 2013 13 commits
    • Makefile.am (SUBDIRS): Protect with ENABLE_VTABLE_VERIFY. · 0c6cb2d1
      2013-08-07  Benjamin Kosnik  <bkoz@rehat.com>
      
      	* Makefile.am (SUBDIRS): Protect with ENABLE_VTABLE_VERIFY.
      	* Makefile.in: Regenerate.
      	* acinclude.m4 (LIBVTV_CONFIGURE): Move parts to..
      	* configure.ac: ...here. Make configure more verbose, re-order.
      	* configure: Regenerate.
      
      From-SVN: r201585
      Benjamin Kosnik committed
    • 2013-08-07 Paolo Carlini <paolo.carlini@oracle.com> · 00458156
      	Remove autom4te.cache dir.
      
      From-SVN: r201583
      Paolo Carlini committed
    • Implement -mtune-crl=.. · 4b8bc035
      From-SVN: r201582
      Xinliang David Li committed
    • re PR other/12081 (Gcc can't be compiled with -mregparm=3) · a5b38740
      	PR other/12081
      	config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
      	(rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
      	to gen_2arg_fn_t.
      
      From-SVN: r201580
      Oleg Endo committed
    • compiler: Fix "missing return" error for case T1, T2 in type switches. · 364ed4ba
      Also change the "missing return" text and report it at the end
      of the function, rather than the start, to match the gc
      compiler.
      
      From-SVN: r201579
      Ian Lance Taylor committed
    • rtl.h (update_alignments): Declare. · 5cf6635b
      	* rtl.h (update_alignments): Declare.
      	* final.c (grow_label_align): New function extracted from...
      	(shorten_branches): ...here.  Call it.
      	(update_alignments): New function.
      	* reorg.c (sibling_labels): New variable.
      	(get_label_before): Add SIBLING parameter.  If it is non-zero, push
      	the new label along with it onto the sibling_labels vector.
      	(fill_simple_delay_slots): Adjust call to get_label_before.
      	(fill_slots_from_thread): Likewise.
      	(relax_delay_slots): Likewise.
      	(make_return_insns): Likewise.
      	(dbr_schedule): Invoke update_alignment on the sibling_labels vector.
      
      From-SVN: r201575
      Eric Botcazou committed
    • diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and document its semantics. · 3c8ca1ab
      	* diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
      	document its semantics.
      	(diagnostic_report_diagnostic): Adjust accordingly.
      
      From-SVN: r201574
      Eric Botcazou committed
    • Makefile.am: Adjust to new files. · 6cb784b6
      2013-08-07  Tim Shen  <timshen91@gmail.com>
      
      	* include/Makefile.am: Adjust to new files.
      	* include/Makefile.in: Regenerate.
      	* include/bits/regex.h: Adjust to new interfaces.
      	* include/bits/regex_automaton.h: New.
      	* include/bits/regex_automaton.tcc: New.
      	* include/bits/regex_compiler.h: Adjust to new files.
      	* include/bits/regex_compiler.tcc: New.
      	* include/bits/regex_constants.h: Tail spaces.
      	* include/bits/regex_error.h: Likewise.
      	* include/bits/regex_executor.h: New.
      	* include/bits/regex_executor.tcc: New.
      	* include/std/regex: Adjust to new files.
      	* testsuite/28_regex/algorithms/regex_match/extended/
      	string_dispatch_01.cc: Adjust to new interfaces.
      
      From-SVN: r201573
      Tim Shen committed
    • sparc.c (insert_pass_work_around_errata): Move into... · 5ee5b32c
      2013-08-07  David Malcolm  <dmalcolm@redhat.com>
      
      	* config/sparc/sparc.c (insert_pass_work_around_errata): Move
      	into...
      	(sparc_option_override): ...and port to new C++ pass API.
      	* config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
      
      From-SVN: r201569
      David Malcolm committed
    • atomicity.h: Add #pragma GCC system_header. · aeb1f2be
      2013-08-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/ext/atomicity.h: Add #pragma GCC system_header.
      
      From-SVN: r201567
      Paolo Carlini committed
    • configure.ac: Set need_64bit_hwint for all arm targets. · fd6eea0c
      	* configure.ac: Set need_64bit_hwint for all arm targets.
      	* configure: Regenerated.
      
      From-SVN: r201566
      Richard Earnshaw committed
    • re PR libstdc++/58098 (wrong return value of normal_distribution::min()) · a803975d
      2013-08-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/58098
      	* include/bits/random.h (cauchy_distribution<>::min,
      	extreme_value_distribution<>::min, normal_distribution<>::min,
      	student_t_distribution<>::min): Fix.
      	* include/ext/random (normal_mv_distribution<>::min): Likewise.
      	* testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
      	Adjust.
      	testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
      	Likewise.
      	* testsuite/26_numerics/random/extreme_value_distribution/cons/
      	parms.cc: Likewise.
      	testsuite/26_numerics/random/extreme_value_distribution/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
      	Likewise.
      	* testsuite/26_numerics/random/normal_distribution/cons/default.cc:
      	Likewise.
      	* testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
      	Likewise.
      	* testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
      	Likewise.
      	* testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
      	* testsuite/ext/random/normal_mv_distribution/cons/default.cc: Likewise.
      
      	* testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
      	Minor tweak.
      	* testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
      	Likewise.
      
      	* testsuite/ext/von_mises_distribution/*: Move to...
      	* testsuite/ext/random/von_mises_distribution/*: ... here.
      	* testsuite/ext/triangular_distribution/*: Move to...
      	* testsuite/ext/random/triangular_distribution/*: ... here.
      
      From-SVN: r201562
      Paolo Carlini committed