1. 27 Nov, 2014 21 commits
  2. 26 Nov, 2014 19 commits
    • Allow partial specialization of variable templates. · a2033ab1
      	* cp-tree.h (TINFO_USED_TEMPLATE_ID): New.
      	* decl.c (duplicate_decls): Copy it.
      	* error.c (dump_decl) [TEMPLATE_ID_EXPR]: Handle variables.
      	* parser.c (cp_parser_decltype_expr): Do call finish_id_expression
      	on template-ids.
      	* pt.c (register_specialization): Remember variable template insts.
      	(instantiate_template_1): Find the matching partial specialization.
      	(check_explicit_specialization): Allow variable partial specialization.
      	(process_partial_specialization): Likewise.
      	(push_template_decl_real): Likewise.
      	(more_specialized_partial_spec): Rename from more_specialized_class.
      	(most_specialized_partial_spec): Rename from most_specialized_class.
      	(get_partial_spec_bindings): Rename from get_class_bindings.
      
      From-SVN: r218104
      Jason Merrill committed
    • Regenerate ./configure · d896cc4d
      2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
      	* configure: Regenerate.
      
      From-SVN: r218103
      Jan-Benedict Glaw committed
    • Merge the ./config directory between GCC and Binutils · 1d725bb4
      This pulls in the missing Binutils pieces into the ./config
      directory. Contains these missing Binutils changes:
      
      2014-08-14  Alan Modra  <amodra@gmail.com>
      
      	* plugins.m4: Test for dlfcn.h or windows.h here to set default
      	for --enable-plugins.  Report error if someone tries to enable
      	plugins on a host we don't support.
      
      2014-08-19  Alan Modra  <amodra@gmail.com>
      
      	* plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
      	LIBS via AC_SEARCH_LIBS.
      
      For this commit:
      
      2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
      	* config/plugins.m4: Merge from Binutils.
      
      From-SVN: r218102
      Jan-Benedict Glaw committed
    • Merge ./config/ChangeLog with missing entries from Binutils · 7b0b9f66
      2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
      	* config/ChangeLog: Merge entries from Binutils
      
      From-SVN: r218101
      Jan-Benedict Glaw committed
    • Merge toplevel configure.ac bits from Binutils · 74ae587e
      GCC and Binutils had a common ./configure.ac after this commit:
      
      	commit 08d081652f50df83f7e9768f8dbb7a99b0df50a2
      	Author: sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
      	Date:   Wed May 14 23:20:59 2014 +0000
      
      	2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
      
      		* configure.ac (target_makefile_frag): Set for nios2-*-elf*.
      		* configure: Regenerated.
      
      		config/
      		* mt-nios2-elf: New file.
      
      Based on that file version, all GCC and Binutils commits to this file were
      applied. This pulls in the following missing Binutils changes to configure.ac:
      
      2014-07-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
      
      	Disable gdb for or1k*-*-* until supported
      	* configure.ac (or1k*-*-*): Disable gdb.
      	* configure: Regenerated.
      
      2014-07-27  Joel Sherrill <joel.sherrill@oarcorp.com>
      
      	GDB not supported for or1k*-*-rtems*
      	* configure.ac (or1k*-*-rtems*): gdb not supported.  The ordering
      	of the stanzas results in this not being caught by or1k*-*-* later.
      	* configure. Regenerated.
      
      2014-09-06  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
      
      	* configure: Disable gdb for nds32*-*-* until supported.
      	* configure.ac: Disable gdb for nds32*-*-* until supported.
      
      2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>
      
      	* configure.ac: Add mips*-img-elf* target triple.
      	* configure: Regenerate.
      
      For this patch:
      
      2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
      	* configure.ac: Merge with Binutils.
      
      From-SVN: r218100
      Jan-Benedict Glaw committed
    • re PR c++/63757 (nullptr conversion sequence fails to compile) · 2ad2e0af
      /cp
      2014-11-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/63757
      	* call.c (standard_conversion): Do not require expr to be non-null
      	when NULLPTR_TYPE_P (from) is true.
      
      /testsuite
      2014-11-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/63757
      	* g++.dg/cpp0x/nullptr33.C: New.
      
      From-SVN: r218098
      Paolo Carlini committed
    • gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread without -pie or -shared... · 4bb0ca2d
      	* gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
      	without -pie or -shared, error on -fsanitize=thread -static instead.
      
      	* lib/tsan-dg.exp (check_effective_target_fsanitize_thread,
      	tsan_init): Don't use -fPIE or -pie.
      
      From-SVN: r218097
      Jakub Jelinek committed
    • Makefile.def: Make more dependent on mpfr, mpc and isl. · 45c89690
      2014-11-26  Tobias Burnus  <burnus@net-b.de>
      
              * Makefile.def: Make more dependent on mpfr, mpc and isl.
              * Makefile.in: Regenerate.
      
      From-SVN: r218096
      Tobias Burnus committed
    • e.53.4.c: Add -DITESTITERS=20 to dg-options unless expensive testing is on. · 31a30e62
      	* testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
      	to dg-options unless expensive testing is on.  
      	(TESTITERS): Define to N if not defined.
      	(main): Use TESTITERS instead of N.
      	* testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
      	dg-additional-options depending on whether expensive testing is on.
      	* testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
      	Decrease N to 100000 and CHUNKSZ to 10000.
      
      From-SVN: r218095
      Jakub Jelinek committed
    • comment fixes · 0e75e41f
      From-SVN: r218094
      Jason Merrill committed
    • constexpr.c (cxx_eval_constant_expression): Avoid multiple evaluation. · cabaf50a
      	* constexpr.c (cxx_eval_constant_expression) [SAVE_EXPR]: Avoid
      	multiple evaluation.
      
      From-SVN: r218093
      Jason Merrill committed
    • constexpr.c (cxx_eval_call_expression): Don't talk about flowing off the end if… · c06dcc47
      constexpr.c (cxx_eval_call_expression): Don't talk about flowing off the end if we're already non-constant.
      
      	* constexpr.c (cxx_eval_call_expression): Don't talk about
      	flowing off the end if we're already non-constant.
      
      From-SVN: r218092
      Jason Merrill committed
    • re PR ipa/61190 (g++.old-deja/g++.mike/p4736b.C FAILs at -O2/-Os/-O3) · 6cbde2e3
      2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR ipa/61190
              * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
              (cgraph_node::function_or_virtual_thunk_symbol): New function.
              (cgraph_node::call_for_symbol_and_aliases): Fix comment.
              (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
              Add new optional parameter exclude_virtual_thunks.
              * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
              optional parameter exclude_virtual_thunks.
              (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
              (cgraph_node::set_pure_flag): Likewise.
              (cgraph_node::function_symbol): Simplified.
              (cgraph_node::function_or_virtual_thunk_symbol): New function.
              * ipa-pure-const.c (analyze_function): For virtual thunks set
              pure_const_state to IPA_NEITHER.
              (propagate_pure_const): Use function_or_virtual_thunk_symbol.
      
      testsuite/ChangeLog:
      2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR ipa/61190
              * g++.old-deja/g++.mike/p4736b.C: Use -O2.
      
      From-SVN: r218091
      Bernd Edlinger committed
    • re PR c++/59114 ([c++1y] ICE using auto in conversion operator) · 69d7fa34
      2014-11-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/59114
      	* g++.dg/cpp0x/auto43.C: New.
      
      From-SVN: r218090
      Paolo Carlini committed
    • re PR tree-optimization/63738 (ssa corruption when compiled with -O3) · 5721768d
      2014-11-26  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/63738
      	* tree-data-ref.c (split_constant_offset_1): Do not follow
      	SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
      
      	* gcc.dg/torture/pr63738.c: New testcase.
      
      From-SVN: r218088
      Richard Biener committed
    • Diagnose string constant conversion to char* in c++11 and above as forbidden, not deprecated. · aaf176ca
      	Diagnose string constant conversion to char* in c++11 and above
      	as forbidden, not deprecated.
      	* typeck.c (string_conv_p): Do a pedwarn in c++11 and above,
      	change the diagnostic for the Wwrite-strings case for c++11 and above.
      
      From-SVN: r218087
      Ville Voutilainen committed
    • fold-const.h (const_unop): Declare. · 8006f46b
      2014-11-26  Richard Biener  <rguenther@suse.de>
      
      	* fold-const.h (const_unop): Declare.
      	(const_binop): Likewise.
      	* fold-const.c (const_binop): Export overload that expects
      	a type parameter and dispatches to fold_relational_const as well.
      	Check both operand kinds for guarding the transforms.
      	(const_unop): New function, with constant folding from fold_unary_loc.
      	(fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
      	Remove constant folding done there from the simplifications.
      	(fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
      	(fold_negate_expr): Remove dead code from the REAL_CST case.
      	Avoid building garbage in the COMPLEX_CST case.
      	* gimple-match-head.c (gimple_resimplify1): Dispatch to
      	const_unop.
      	(gimple_resimplify2): Dispatch to const_binop.
      	(gimple_simplify): Likewise.
      
      From-SVN: r218086
      Richard Biener committed
    • re PR bootstrap/63995 (Bootstrap error with -mmpx -fcheck-pointer-bounds) · 41866363
      gcc/
      
      	PR bootstrap/63995
      	* tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
      	debug statement when searching for a new position for
      	bounds load/creation statement.
      
      gcc/testsuite/
      
      	PR bootstrap/63995
      	* gcc.target/i386/pr63995-2.c: New.
      
      From-SVN: r218085
      Ilya Enkovich committed
    • re PR sanitizer/63788 (ICE: SIGSEGV in contains_struct_check with -O… · 0bae64d5
      re PR sanitizer/63788 (ICE: SIGSEGV in contains_struct_check with -O -fsanitize=undefined on almost any fortran code)
      
      	PR sanitizer/63788
      	* asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
      	var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
      	(ATTR_PURE_NOTHROW_LEAF_LIST): Define.
      
      From-SVN: r218084
      Marek Polacek committed