128900 Commits

Author SHA1 Message Date
Jakub Jelinek
15df2655d8 re PR lto/60571 (FTBFS on hurd-i386)
PR lto/60571
	* lto.c (wait_for_child): Define WCONTINUED if not defined to 0.
	Fix formatting.

From-SVN: r208675
2014-03-19 08:18:46 +01:00
Ian Lance Taylor
e1e07cd6e6 re PR target/60563 (FAIL: g++.dg/ext/sync-4.C on *-apple-darwin*)
PR target/60563
	* g++.dg/ext/sync-4.C (int32_t): Remove typedef.
	(ditype): Rename typedef from int64_t.

From-SVN: r208674
2014-03-19 03:38:21 +00:00
GCC Administrator
54b4a2231c Daily bump.
From-SVN: r208672
2014-03-19 00:16:49 +00:00
Manuel López-Ibáñez
f74d178eb6 re PR c/55383 (-Wcast-qual reports incorrect message)
2014-03-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/55383
	* gcc.dg/cast-qual-3.c: New.
	Revert:
	2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
	* c-c++-common/Wcast-qual-1.c: More precise match text.

From-SVN: r208669
2014-03-18 23:22:02 +00:00
Janus Weil
dab2cbf8a0 re PR fortran/55207 ([F08] Variables declared in the main program should implicitly get the SAVE attribute)
2014-03-18  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55207
	PR fortran/60549
	* decl.c (match_attr_spec): Revert r208590.

2014-03-18  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55207
	PR fortran/60549
	* gfortran.dg/assumed_rank_7.f90: Revert r208590.
	* gfortran.dg/c_ptr_tests_16.f90: Ditto.
	* gfortran.dg/inline_sum_bounds_check_1.f90: Ditto.
	* gfortran.dg/intent_optimize_1.f90: Ditto.
	* gfortran.dg/pointer_init_9.f90: Ditto.
	* gfortran.dg/volatile4.f90: Ditto.
	* gfortran.dg/volatile6.f90: Ditto.

From-SVN: r208668
2014-03-18 23:15:10 +01:00
Richard Henderson
ead8233bda re PR target/60562 (FAIL: gcc.target/i386/excess-precision-3.c execution test after r208587)
PR target/60562

        * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Check
	X87_ENABLE_FLOAT for alternative 0.

From-SVN: r208666
2014-03-18 13:24:29 -07:00
Kai Tietz
234f76cb20 re PR rtl-optimization/56356 (DJGPP compiler crashing)
PR rtl-optimization/56356
	* sdbout.c (sdbout_parms): Verify that parms'
	incoming argument is valid.
	(sdbout_reg_parms): Likewise.

From-SVN: r208663
2014-03-18 21:02:54 +01:00
Richard Henderson
58ca6edfe5 re PR target/60562 (FAIL: gcc.target/i386/excess-precision-3.c execution test after r208587)
PR target/60562

        * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
        be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.

From-SVN: r208662
2014-03-18 12:59:54 -07:00
Manuel López-Ibáñez
7485aeea44 re PR c/55383 (-Wcast-qual reports incorrect message)
2014-03-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/55383
c/
	* c-typeck.c: Use correct format string in cast-qual warning
testsuite/
	* c-c++-common/Wcast-qual-1.c: More precise match text.

From-SVN: r208661
2014-03-18 19:58:39 +00:00
Basile Starynkevitch
b318e4049b plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>

        * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
        * doc/plugins.texi (Plugin callbacks): Mention
        PLUGIN_INCLUDE_FILE.
        Italicize plugin event names in description.  Explain that
        PLUGIN_PRAGMAS has no sense for lto1. Explain
        PLUGIN_INCLUDE_FILE.
        Remind that no GCC functions should be called after
        PLUGIN_FINISH.
        Explain what pragmas with expansion are.

From-SVN: r208660
2014-03-18 19:16:52 +00:00
Paolo Carlini
ba2f8afa6b re PR c++/60305 (ICE constexpr array of functions in template)
2014-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60305
	* g++.dg/cpp0x/constexpr-ice14.C: New.

2014-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54250
	* g++.dg/cpp0x/lambda/lambda-ice12.C: New.

