Commit Graph

128930 Commits

Author SHA1 Message Date
Jakub Jelinek beeda1d9c4 configure.ac: Move BUILD_CONFIG set up earlier.
* configure.ac: Move BUILD_CONFIG set up earlier.  Add
	--enable-vtable-verify option parsing.  Don't add
	target-libsanitizer to bootstrap_target_libs unless
	--with-build-config=bootstrap-asan or
	--with-build-config=bootstrap-ubsan.  Don't add target-libvtv
	to bootstrap_target_libs unless --enable-vtable-verify.
	* configure: Regenerated.

From-SVN: r208745
2014-03-21 08:16:06 +01:00
GCC Administrator 6499b5d25e Daily bump.
From-SVN: r208743
2014-03-21 00:16:46 +00:00
Eric Botcazou c6c2314faa * expr.c (expand_expr_real_1): Remove outdated comment.
From-SVN: r208740
2014-03-20 23:47:23 +00:00
Tobias Burnus 7b8fda082f re PR fortran/60599 (Testsuite's scan-module-absence no longer works)
2014-03-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60599
        * lib/gcc-dg.exp (scan-module): Uncompress .mod files for
        reading.

From-SVN: r208739
2014-03-21 00:16:57 +01:00
Tobias Burnus 5fbbf2d9dc re PR other/60589 (Parallel install fails due to multiple cilk.h installs)
2014-03-20  Tobias Burnus  <burnus@net-b.de>

        PR other/60589

        Reverted:
        2014-03-09  Tobias Burnus  <burnus@net-b.de>

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

From-SVN: r208736
2014-03-20 20:50:51 +01:00
Jakub Jelinek b8f045e2e4 re PR middle-end/60597 (ICE in df_refs_verify, at df-scan.c:4323)
PR middle-end/60597
	* ira.c (adjust_cleared_regs): Call copy_rtx on
	*reg_equiv[REGNO (loc)].src_p before passing it to
	simplify_replace_fn_rtx.

	* g++.dg/opt/pr60597.C: New test.

From-SVN: r208735
2014-03-20 20:47:09 +01:00
Jakub Jelinek 7614d42cb4 re PR c++/60572 (ICE deriving from class with invalid member)
PR c++/60572
	* init.c (build_zero_init_1): Ignore fields with error_mark_node
	type.

	* g++.dg/init/pr60572.C: New test.

From-SVN: r208734
2014-03-20 20:45:09 +01:00
Ian Lance Taylor 207c82c407 compiler: Consider the depth of a nested composite literal during traversal.
Fixes issue 7590.

From-SVN: r208731
2014-03-20 19:37:50 +00:00
Ulrich Weigand e70c4c4189 crossconfig.m4: Support spu-*-elf* targets.
* crossconfig.m4: Support spu-*-elf* targets.
	* configure: Regenerate.

From-SVN: r208730
2014-03-20 18:57:07 +00:00
Joel Sherrill 31466bc083 ChangeLog: Fix typo
From-SVN: r208714
2014-03-20 16:15:39 +00:00
Joel Sherrill d02bbcf3f1 config.host (v850*-*-*): Add to tmake_file instead of resetting it.
2014-03-20  Joel Sherrill  <joel.sherrill@oarcorp.com>

	* config.host (v850*-*-*): Add to tmake_file instead of resetting
	it. This was removing the v850*-*-rtems* settings.

From-SVN: r208708
2014-03-20 16:11:10 +00:00
Jakub Jelinek d02b6ac744 re PR target/60568 (lto1: internal compiler error: in insn_min_length, at config/i386/i386.md:1599)
PR target/60568
	* config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
	into CONST, put pic register as first operand of PLUS.  Use
	gen_const_mem for both 32-bit and 64-bit PIC got loads.

From-SVN: r208706
2014-03-20 17:05:41 +01:00
Ramana Radhakrishnan e2f98c017c Delete obsolete definition of MEMORY_MOVE_COST in AArch64.
2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.

From-SVN: r208705
2014-03-20 15:59:15 +00:00
Eric Botcazou 7075c79290 sparc.c (sparc_do_work_around_errata): Implement work around for store forwarding issue in the FPU on the UT699.
* config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
	around for store forwarding issue in the FPU on the UT699.
	* config/sparc/sparc.md (in_branch_delay): Return false for single FP
	loads and operations if -mfix-ut699 is specified.
	(divtf3_hq): Tweak attribute.
	(sqrttf2_hq): Likewise.

From-SVN: r208695
2014-03-20 11:39:39 +00:00
Eric Botcazou 9ee5337dd5 calls.c (store_one_arg): Remove incorrect const qualification on the type of the temporary.
* calls.c (store_one_arg): Remove incorrect const qualification on the
	type of the temporary.
	* cfgexpand.c (expand_return): Likewise.
	* expr.c (expand_constructor): Likewise.
	(expand_expr_real_1): Likewise.

From-SVN: r208694
2014-03-20 11:35:22 +00:00
Tobias Burnus 9964e8304b re PR fortran/60543 (Function with side effect removed by the optimizer.)
2014-03-19  Tobias Burnus  <burnus@net-b.>

        PR fortran/60543
        * io.c (check_io_constraints): Use gfc_unset_implicit_pure.
        * resolve.c (resolve_ordinary_assign): Ditto.

From-SVN: r208693
2014-03-20 07:53:01 +01:00
Zhenqiang Chen a69e09c8ec arm.c (arm_dwarf_register_span): Update the element number of parts.
ChangeLog:
2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	* config/arm/arm.c (arm_dwarf_register_span): Update the element number
	of parts.

testsuite/ChangeLog:
2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	* gcc.target/arm/neon-modes-3.c: Add "-g" option.

From-SVN: r208692
2014-03-20 02:18:14 +00:00
GCC Administrator d1cb66f6d8 Daily bump.
From-SVN: r208691
2014-03-20 00:17:18 +00:00
Kaz Kojima 8659d57bda re PR target/60039 (sh3 optimisation bug with -O2)
PR target/60039
	* config/sh/sh.md (udivsi3_i1): Clobber R1 register

From-SVN: r208688
2014-03-19 22:51:47 +00:00
Tobias Burnus ccd7751b34 re PR fortran/60543 (Function with side effect removed by the optimizer.)
2014-03-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60543
        PR fortran/60283
        * gfortran.h (gfc_unset_implicit_pure): New prototype.
        * resolve.c (gfc_unset_implicit_pure): New.
        (resolve_structure_cons, resolve_function,
        pure_subroutine): Use it.
        * decl.c (match_old_style_init, gfc_match_data,
        match_pointer_init, variable_decl): Ditto.
        * expr.c (gfc_check_pointer_assign): Ditto.
        * intrinsic.c (gfc_intrinsic_sub_interface): Ditto.
        * io.c (match_vtag, gfc_match_open, gfc_match_close,
        match_filepos, gfc_match_inquire, gfc_match_print,
        gfc_match_wait): Ditto.
        * match.c (gfc_match_critical, gfc_match_stopcode,
        lock_unlock_statement, sync_statement, gfc_match_allocate,
        gfc_match_deallocate): Ditto.
        * parse.c (decode_omp_directive): Ditto.
        * symbol.c (gfc_add_save): Ditto.

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

        PR fortran/60543
        PR fortran/60283
        * gfortran.dg/implicit_pure_4.f90: New.

From-SVN: r208687
2014-03-19 22:03:14 +01:00
Paolo Carlini 7d092805ba re PR c++/51474 ([c++0x] ICE with pure virtual function in initialization of non-static data member)
/cp
2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51474
	* call.c (build_new_method_call_1): Handle pure virtuals called by
	NSDMIs too.

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

	PR c++/51474
	* g++.dg/cpp0x/nsdmi-virtual2.C: New.

From-SVN: r208686
2014-03-19 18:21:52 +00:00
H.J. Lu 057be77f43 Log environment variables in set_ld_library_path_env_vars
GNU linker sets DT_RPATH from the environment variable LD_RUN_PATH.
set_ld_library_path_env_vars sets a few environment variables including
LD_RUN_PATH.  This patch logs all environment variables set by
set_ld_library_path_env_vars so that one can recreate the same
executable as "make check" run.

	PR testsuite/60590
	* lib/target-libpath.exp (set_ld_library_path_env_vars): Log
	LD_LIBRARY_PATH, LD_RUN_PATH, SHLIB_PATH, LD_LIBRARY_PATH_32,
	LD_LIBRARY_PATH_64 and DYLD_LIBRARY_PATH.

From-SVN: r208685
2014-03-19 09:59:18 -07:00
Paolo Carlini 2f16cacd8e re PR c++/60332 ([c++1y] ICE with auto in function-pointer cast)
2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60332
	* g++.dg/cpp1y/pr60332.C: New.

From-SVN: r208684
2014-03-19 15:48:39 +00:00
James Greenhalgh 985e0d3388 [ARM] [Trivial] Fix shortening of field name extend.
gcc/
	* config/arm/aarch-common-protos.h
	(alu_cost_table): Fix spelling of "extend".
	* config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".

From-SVN: r208683
2014-03-19 15:47:59 +00:00
Richard Biener ce2f49b3bf re PR c++/60553 (segfault in gt_ggc_mx_lang_tree_node in Chromium with LTO)
2014-03-19  Richard Biener  <rguenther@suse.de>

	PR middle-end/60553
	* tree-core.h (tree_type_common): Re-order pointer members
	to reduce recursion depth during GC walks.

	lto/
	* lto-tree.h (lang_tree_node): For types use TYPE_NEXT_VARIANT 
	instead of TREE_CHAIN as chain_next.

From-SVN: r208682
2014-03-19 15:37:28 +00:00
Marek Polacek 6daa2d914b re PR sanitizer/60569 (Segfault with -flto and -fsanitize=undefined)
PR sanitizer/60569
	* ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
	before accessing it.
testsuite/
	* g++.dg/ubsan/pr60569.C: New test.

From-SVN: r208681
2014-03-19 12:25:04 +00:00
Rainer Orth bd99727761 Require tls_runtime in gcc.dg/tls/pr58595.c
* gcc.dg/tls/pr58595.c: Require tls_runtime instead of tls.

From-SVN: r208680
2014-03-19 12:05:25 +00:00
Richard Biener e41106fc81 lto.c (lto_wpa_write_files): Move call to lto_promote_cross_file_statics ...
2014-03-19  Richard Biener  <rguenther@suse.de>

	* lto.c (lto_wpa_write_files): Move call to
	lto_promote_cross_file_statics ...
	(do_whole_program_analysis): ... here, into the partitioning
	block.  Do not ggc_collect after lto_wpa_write_files but
	for a last time before it.

From-SVN: r208679
2014-03-19 11:35:59 +00:00
Richard Biener 8c9cfbe630 re PR lto/59543 (lto1: fatal error: Cgraph edge statement index out of range)
2014-03-19  Richard Biener  <rguenther@suse.de>

	PR lto/59543
	* lto-streamer-in.c (input_function): In WPA stage do not drop
	debug stmts.

From-SVN: r208677
2014-03-19 09:22:15 +00:00
Jakub Jelinek 3efe2e2cc1 re PR tree-optimization/60559 (g++.dg/vect/pr60023.cc fails with -fno-tree-dce (ICE))
PR tree-optimization/60559
	* vectorizable_mask_load_store): Replace scalar MASK_LOAD
	with build_zero_cst assignment.

	* g++.dg/vect/pr60559.cc: New test.

From-SVN: r208676
2014-03-19 10:13:32 +01:00
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