Commit Graph

129339 Commits

Author SHA1 Message Date
Jakub Jelinek
e49080ec8a re PR target/60610 (ICE in convert_regs_1, at reg-stack.c:3064)
PR target/60610
	* config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
	redefine to 1 or 0.
	* config/i386/darwin.h (TARGET_64BIT_P): Redefine to
	TARGET_ISA_64BIT_P(x).

From-SVN: r208756
2014-03-21 22:24:31 +01:00
Jonathan Wakely
72d1f255ae re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly)
PR libstdc++/60587
	* include/debug/functions.h (_Is_contiguous_sequence): Define.
	(__foreign_iterator): Accept additional iterator. Do not dispatch on
	iterator category.
	(__foreign_iterator_aux2): Likewise. Add overload for iterators
	from different types of debug container. Use _Is_contiguous_sequence
	instead of is_lvalue_reference.
	(__foreign_iterator_aux3): Accept additional iterator. Avoid
	dereferencing past-the-end iterator.
	(__foreign_iterator_aux4): Use const value_type* instead of
	potentially user-defined const_pointer type.
	* include/debug/macros.h (__glibcxx_check_insert_range): Fix comment
	and pass end iterator to __gnu_debug::__foreign_iterator.
	(__glibcxx_check_insert_range_after): Likewise.
	(__glibcxx_check_max_load_factor): Fix comment.
	* include/debug/vector (_Is_contiguous_sequence): Define partial
	specializations.
	* testsuite/23_containers/vector/debug/57779_neg.cc: Remove
	-std=gnu++11 option and unused header.
	* testsuite/23_containers/vector/debug/60587.cc: New.
	* testsuite/23_containers/vector/debug/60587_neg.cc: New.

From-SVN: r208755
2014-03-21 18:54:06 +00:00
Paolo Carlini
084721e012 pr60033.C: Use target c++1y.
2014-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/cpp1y/pr60033.C: Use target c++1y.
	* g++.dg/cpp1y/pr60393.C: Likewise.

From-SVN: r208753
2014-03-21 17:06:11 +00:00
Paolo Carlini
279d3eb8f8 re PR c++/60384 ([c++1y] ICE with invalid typedef)
/cp
2014-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60384
	* name-lookup.c (push_class_level_binding_1): Check identifier_p
	on the name argument.

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

	PR c++/60384
	* g++.dg/cpp1y/pr60384.C: New.

From-SVN: r208752
2014-03-21 16:35:26 +00:00
Bill Schmidt
44eb6c4004 rs6000.c (rs6000_expand_vector_set): Generate a pattern for vector nor instead of subtract from splat(-1).
2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
	pattern for vector nor instead of subtract from splat(-1).
	(altivec_expand_vec_perm_const_le): Likewise.

From-SVN: r208750
2014-03-21 16:14:11 +00:00
Richard Henderson
ec6f831a27 re PR target/60598 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2239)
PR target/60598

	* ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
	related insns after epilogue_completed.
	* gcc.dg/pr60598.c: New test.

From-SVN: r208749
2014-03-21 08:31:25 -07:00
Martin Jambor
3d8d00439b re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)
2014-03-21  Martin Jambor  <mjambor@suse.cz>

	PR ipa/59176
	* cgraph.h (symtab_node): New flag body_removed.
	* ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
	when removing bodies.
	* symtab.c (dump_symtab_base): Dump body_removed flag.
	* cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
	had their bodies removed.

testsuite/
        * g++.dg/torture/pr59176.C: New test.

From-SVN: r208748
2014-03-21 13:59:35 +01:00
Martin Jambor
d833415cda re PR middle-end/60419 (ICE Segmentation fault)
2014-03-21  Martin Jambor  <mjambor@suse.cz>

	PR ipa/60419
	* ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
	in the border.

testsuite/
	* g++.dg/ipa/pr60419.C: New test.

From-SVN: r208747
2014-03-21 13:48:02 +01:00
Richard Biener
400a4f6ca2 re PR tree-optimization/60577 (inefficient FDO instrumentation code)
2014-03-21  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60577
	* tree-core.h (struct tree_base): Document nothrow_flag use
	in VAR_DECL_NONALIASED.
	* tree.h (VAR_DECL_NONALIASED): New.
	(may_be_aliased): Adjust.
	* coverage.c (build_var): Set VAR_DECL_NONALIASED.

	* gcc.dg/tree-ssa/ssa-lim-11.c: New testcase.

From-SVN: r208746
2014-03-21 11:52:50 +00:00
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