From-SVN: r208658
2014-03-18 17:10:23 +00:00
Jonathan Wakely
f7e68d0804 re PR libstdc++/60564 ([C++11] The std::packaged_task constructor taking a reference to a functor does not copy its argument.)
PR libstdc++/60564
	* include/std/future (__future_base::_Task_state<>): Change
	constructors to template functions using perfect forwarding.
	(__create_task_state): Use decayed type as stored task.
	(packaged_task::packaged_task(_Fn&&)): Forward instead of moving.
	* testsuite/30_threads/packaged_task/60564.cc: New.

From-SVN: r208656
2014-03-18 16:31:38 +00:00
Martin Liska
eb14a79f35 cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when gimple call statement is update.
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
	gimple call statement is update.
	* gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
	GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.

From-SVN: r208654
2014-03-18 17:10:39 +01:00
Joseph Myers
bd10e887a5 * de.po: Update.
From-SVN: r208653
2014-03-18 16:04:06 +00:00
Jakub Jelinek
ead96f131d re PR sanitizer/60557 (UBSAN: ICE after ubsan_expand_null_ifn)
PR sanitizer/60557
	* ubsan.c (ubsan_instrument_unreachable): Call
	initialize_sanitizer_builtins.
	(ubsan_pass): Likewise.

From-SVN: r208652
2014-03-18 16:05:30 +01:00
Jakub Jelinek
415e2e6b2c re PR sanitizer/60535 (Link failure with -flto and -fsanitize=undefined)
PR sanitizer/60535
	* ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
	varpool_finalize_decl instead of rest_of_decl_compilation.
lto/
	* lto-lang.c (lto_init): Add NAME_TYPE for int128_integer_type_node
	and complex_{float,{,long_}double}_type_node.
testsuite/
	* c-c++-common/ubsan/null-1.c: Don't skip if -flto.
	* c-c++-common/ubsan/null-2.c: Likewise.
	* c-c++-common/ubsan/null-3.c: Likewise.
	* c-c++-common/ubsan/null-4.c: Likewise.
	* c-c++-common/ubsan/null-5.c: Likewise.
	* c-c++-common/ubsan/null-6.c: Likewise.
	* c-c++-common/ubsan/null-7.c: Likewise.
	* c-c++-common/ubsan/null-8.c: Likewise.
	* c-c++-common/ubsan/null-9.c: Likewise.
	* c-c++-common/ubsan/null-10.c: Likewise.
	* c-c++-common/ubsan/null-11.c: Likewise.
	* c-c++-common/ubsan/overflow-1.c: Likewise.
	* c-c++-common/ubsan/overflow-2.c: Likewise.
	* c-c++-common/ubsan/overflow-add-1.c: Likewise.
	* c-c++-common/ubsan/overflow-add-2.c: Likewise.
	* c-c++-common/ubsan/overflow-int128.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-1.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-2.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-3.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-4.c: Likewise.
	* c-c++-common/ubsan/overflow-negate-1.c: Likewise.
	* c-c++-common/ubsan/overflow-negate-2.c: Likewise.
	* c-c++-common/ubsan/overflow-sub-1.c: Likewise.
	* c-c++-common/ubsan/overflow-sub-2.c: Likewise.
	* c-c++-common/ubsan/pr59333.c: Likewise.
	* c-c++-common/ubsan/pr59503.c: Likewise.
	* c-c++-common/ubsan/pr59667.c: Likewise.
	* c-c++-common/ubsan/undefined-1.c: Likewise.
	* g++.dg/ubsan/pr59250.C: Likewise.
	* g++.dg/ubsan/pr59306.C: Likewise.

From-SVN: r208651
2014-03-18 15:56:23 +01:00
Richard Biener
4ca40f5284 df-problems.c (df_rd_confluence_n): Avoid bitmap_copy by using bitmap_and_compl instead of bitmap_and_compl_into.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
	by using bitmap_and_compl instead of bitmap_and_compl_into.
	(df_rd_transfer_function): Likewise.

From-SVN: r208650
2014-03-18 14:39:16 +00:00
Richard Biener
6404e19067 lto.texi (fresolution): Fix typo.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* doc/lto.texi (fresolution): Fix typo.

From-SVN: r208647
2014-03-18 12:35:28 +00:00
Richard Biener
b9abf79393 invoke.texi (flto): Update for changes in 4.9.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* doc/invoke.texi (flto): Update for changes in 4.9.

