Commit Graph

129197 Commits

Author SHA1 Message Date
GCC Administrator
8796f98a5f Daily bump.
From-SVN: r208769
2014-03-23 00:16:53 +00:00
Jakub Jelinek
f451d3a836 re PR sanitizer/60613 (Invalid signed subtraction ubsan diagnostics)
PR sanitizer/60613
	* internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
	code == MINUS_EXPR, never swap op0 with op1.

	* c-c++-common/ubsan/pr60613-1.c: New test.
	* c-c++-common/ubsan/pr60613-2.c: New test.

From-SVN: r208766
2014-03-22 17:25:50 +01:00
Jakub Jelinek
3db31fd1cc toplev.c (init_local_tick): Avoid signed integer multiplication overflow.
* toplev.c (init_local_tick): Avoid signed integer multiplication
	overflow.
	* genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
	shift by first operand's bitsize.

From-SVN: r208765
2014-03-22 15:03:20 +01:00
Matthias Klose
9e76922266 regress: Remove empty directory.
2014-03-22  Matthias Klose  <doko@ubuntu.com>

        * g++.dg/cpp0x/regress: Remove empty directory.

From-SVN: r208764
2014-03-22 13:07:32 +00:00
Jakub Jelinek
b35e0fa081 re PR debug/60603 (.debug_macinfo/.debug_macro has wrong line numbers for built-in macros)
PR debug/60603
c-family/
	* c-opts.c (c_finish_options): Restore cb_file_change call to
	<built-in>.
fortran/
	* cpp.c (gfc_cpp_init): Restore cb_change_file call to
	<built-in>.
testsuite/
	* gcc.dg/debug/dwarf2/dwarf2-macro2.c: New test.

From-SVN: r208763
2014-03-22 08:18:38 +01:00
GCC Administrator
e10bd1cacc Daily bump.
From-SVN: r208762
2014-03-22 00:16:29 +00:00
Jerry DeLisle
09e40ffe10 re PR fortran/60148 (strings in NAMELIST do not honor DELIM= in open statement)
2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/60148
	* io/transfer.c (data_transfer_init): If std= was specified, set
	delim status to DELIM_NONE of no other was specified.

From-SVN: r208759
2014-03-21 22:19:44 +00:00
Jerry DeLisle
e6e2778862 re PR fortran/60148 (strings in NAMELIST do not honor DELIM= in open statement)
2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/60148
	* gfortran.texi: Add description of namelist DELIM= behavior.

From-SVN: r208757
2014-03-21 22:14:36 +00:00
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