Commit Graph

128796 Commits

Author SHA1 Message Date
Joern Rennecke bae56bbbea Fix arc_predicate_delay_insns ICE suring qt build:
* config/arc/arc.c (conditionalize_nonjump): New function, broken
        out of:
        (arc_ifcvt) .
        (arc_predicate_delay_insns): Use it.

From-SVN: r208488
2014-03-11 16:21:33 +00:00
Joern Rennecke 167ba5b9dc Fix post-reload predicate mismatch ICE during qt build:
* config/arc/predicates.md (extend_operand): During/after reload,
        allow const_int_operand.
        * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
        (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
        (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
        to "i".
        (umulsi3_highpart_i): Likewise.

From-SVN: r208487
2014-03-11 16:09:59 +00:00
Jason Merrill a07f6ed2dd * c.opt: Add -std=gnu++14.
From-SVN: r208486
2014-03-11 11:37:12 -04:00
Richard Biener dfd7d2d68b tree-ssa-structalias.c (get_constraint_for_ptr_offset): Add asserts to guard possible wrong-code bugs.
2014-03-11  Richard Biener  <rguenther@suse.de>

	* tree-ssa-structalias.c (get_constraint_for_ptr_offset):
	Add asserts to guard possible wrong-code bugs.

From-SVN: r208485
2014-03-11 15:32:27 +00:00
Richard Biener af1ab44914 re PR middle-end/60429 (Miscompilation (aliasing) with -finline-functions)
2014-03-11  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60429
	PR tree-optimization/60485
	* tree-ssa-structalias.c (set_union_with_increment): Properly
	take into account all fields that overlap the shifted vars.
	(do_sd_constraint): Likewise.
	(do_ds_constraint): Likewise.
	(get_constraint_for_ptr_offset): Likewise.

	* gcc.dg/pr60485-1.c: New testcase.
	* gcc.dg/pr60485-2.c: Likewise.

From-SVN: r208479
2014-03-11 12:42:18 +00:00
Ian Bolton 75b107f594 Don't override -ffp-contract=fast if -funsafe-math-optimizations
From-SVN: r208474
2014-03-11 09:41:20 +00:00
Chung-Lin Tang 747425d0e3 nios2.c (machine_function): Add fp_save_offset field.
2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>

	* config/nios2/nios2.c (machine_function): Add fp_save_offset field.
	(nios2_compute_frame_layout):
	Add calculation of cfun->machine->fp_save_offset.
	(nios2_expand_prologue): Correct setting of frame pointer register
	in prologue.
	(nios2_expand_epilogue): Update recovery of stack pointer from
	frame pointer accordingly.
	(nios2_initial_elimination_offset): Update calculation of offset
	for eliminating to HARD_FRAME_POINTER_REGNUM.

From-SVN: r208472
2014-03-11 09:04:54 +00:00
Joseph Myers 8955706a69 * sv.po: Update.
From-SVN: r208470
2014-03-11 00:24:22 +00:00
GCC Administrator bb11db17ae Daily bump.
From-SVN: r208469
2014-03-11 00:17:28 +00:00
Eric Botcazou 8f241ff576 * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
From-SVN: r208466
2014-03-10 23:58:30 +00:00
Jason Merrill 4a4e80cb6e re PR c++/60367 (Default argument object is not getting constructed)
PR c++/60367
	* call.c (convert_default_arg): Remove special handling for
	CONSTRUCTOR.

From-SVN: r208465
2014-03-10 17:06:59 -04:00
Anatoly Sokolov e5dddc50ba * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r208461
2014-03-10 23:44:14 +04:00
Jason Merrill 414578bdaa move dg-do before dg-require
From-SVN: r208460
2014-03-10 15:31:50 -04:00
Uros Bizjak c2e7e5974b re PR libgcc/60472 (Warning: array subscript is above array bounds when compiling crtstuff.c)
PR libgcc/60472
	* crtstuff.c (frame_dummy): Use void **jcr_list temporary
	variable to avoid array subscript is above array bounds warnings.
	Use __builtin_expect when checking *jcr_list for NULL.

From-SVN: r208457
2014-03-10 19:31:20 +01:00
Jason Merrill 4d3f2fa687 re PR c++/53492 (ICE in retrieve_specialization, at cp/pt.c:985)
PR c++/53492
	* parser.c (cp_parser_class_head): Also check PRIMARY_TEMPLATE_P
	when deciding whether to call push_template_decl for a member class.
	* pt.c (push_template_decl_real): Return after wrong levels error.

From-SVN: r208455
2014-03-10 11:44:50 -04:00
Jakub Jelinek 31dad8091a re PR ipa/60457 (ICE in cgraph_get_node)
PR ipa/60457
	* ipa.c (symtab_remove_unreachable_nodes): Don't call
	cgraph_get_create_node on VAR_DECLs.

	* g++.dg/ipa/pr60457.C: New test.

From-SVN: r208454
2014-03-10 15:55:20 +01:00
Richard Biener 3c1c08d6d7 re PR c++/60474 (Crash in tree_class_check)
2014-03-10  Richard Biener  <rguenther@suse.de>

	PR middle-end/60474
	* tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.

	* g++.dg/torture/pr60474.C: New testcase.

From-SVN: r208451
2014-03-10 13:27:16 +00:00
GCC Administrator 3912b32f8d Daily bump.
From-SVN: r208447
2014-03-10 00:16:26 +00:00
Andreas Schwab aced91b1f3 * g++.dg/cpp0x/alias-decl-debug-0.C: Move dg-skip after dg-do.
From-SVN: r208441
2014-03-09 07:52:48 +00:00
Tobias Burnus e132905869 Makefile.am: Install cilk.h.
2014-03-09  Tobias Burnus  <burnus@net-b.de>

        * Makefile.am: Install cilk.h.
        * Makefile.in: Regenerate.
        * aclocal.m4: Regenerate.

From-SVN: r208440
2014-03-09 08:48:48 +01:00
Jerry DeLisle c706a67a4d re PR libfortran/38199 (missed optimization: I/O performance)
2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/38199
	* io/list_read.c (next_char): Mark unlikely error checks.
	(eat_spaces): For character array reading, skip ahead over
	spaces rather than call next_char multiple times.

From-SVN: r208439
2014-03-09 05:34:34 +00:00
Jerry DeLisle c8869272f7 re PR libfortran/38199 (missed optimization: I/O performance)
2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/38199
	* io/list_read.c (next_char): Delete unuseful error checks.
	(eat_spaces): For character array reading, skip ahead over
	spaces rather than call next_char multiple times.

From-SVN: r208438
2014-03-09 03:17:16 +00:00
GCC Administrator a5165cff4d Daily bump.
From-SVN: r208437
2014-03-09 00:17:01 +00:00
Tobias Burnus 433d6b3986 libgfortran.h (unlikely, likely): Add usage comment.
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * libgfortran.h (unlikely, likely): Add usage comment.

From-SVN: r208434
2014-03-08 23:13:26 +01:00
Douglas B Rupp 21d8969069 Fixes reported build failure.
Tested by cross compiler target ia64-hp-openvms

	* config/vms/vms.opt (vms_float_format): New variable.

From-SVN: r208433
2014-03-08 20:57:29 +00:00
Tobias Burnus 634b8e9b20 invoke.texi (-fcilkplus): Update implementation status.
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * doc/invoke.texi (-fcilkplus): Update implementation
        status.

From-SVN: r208432
2014-03-08 21:42:34 +01:00
Tobias Burnus 566916e637 re PR fortran/60447 (Empty .s file created when using -E flag)
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60447
        * f95-lang.c (gfc_init): Return false when only
        preprocessing.
        * options.c (gfc_post_options): Ditto.

From-SVN: r208431
2014-03-08 19:53:18 +01:00
Tobias Burnus 80d6e13ece gfortran.texi (Fortran 2003 Status): Mention finalization, deferred-length character support and input rounding.
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Fortran 2003 Status): Mention finalization,
        deferred-length character support and input rounding.
        (Fortran 2008 Status): Mention that at termination
        signalling exceptions are shown.

From-SVN: r208429
2014-03-08 12:06:48 +01:00
Paulo Matos f42c637eb7 lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used consistently accross all TUs.
2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
	    Richard Biener  <rguenther@suse.de>

	* lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
	consistently accross all TUs.
	(run_gcc): Enable -fshort-double automatically at link at link-time
	and disallow override.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * c.opt: Enable LTO FE for fshort-double.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * gcc.dg/lto/pr55113_0.c: New testcase.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * lto-lang.c (lto_init): Pass flag_short_double to
    build_common_tree_nodes.


Co-Authored-By: Richard Biener <rguenther@suse.de>

From-SVN: r208428
2014-03-08 11:54:05 +01:00
Adam Butcher 1c74dc2ad6 re PR c++/60033 ([c++1y] ICE in retrieve_specialization while compiling recursive generic lambda)
Fix PR c++/60033

	PR c++/60033
	* pt.c (tsubst_copy): When retrieving a capture pack from a generic
	lambda, remove the lambda's own template argument list prior to fetching
	the specialization.

	PR c++/60033
	* g++.dg/cpp1y/pr60033.C: New testcase.

From-SVN: r208427
2014-03-08 09:33:12 +00:00
Adam Butcher 14e6270252 re PR c++/60393 ([c++1y] ICE with with invalid functions with auto parameters)
Fix PR c++/60393

	PR c++/60393
	* parser.c (cp_parser_parameter_declaration_clause): Move generic
	function template unwinding on error into a more general location, ...
	(cp_parser_skip_to_end_of_statement): ... here.

	PR c++/60393
	* g++.dg/cpp1y/pr60393.C: New testcase.

From-SVN: r208426
2014-03-08 09:33:03 +00:00
Richard Sandiford bd65fc8782 re PR target/58271 (ICE in gcc for a MIPS target during compilation with -mpaired-single -ftree-vectorize)
gcc/
	PR target/58271
	* config/mips/mips.c (mips_option_override): Promote -mpaired-single
	warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
	if they can't be used.

From-SVN: r208425
2014-03-08 09:27:23 +00:00
Dominique d'Humieres 4e185d7cee re PR fortran/60128 (Wrong ouput using en edit descriptor)
2014-03-08  Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR libgfortran/60128
	* io/write_float.def (output_float): Remove unused variable
	nzero_real. Replace a double space with a single one.
	(determine_en_precision): Fix wrong handling of the EN format.

	PR libfortran/60128
	* gfortran.dg/fmt_en.f90: New test.

From-SVN: r208423
2014-03-08 06:04:34 +00:00
GCC Administrator 494c3d0e55 Daily bump.
From-SVN: r208422
2014-03-08 00:16:29 +00:00
Doug Rupp a92a6b8861 re PR ada/60411 (Ada bootstrap failure on ARM)
2014-03-07  Doug Rupp  <rupp@adacore.com>

	PR ada/60411
	* system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
	(Support_64_Bit_Divides): Removed, no longer used.   
	(ZCX_By_Default): Enabled.

From-SVN: r208419
2014-03-07 21:35:33 +01:00
Jason Merrill c93a4be5ce * Make-lang.in (check_g++_parallelize): Split dg.exp.
From-SVN: r208417
2014-03-07 15:01:27 -05:00
Jason Merrill 4b2e63def5 g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
* lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
	* lib/target-supports.exp (check_effective_target_c++11): Now
	means C++11 and up.
	(check_effective_target_c++11_only): New.
	(check_effective_target_c++11_down): New.
	(check_effective_target_c++1y): New.
	(check_effective_target_c++1y_only): New.
	(check_effective_target_c++98_only): Rename from
	check_effective_target_c++98.
	* g++.dg/*: Use { target c++11 } instead of -std=c++11.

From-SVN: r208416
2014-03-07 15:01:12 -05:00
Jason Merrill 968b350374 parser.c (cp_parser_type_id_1): Only allow 'auto' in C++1y if we're in a trailing return type.
* parser.c (cp_parser_type_id_1): Only allow 'auto' in C++1y if
	we're in a trailing return type.

From-SVN: r208415
2014-03-07 15:00:36 -05:00
Jason Merrill d08a068b5e typeck.c (comp_template_parms_position): 'auto' and 'decltype(auto)' are different from real template parms.
* typeck.c (comp_template_parms_position): 'auto' and
	'decltype(auto)' are different from real template parms.

From-SVN: r208414
2014-03-07 15:00:31 -05:00
Jason Merrill 941515205d parser.c (cp_parser_using_declaration): Consume the semicolon after bare parameter pack error.
* parser.c (cp_parser_using_declaration): Consume the semicolon
	after bare parameter pack error.

From-SVN: r208413
2014-03-07 15:00:25 -05:00
Jason Merrill 0e4cf8872a cp-tree.h (REF_PARENTHESIZED_P): New.
* cp-tree.h (REF_PARENTHESIZED_P): New.
	* semantics.c (force_paren_expr): Set it.
	* pt.c (do_auto_deduction): Check it.
	(tsubst) [COMPONENT_REF]: Copy it.
	* typeck.c (maybe_warn_about_useless_cast): Don't strip dereference.

From-SVN: r208412
2014-03-07 15:00:20 -05:00
Jason Merrill b75bf8b188 decl.c (create_array_type_for_decl): Only warn about invalid C++1y VLA if flag_iso or warn_vla>0.
* decl.c (create_array_type_for_decl): Only warn about invalid
	C++1y VLA if flag_iso or warn_vla>0.
	(grokdeclarator): Likewise.
	* pt.c (tsubst): Likewise.
	* semantics.c (finish_decltype_type): Likewise.
	* typeck.c (cxx_sizeof_or_alignof_type): Likewise.
	(cp_build_addr_expr_1): Likewise.
	* init.c (build_new_1): Improve diagnostics.

From-SVN: r208411
2014-03-07 15:00:14 -05:00
Paolo Carlini c12b3bd34d re PR c++/58609 ([c++11] ICE with uninitialized variable in constexpr)
/cp
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58609
	* decl.c (check_initializer): Return NULL_TREE after error;
	consistently use inform.

/testsuite
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58609
	* g++.dg/cpp0x/constexpr-ice12.C: New.

From-SVN: r208410
2014-03-07 18:33:38 +00:00
Denis Chertykov df5bc1cb61 MAINTAINERS: Remove avr maintainers: Anatoly Sokolov and Eric Weddington
* MAINTAINERS: Remove avr maintainers: Anatoly Sokolov and Eric Weddington

From-SVN: r208406
2014-03-07 20:55:43 +04:00
Jason Merrill 70e24808f8 * c.opt: Add -std=c++14.
From-SVN: r208404
2014-03-07 11:23:57 -05:00
Ian Lance Taylor dbe2084238 * sort.c (backtrace_qsort): Use middle element as pivot.
From-SVN: r208403
2014-03-07 15:52:48 +00:00
Paolo Carlini bc65bdd5b4 decl.c (check_initializer): Remove dead code.
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* decl.c (check_initializer): Remove dead code.

From-SVN: r208402
2014-03-07 14:19:53 +00:00
Rainer Orth a6c9ab4e19 Handle backtrace_qsort
* libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
	Add ../../libbacktrace/sort.c.
	* libbacktrace/Makefile.in: Regenerate.
	* libbacktrace/backtrace-rename.h (backtrace_qsort): Define.

From-SVN: r208401
2014-03-07 13:55:54 +00:00
Jakub Jelinek 3b9edeac73 re PR bootstrap/58572 (make bootstrap-lean leads to installation failure (doing extra rebuilds and invoking system compiler))
PR bootstrap/58572
	* Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Use -isystem instead of
	-I for libstdc++-v3 includes if $(LEAN).
	* Makefile.in: Regenerated.

From-SVN: r208400
2014-03-07 13:58:27 +01:00
Rainer Orth 040c446d0d Improve @tlsldmplt test on Solaris 11/x86
* configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test for Solaris
	11/x86 ld.
	* configure: Regenerate.

From-SVN: r208399
2014-03-07 11:33:39 +00:00