Commit Graph

137319 Commits

Author SHA1 Message Date
Jan Hubicka 257291fc89 re PR lto/65380 ([ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158)
Fix PR ipa/65380.

	PR ipa/65380
	* ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
	(sem_variable::merge): Likewise.

From-SVN: r221519
2015-03-19 17:37:15 +00:00
Martin Liska e68287df88 re PR ipa/65465 (Internal compiler error: in build2_stIat)
Fix for PR ipa/65465.

	PR ipa/65465
	* cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
	all fields of cgraph_thunk_info.
	* g++.dg/ipa/pr65465.C: New test.

From-SVN: r221518
2015-03-19 17:35:52 +00:00
Ilya Enkovich 5cdd35db59 ipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks.
* ipa-chkp.c (chkp_maybe_create_clone): Don't try to
	clone instrumented thunks.

From-SVN: r221516
2015-03-19 14:01:31 +00:00
Richard Biener 8cf0fb5cef revert: re PR middle-end/63155 (memory hog)
2015-03-19  Richard Biener  <rguenther@suse.de>

	Revert
	2015-03-10  Richard Biener  <rguenther@suse.de>

	PR middle-end/63155
	* tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
	* tree-ssa-coalesce.c: Include timevar.h.
	(attempt_coalesce): Handle graph being NULL.
	(coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
	Split out abnormal coalescing to ...
	(perform_abnormal_coalescing): ... this function.
	(coalesce_ssa_name): Perform abnormal coalescing without computing
	live/conflict.
	(verify_ssa_coalescing_worker): New function.
	(verify_ssa_coalescing): Likewise.

From-SVN: r221515
2015-03-19 13:36:18 +00:00
Richard Biener 4c5c36d495 partition.h (struct partition_elem): Re-order elements to avoid padding.
2015-03-19  Richard Biener  <rguenther@suse.de>

	* partition.h (struct partition_elem): Re-order elements to
	avoid padding.

From-SVN: r221514
2015-03-19 11:44:08 +00:00
Paolo Carlini 397af03810 re PR c++/52659 (GCC fails to reject a deleted function definition which is not the first declaration)
2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52659
	* g++.dg/cpp0x/deleted11.C: New.

From-SVN: r221513
2015-03-19 11:02:47 +00:00
Jakub Jelinek a3f94967e1 re PR sanitizer/65400 (tsan mis-compiles inlineable C functions)
PR sanitizer/65400
	* tsan.c (instrument_gimple): Clear tail call flag on
	calls.

	* c-c++-common/tsan/pr65400-3.c: New test.

From-SVN: r221512
2015-03-19 11:12:34 +01:00
Paolo Carlini 9308995b0a re PR c++/59686 (Non-constexpr pointers accepted in constant expressions)
2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221510
2015-03-19 08:57:01 +00:00
Jakub Jelinek 02703f4c0f re PR sanitizer/64265 (r217669 broke tsan)
PR sanitizer/64265
	* g++.dg/tsan/pr64265.C: New test.

From-SVN: r221509
2015-03-19 08:55:22 +01:00
Jakub Jelinek bfd714822b re PR sanitizer/65400 (tsan mis-compiles inlineable C functions)
PR sanitizer/65400
	* ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
	call in the return bb.
	(find_split_points): Add RETURN_BB argument, don't call
	find_return_bb.
	(split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
	if true append TSAN_FUNC_EXIT internal call after the call to
	the split off function.
	(execute_split_functions): Call find_return_bb here.
	Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
	Adjust find_split_points and split_function calls.

	* c-c++-common/tsan/pr65400-1.c: New test.
	* c-c++-common/tsan/pr65400-2.c: New test.

From-SVN: r221508
2015-03-19 08:53:38 +01:00
DJ Delorie 995332cad3 rl78-virt.md (andqi3_virt): Allow far operands.
* config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
(iorqi3_virt): Likewise.

From-SVN: r221506
2015-03-19 00:00:51 -04:00
GCC Administrator 86b0150594 Daily bump.
From-SVN: r221505
2015-03-19 00:16:14 +00:00
Paolo Carlini a533f6978d re PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when the default constructor is a variadic template.)
2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59816
	* g++.dg/cpp0x/pr59816.C: New.

From-SVN: r221502
2015-03-18 21:30:04 +00:00
Paul Thomas 91e11b2345 re PR fortran/59198 (ICE on cyclically dependent polymorphic types)
2014-03-18  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/59198
	* gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.

From-SVN: r221501
2015-03-18 21:18:38 +00:00
Martin Liska cf3f91ddc8 re PR ipa/65439 (FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++98 scan-ipa-dump icf "Equal symbols: 6")
Fix PR65439.

	PR ipa/65439
	* g++.dg/ipa/ipa-icf-4.C: Extend expected number of
	equivalences either to 6 or 7.

M    gcc/testsuite/ChangeLog
M    gcc/testsuite/g++.dg/ipa/ipa-icf-4.C

From-SVN: r221500
2015-03-18 19:18:34 +00:00
Tom de Vries 09489eb80c Make parallelize_loops static
2015-03-18  Tom de Vries  <tom@codesourcery.com>

	* tree-parloops.c (parallelize_loops): Make static.
	* tree-parloops.h (parallelize_loops): Remove extern declaration.

From-SVN: r221498
2015-03-18 18:55:38 +00:00
Jonathan Wakely 168ad5f5e3 re PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types)
PR c++/65046
	* config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
	get_catalogs): Add abi-tag.
	* include/ext/codecvt_specializations.h (encoding_state,
	encoding_char_traits): Likewise.
	* src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
	* src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
	numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
	money_get_shim, money_put_shim, messages_shim): Likewise.
	* src/c++11/future.cc (future_error_category::message): Likewise.
	* src/c++11/system_error.cc (generic_error_category::message,
	system_error_category::message): Likewise.
	(__sso_string): Disable -Wabi-tag warnings.