From-SVN: r208646
2014-03-18 12:30:11 +00:00
Richard Biener
3f00cf18ca loop.texi: Remove section on the removed lambda framework.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* doc/loop.texi: Remove section on the removed lambda framework.
	Update loop docs with recent changes in preserving loop structure.

From-SVN: r208645
2014-03-18 12:28:04 +00:00
Richard Biener
c2679d843f lto.texi (-fresolution): Document.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* doc/lto.texi (-fresolution): Document.

From-SVN: r208644
2014-03-18 12:25:06 +00:00
Richard Biener
c07990cc8c contrib.texi: Adjust my name.
2014-03-18  Richard Biener  <rguenther@suse.de>

	* doc/contrib.texi: Adjust my name.

From-SVN: r208643
2014-03-18 12:19:02 +00:00
Jakub Jelinek
ed9c79e1ea re PR ipa/58721 (The subroutine perdida is no longer inlined in fatigue.f90)
PR ipa/58721
gcc/
	* internal-fn.c: Include diagnostic-core.h.
	(expand_BUILTIN_EXPECT): New function.
	* gimplify.c (gimplify_call_expr): Use false instead of FALSE.
	(gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
	IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
	* ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
	IFN_BUILTIN_EXPECT.
	* predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
	Revert 3 argument __builtin_expect code.
	(strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
	* gimple-fold.c (gimple_fold_call): Likewise.
	* tree.h (fold_builtin_expect): New prototype.
	* builtins.c (build_builtin_expect_predicate): Add predictor
	argument, if non-NULL, create 3 argument __builtin_expect.
	(fold_builtin_expect): No longer static.  Add ARG2 argument,
	pass it through to build_builtin_expect_predicate.
	(fold_builtin_2): Adjust caller.
	(fold_builtin_3): Handle BUILT_IN_EXPECT.
	* internal-fn.def (BUILTIN_EXPECT): New.
gcc/fortran/
	* trans.c (gfc_unlikely, gfc_likely): Don't add __builtin_expect
	if !optimize.

2014-03-18  Tobias Burnus  <burnus@net-b.de>

	PR ipa/58721
gcc/
	* predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
	PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
	PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
gcc/fortran/
	* trans.h (gfc_unlikely, gfc_likely): Add predictor as argument.
	(gfc_trans_io_runtime_check): Remove.
	* trans-io.c (gfc_trans_io_runtime_check): Make static; add has_iostat
	as argument, add predictor to block.
	(set_parameter_value, gfc_trans_open, gfc_trans_close, build_filepos,
	gfc_trans_inquire, gfc_trans_wait, build_dt): Update calls.
	* trans.c (gfc_unlikely, gfc_likely): Add predictor as argument.
	(gfc_trans_runtime_check, gfc_allocate_using_malloc,
	gfc_allocate_allocatable, gfc_deallocate_with_status): Set explicitly
	branch predictor.
	* trans-expr.c (gfc_conv_procedure_call): Ditto.
	* trans-stmt.c (gfc_trans_allocate): Ditto.
	* trans-array.c (gfc_array_init_size, gfc_array_allocate): Ditto.

2014-03-18  Jan Hubicka  <hubicka@ucw.cz>

	PR ipa/58721
gcc/
	* predict.c (combine_predictions_for_bb): Fix up formatting.
	(expr_expected_value_1, expr_expected_value): Add predictor argument,
	fill what it points to if non-NULL.
	(tree_predict_by_opcode): Adjust caller, use the predictor.
	* predict.def (PRED_COMPARE_AND_SWAP): Add.

From-SVN: r208641
2014-03-18 12:31:04 +01:00
Eric Botcazou
e33da4a113 sparc.c (sparc_do_work_around_errata): Speed up and use proper constant for the store mode.
* config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
	proper constant for the store mode.

From-SVN: r208638
2014-03-18 10:49:38 +00:00
Ilya Enkovich
1fed15fc79 symtab.c (change_decl_assembler_name): Fix transparent alias chain construction.
gcc/
        * symtab.c (change_decl_assembler_name): Fix transparent alias
        chain construction.

From-SVN: r208637
2014-03-18 10:26:01 +00:00
Renlin Li
454fdba9b1 aarch64.c: Correct the comments about the aarch64 stack layout.
* config/aarch64/aarch64.c: Correct the comments about the
	aarch64 stack layout.

From-SVN: r208636
2014-03-18 10:22:57 +00:00
Rainer Orth
1e649cf8d2 Fix gcc.dg/tls/pr58595.c on Solaris 9
* gcc.dg/tls/pr58595.c: Add tls options.

From-SVN: r208635
2014-03-18 10:18:07 +00:00
Ulrich Weigand
b5b5834350 configure.ac: Check for presence of fcntl.
* configure.ac: Check for presence of fcntl.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* io/unix.c (set_close_on_exec): Check for HAVE_FCNTL.

From-SVN: r208634
2014-03-18 09:58:17 +00:00
Thomas Schwinge
e2110f8f2f Restore check for OpenMP for construct.
gcc/
	* omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
	check for GF_OMP_FOR_KIND_FOR.

From-SVN: r208633
2014-03-18 10:06:55 +01:00
Kirill Yukhin
7c831c4d5a i386.h (ADDITIONAL_REGISTER_NAMES): Add ymm and zmm register names.
gcc/
	* config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
	ymm and zmm register names.

gcc/testsuite/
	* gcc.target/i386/avx-additional-reg-names.c: New.
	* gcc.target/i386/avx512f-additional-reg-names.c: Ditto.

From-SVN: r208631
2014-03-18 06:29:15 +00:00
Jerry DeLisle
f2538eee23 Fix PR Number in log
From-SVN: r208630
2014-03-18 01:30:46 +00:00
Jerry DeLisle
e34994fcff re PR libfortran/46800 (Handle CTRL-D correctly with STDIN)
2014-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/46800
	* io/list_read.c (list_formatted_read_scalar): Do not use
	eat_separator. Explicitly set the comma and end-of-line flags.
	Check for END condition from finish_separator.

From-SVN: r208629
2014-03-18 01:20:02 +00:00
GCC Administrator
d65e2594fb Daily bump.
From-SVN: r208628
2014-03-18 00:16:42 +00:00
Adam Butcher
e067244162 re PR c++/60390 ([c++1y] ICE with declaring function with auto parameter as friend)
Fix PR c++/60390

	PR c++/60390
	* parser.c (cp_parser_member_declaration): Don't allow
	finish_fully_implicit_template to consider friend declarations to be
	class member templates.
	(synthesize_implicit_template_parm): Handling winding back through class
	scope to the class being defined in order to inject a template argument
	list.

	PR c++/60390
	* g++.dg/cpp1y/pr60390.C: New testcase.

From-SVN: r208625
2014-03-17 20:02:26 +00:00
Adam Butcher
c66f2ba1ba re PR c++/60391 ([c++1y] ICE with auto parameter for operator"")
Fix PR c++/60391

	PR c++/60391
	* parser.c (cp_parser_skip_to_end_of_block_or_statement): Unwind generic
	function scope as per cp_parser_skip_to_end_of_statement.

	PR c++/60391
	* g++.dg/cpp1y/pr60391.C: New testcase.

From-SVN: r208624
2014-03-17 20:02:16 +00:00
Jakub Jelinek
e318c1e15d re PR target/60516 (cc1plus crashes compiling a method with a huge struct as argument)
PR target/60516
	* config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
	note creation for the 2010-08-31 changes.

	* gcc.target/i386/pr60516.c: New test.

From-SVN: r208623
2014-03-17 20:03:04 +01:00
Joseph Myers
f1aa79d85f * sv.po: Update.
From-SVN: r208621
2014-03-17 15:31:57 +00:00
Paolo Carlini
50e4d1ec16 re PR c++/59571 ([C++11] ICE when casting inside static member constexpr brace initializer)
/cp
2014-03-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59571
	* typeck2.c (check_narrowing): Use fold_non_dependent_expr_sfinae.

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

	PR c++/59571
	* g++.dg/cpp0x/constexpr-ice13.C: New.

From-SVN: r208619
2014-03-17 14:53:05 +00:00
Marek Polacek
ab2ffbeb33 re PR middle-end/60534 (ICE: in expand_GOMP_SIMD_VF, at internal-fn.c:142 with -fopenmp -O -fno-tree-loop-optimize and #pragma omp simd reduction)
PR middle-end/60534
	* omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
	as -fno-tree-loop-vectorize.
	(expand_omp_simd): Likewise.
testsuite/
	* gcc.dg/gomp/pr60534.c: New test.

From-SVN: r208616
2014-03-17 14:15:51 +00:00
Rainer Orth
5523efdf24 Fix Solaris bootstrap with GNU ld/LTO
* configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
	for gcc.
	* configure: Regenerate.
	* Makefile.am (AM_LDFLAGS): New variable.
	(liblto_plugin_la_LDFLAGS): Add it.
	* Makefile.in: Regenerate.

From-SVN: r208614
2014-03-17 13:04:12 +00:00
Kai Tietz
8692ae102d 20010327-1.c: Disable test for LLP64 targets.
* gcc.c-torture/compile/20010327-1.c: Disable test for LLP64 targets.

From-SVN: r208613
2014-03-17 12:20:21 +01:00
Andreas Schwab
a8f9069dd1 re PR testsuite/58851 (FAIL: gfortran.dg/unlimited_polymorphic_13.f90 -O0 execution test)
PR testsuite/58851
* gfortran.dg/unlimited_polymorphic_13.f90: Properly compute
storage size.

From-SVN: r208612
2014-03-17 09:23:15 +00:00
GCC Administrator
0f70eb3252 Daily bump.
From-SVN: r208609
2014-03-17 00:16:47 +00:00
François Dumont
86faf710c7 [multiple changes]
2014-03-16  François Dumont  <fdumont@gcc.gnu.org>

	Complete:

	2014-01-20  François Dumont  <fdumont@gcc.gnu.org>
	* scripts/create_testsuite_files: Add testsuite/experimental in
	the list of folders to search for tests.

From-SVN: r208606
2014-03-16 20:32:47 +00:00
Andreas Schwab
ab684dae8e re PR ada/39172 (libada parsing of multilib options)
PR ada/39172
* gcc/ada/gcc-interface/Makefile.in (target_cpu_default): Revert
2013-10-11 change.

From-SVN: r208605
2014-03-16 08:32:23 +00:00
GCC Administrator
c6a5d23822 Daily bump.
From-SVN: r208602
2014-03-16 00:17:04 +00:00
Eric Botcazou
890fa5682d sparc-protos.h (tls_call_delay): Delete.
* config/sparc/sparc-protos.h (tls_call_delay): Delete.
	(eligible_for_call_delay): New prototype.
	* config/sparc/sparc.c (tls_call_delay): Rename into...
	(eligible_for_call_delay): ...this.  Return false if the instruction
	cannot be put in the delay slot of a branch.
	(eligible_for_restore_insn): Simplify.
	(eligible_for_return_delay): Return false if the instruction cannot be
	put in the delay slot of a branch and simplify.
	(eligible_for_sibcall_delay): Return false if the instruction cannot be
	put in the delay slot of a branch.
	* config/sparc/sparc.md (fix_ut699): New attribute.
	(tls_call_delay): Delete.
	(in_call_delay): Reimplement.
	(eligible_for_sibcall_delay): Rename into...
	(in_sibcall_delay): ...this.
	(eligible_for_return_delay): Rename into...
	(in_return_delay): ...this.
	(in_branch_delay): Reimplement.
	(in_uncond_branch_delay): Delete.
	(in_annul_branch_delay): Delete.

From-SVN: r208597
2014-03-15 21:39:30 +00:00
Andreas Schwab
dcf39d824f Baseline symbols for m68k
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: New file.

From-SVN: r208594
2014-03-15 18:59:36 +00:00
Tim Shen
ee54a3b318 regex.h: Add/modify comments.
2014-03-15  Tim Shen  <timshen91@gmail.com>

	* include/bits/regex.h: Add/modify comments.
	* include/bits/regex_compiler.h: Likewise.
	* include/bits/regex_executor.h: Likewise.
	* include/bits/regex_executor.tcc: Likewise.
	* include/bits/regex_scanner.h: Likewise.

From-SVN: r208593
2014-03-15 18:16:22 +00:00
Jerry DeLisle
f1182dd22b re PR fortran/58324 (Bogus END-of-line error with list-directed I/O of file without trailing sequential record marker)
2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/58324
	* gfortran.dg/list_read_12.f90: New test.

From-SVN: r208592
2014-03-15 15:15:22 +00:00