From-SVN: r221497
2015-03-18 18:08:29 +00:00
Jonathan Wakely 2a9611d03b re PR libstdc++/13631 (Problems in messages)
PR libstdc++/13631
	* config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
	implementation for old glibc. Fix whitespace.

From-SVN: r221494
2015-03-18 16:17:47 +00:00
Andrew Stubbs b4f3051a5f re PR middle-end/64491 (incorrect warning: loop exit may only be reached after undefined behavior)
Fix PR64491

2015-03-18  Andrew Stubbs  <ams@codesourcery.com>

	PR middle-end/64491
	Revert:
	2014-11-20  Andrew Stubbs  <ams@codesourcery.com>

	* tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
	condition would be removed due to undefined behaviour.

2015-03-18  Andrew Stubbs  <ams@codesourcery.com>

	PR middle-end/64491
	Revert:
	2014-11-20  Andrew Stubbs  <ams@codesourcery.com>

	* gcc.dg/undefined-loop-1.c: New file.
	* gcc.dg/undefined-loop-2.c: New file.

	2014-12-24  Andrew Stubbs  <ams@codesourcery.com>

	PR testsuite/64032
	* gcc.dg/undefined-loop-2.c: Don't allow GCC to optimize away the
	loop exits too early.

From-SVN: r221492
2015-03-18 14:27:13 +00:00
Martin Liska 1aec2ecce4 re PR ipa/65432 (Invalid read of size 1: ipa_icf::sem_item_optimizer::merge_classes(unsigned int) (ipa-icf.c:2958))
Fix PR ipa/65432

	PR ipa/65432
	* cgraph.c (cgraph_node::get_create): Remove unnecessary
	xstrdup_for_dump wrapper.
	* ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
	sem_item::name.
	(sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
	with xstrdup_for_dump.
	(sem_variable::equals): Likewise.
	(sem_item_optimizer::read_section): Use symtab_node::name instead of
	sem_item::name.
	(sem_item_optimizer::parse_funcs_and_vars): Likewise.
	(sem_item_optimizer::merge_classes): Wrap symtab_node::name and
	symtab_node::asm_name with xstrdup_for_dump.
	(congruence_class::dump): Use symtab_node::name instead of
	sem_item::name.
	* ipa-icf.h (symtab_node::name): Remove.
	(symtab_node::asm_name): Likewise.

From-SVN: r221491
2015-03-18 14:16:59 +00:00
Jakub Jelinek faf4220c72 re PR tree-optimization/65450 (Unaligned access with -O3 -mtune=k8)
PR tree-optimization/65450
	* tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
	function.
	(vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
	it instead of duplicate_ssa_name_ptr_info.

	* gfortran.dg/pr65450.f90: New test.

From-SVN: r221490
2015-03-18 14:54:12 +01:00
Jakub Jelinek 43939937e8 re PR target/65222 (-mtune= or -march=: Not all options not documented: slm, knl, shanghai, istanbul)
PR target/65222
	* doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.

From-SVN: r221489
2015-03-18 14:47:47 +01:00
Richard Biener 6f4f1a5079 tree-data-ref.h (struct access_matrix): Remove.
2015-03-18  Richard Biener  <rguenther@suse.de>

	* tree-data-ref.h (struct access_matrix): Remove.
	(AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
	AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
	AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
	(am_vector_index_for_loop): Likewise.
	(struct data_reference): Remove access_matrix member.
	(DR_ACCESS_MATRIX): Remove.
	(lambda_vector_new): Add comment.
	(lambda_matrix_new): Use XOBNEWVEC.

From-SVN: r221488
2015-03-18 13:36:16 +00:00
Richard Biener 9538c95bb1 tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
2015-03-18  Richard Biener  <rguenther@suse.de>

	* tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
	(pass_ch::execute): Cleanup the CFG only if we did sth.
	* tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.

From-SVN: r221487
2015-03-18 12:29:20 +00:00
Kyrylo Tkachov 076701b69d [expmed][cleanup] Use std::swap instead of manual swapping
* expmed.c (synth_mult): Use std::swap instead of manually
	swapping algorithms.

From-SVN: r221486
2015-03-18 12:01:24 +00:00
Jakub Jelinek fbf524de7b re PR rtl-optimization/65078 (4.9 and 5.0 generate more spill-fill in comparison with 4.8.2)
PR target/65078
	* config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.

	* gcc.target/i386/pr65078-1.c: New test.
	* gcc.target/i386/pr65078-2.c: New test.
	* gcc.target/i386/pr65078-3.c: New test.
	* gcc.target/i386/pr65078-4.c: New test.
	* gcc.target/i386/pr65078-5.c: New test.
	* gcc.target/i386/pr65078-6.c: New test.

From-SVN: r221485
2015-03-18 11:58:32 +01:00
Jonathan Wakely 5e0216f173 acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
	    Torvald Riegel  <triegel@redhat.com>

	* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
	(shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
	(shared_timed_mutex::lock_shared()): Retry on EAGAIN.
	(shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
	EDEADLK.

Co-Authored-By: Torvald Riegel <triegel@redhat.com>

From-SVN: r221484
2015-03-18 10:53:38 +00:00
Paolo Carlini 41cee85a34 re PR c++/65340 ([C++14]ICE in mark_used, at decl2.c:5040)
2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/65340
	* call.c (build_over_call): Pass the tsubst_flags_t argument to
	mark_used.
	* decl2.c (mark_used): Inline the require_deduced_type call and
	guard the error call.

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

	PR c++/65340
	* g++.dg/cpp1y/pr65340.C: New.

From-SVN: r221483
2015-03-18 10:31:24 +00:00
Jerry DeLisle 4d1de54341 re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-17 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64432
	* gfortran.dg/system_clock_3.f08: Adjust test.

From-SVN: r221482
2015-03-18 01:47:12 +00:00
GCC Administrator 3a6e2907c8 Daily bump.
From-SVN: r221481
2015-03-18 00:16:12 +00:00
Jason Merrill 3d17be83c1 re PR c++/65061 (Issue with using declaration and member class template)
PR c++/65061
	* parser.c (cp_parser_template_name): Call strip_using_decl.

From-SVN: r221478
2015-03-17 13:38:25 -04:00
Jonathan Wakely 1c6f4a147d 1.cc: Remove name of unused exception variable.
* testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
	unused exception variable.
	* testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
	* testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
	test.
	* testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.

From-SVN: r221477
2015-03-17 16:36:32 +00:00
Jonathan Wakely 95f2fd9c5d nested_exception.h: Do not try to derive from final classes.
* libsupc++/nested_exception.h: Do not try to derive from final
	classes.
	* testsuite/18_support/nested_exception/throw_with_nested.cc: Test
	final class.

From-SVN: r221476
2015-03-17 14:24:55 +00:00
Georg-Johann Lay 076d86f3d2 re PR target/65296 ([avr] fix various issues with specs file generation)
PR target/65296
	* config/avr/avr.opt (-nodevicelib): New option.
	* doc/invoke.texi (AVR Options): Document it.
	* config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
	libgcc.a, libc.a, libm.a.
	* config/avr/specs.h: Same.
	* config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
	which don't (directly) depend on the device.  Print more help.
	(*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
	(*cpp): Don't define __AVR_DEV_LIB_NAME__.
	* config/avr/driver-avr.c: Remove -nodevicelib from option list in
	case of an error.
	(avr_devicespecs_file): Use suffix "%s" instead of absolute path
	for specs file name.
	* config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
	* config/avr/avr-mcus.def: Adjust initializers and comments.

From-SVN: r221475
2015-03-17 10:34:11 +00:00
Paul Thomas ebd63afa68 re PR fortran/59198 (ICE on cyclically dependent polymorphic types)
2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/59198
	* trans-types.c (gfc_get_derived_type): If an abstract derived
	type with procedure pointer components has no other type of
	component, return the backend_decl. Otherwise build the
	components if any of the non-procedure pointer components have
	no backend_decl.

2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/59198
	* gfortran.dg/proc_ptr_comp_44.f90 : New test
	* gfortran.dg/proc_ptr_comp_45.f90 : New test

From-SVN: r221474
2015-03-17 05:20:08 +00:00
Jerry DeLisle 448c7e2525 re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64432
	* gfortran.dg/system_clock_3.f08: New test.

From-SVN: r221473
2015-03-17 01:22:12 +00:00
Jerry DeLisle d4b35ef74c re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/64432
	* intrinsics/system_clock.c (system_clock4, system_clock8):
	Cleanup some whitespace.

From-SVN: r221472
2015-03-17 01:04:58 +00:00
Jerry DeLisle 65263c1f70 re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64432
	*trans-intrinisic.c (conv_intrinsic_system_clock): Check the
	smallest kind passed in user arguments and hardcode tesults for
	KIND=1 or KIND=2 to indicate no clock available.

From-SVN: r221471
2015-03-17 01:01:54 +00:00
Edward Smith-Rowland a5858a3dff re PR c++/64626 (C++14 single quote should not always be a digit separator)
libcpp/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

	PR c++/64626
	* lex.c (lex_number): If a number ends with digit-seps (') skip back
	and let lex_string take them.


gcc/testsuite/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

	PR c++/64626
	g++.dg/cpp1y/pr64626-1.C: New.
	g++.dg/cpp1y/pr64626-2.C: New.
	g++.dg/cpp1y/digit-sep-neg.C: Adjust errors and warnings.

From-SVN: r221470
2015-03-17 00:50:55 +00:00
GCC Administrator ec19b718ba Daily bump.
From-SVN: r221469
2015-03-17 00:16:12 +00:00
Jan Hubicka 7a161d5be3 tree-sra.c (ipa_sra_preliminary_function_checks): Use DECL_ONE_ONLY to check if decl is one only.
* tree-sra.c (ipa_sra_preliminary_function_checks): Use
	DECL_ONE_ONLY to check if decl is one only.
	* ipa-split.c (consider_split): Limit splitt of one only functions.

From-SVN: r221466
2015-03-16 19:39:14 +00:00
Jakub Jelinek f8c29d9839 re PR tree-optimization/65427 (ICE in emit_move_insn with wide vector types)
PR tree-optimization/65427
	* tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
	functions.
	(expand_vector_operations_1): Handle BLKmode vector COND_EXPR.

	* gcc.c-torture/execute/pr65427.c: New test.

From-SVN: r221464
2015-03-16 19:50:43 +01:00
Marek Polacek ec638c5590 DR 1688 PR c++/65327
DR 1688
	PR c++/65327
	* decl.c (grokdeclarator): Allow volatile and constexpr together.

	* g++.dg/cpp0x/constexpr-object1.C: Change dg-error to dg-bogus.
	* g++.dg/cpp0x/pr65327.C: New test.

From-SVN: r221463
2015-03-16 18:30:49 +00:00
Marek Polacek de6d359336 cgraph.h (add_new_static_var): Remove declaration.
* cgraph.h (add_new_static_var): Remove declaration.
	* varpool.c (add_new_static_var): Remove function.

From-SVN: r221462
2015-03-16 18:28:26 +00:00
Jakub Jelinek 9410d9b20a omp-low.c (expand_omp_target): Use auto_vec<tree, 11> instead of vec<tree> * with vec_alloc and release for args.
* omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
	instead of vec<tree> * with vec_alloc and release for args.
	Adjust all users.

From-SVN: r221460
2015-03-16 17:10:58 +01:00
Jakub Jelinek 3713412b8a re PR middle-end/65431 (Invalid read of size 8 at 0x105DBBF8: delete_omp_context(unsigned long) (omp-low.c:1586))
PR middle-end/65431
	* omp-low.c (delete_omp_context): Only splay_tree_delete
	reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
	is_gimple_omp_oacc contexts.  Don't look at ctx->outer.

From-SVN: r221459
2015-03-16 17:10:17 +01:00
H.J. Lu ae8b772f95 Move cloog.m4 ChangeLog entry to config/ChangeLog
From-SVN: r221458
2015-03-16 08:28:58 -07:00
Max Ostapenko 435be74793 re PR sanitizer/64820 (Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.)
2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>

	PR sanitizer/64820

	gcc/
	* cfgexpand.c (align_base): New function.
	(alloc_stack_frame_space): Call it.
	(expand_stack_vars): Align prev_frame to be sure
	data->asan_vec elements aligned properly.

	gcc/testsuite/
	* c-c++-common/asan/pr64820.c: New test.

From-SVN: r221457
2015-03-16 13:17:32 +02:00
Andre Vehreschild 6c25f79625 resolve.c: Prevent segfault on illegal input.
gcc/fortran/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

	* resolve.c: Prevent segfault on illegal input.

gcc/testsuite/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

	* gfortran.dg/pointer_2.f90: New test.

From-SVN: r221455
2015-03-16 11:29:59 +01:00
Eric Botcazou 9e25209f3a re PR middle-end/65409 (ICE in store_field)
PR middle-end/65409
	* expr.c (store_field): Do not do a direct block copy if the source is
	a PARALLEL with BLKmode.

From-SVN: r221453
2015-03-16 10:26:28 +00:00