Commit Graph

136087 Commits

Author SHA1 Message Date
Ilya Enkovich
e9ed6b1e27 chkp-always_inline.c (f1): Make static to avoid errors with -fpic.
gcc/testsuite/

	* gcc.target/i386/chkp-always_inline.c (f1): Make static
	to avoid errors with -fpic.

From-SVN: r219997
2015-01-22 13:45:13 +00:00
Trevor Saunders
6c4ffa6c4a make fold ignore decl_with_vis.symtab_node
gcc/

	PR middle-end/63325
	* fold-const.c (fold_checksum_tree): Don't include
	expr.decl_with_vis.symtab_node in the checksum.

From-SVN: r219994
2015-01-22 11:55:33 +00:00
Andreas Krebbel
cf5b43b050 s390.md (atomic code attribute): Fix typo "ior" -> "or".
2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
	"or".

From-SVN: r219993
2015-01-22 11:39:00 +00:00
Max Ostapenko
f78a6ae44d re PR driver/64690 (-freport-bug issue with comments)
2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>

	PR driver/64690
	* gcc.c (insert_comments): New function.
	(try_generate_repro): Call it.
	(append_text): Removed.

From-SVN: r219990
2015-01-22 12:55:32 +02:00
Richard Biener
0c3068e006 ipa-inline.c (can_inline_edge_p): Disable inlining of edges with IL incompatible options.
2015-01-22  Richard Biener  <rguenther@suse.de>

	* ipa-inline.c (can_inline_edge_p): Disable inlining of edges
	with IL incompatible options.  Properly honor user optimize
	attributes.

From-SVN: r219989
2015-01-22 09:25:22 +00:00
Richard Biener
cce93c76ba re PR libstdc++/64535 (Emergency buffer for exception allocation too small)
2015-01-22  Richard Biener  <rguenther@suse.de>

	PR libstdc++/64535
	* libsupc++/eh_alloc.cc: Include new.
	(bitmask_type): Remove.
	(one_buffer): Likewise.
	(emergency_buffer): Likewise.
	(emergency_used): Likewise.
	(dependents_buffer): Likewise.
	(dependents_used): Likewise.
	(class pool): New custom fixed-size arena, variable size object
	allocator.
	(emergency_pool): New global.
	(__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
	(__cxxabiv1::__cxa_free_exception): Likewise.
	(__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
	(__cxxabiv1::__cxa_free_dependent_exception): Likewise.

	* g++.old-deja/g++.eh/badalloc1.C: Adjust.

From-SVN: r219988
2015-01-22 09:21:48 +00:00
Tim Shen
770acfc9e3 re PR libstdc++/64680 (basic_regex::operator= does not reset flags)
PR libstdc++/64680
	* include/bits/regex.h (basic_regex<>::basic_regex,
	basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
	standard interface.
	* testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.

From-SVN: r219987
2015-01-22 05:07:03 +00:00
Tim Shen
77033d2668 re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)
PR libstdc++/64649
	* include/bits/regex.tcc (regex_traits<>::lookup_collatename,
	regex_traits<>::lookup_classname): Correctly narrow input chars.
	* testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.

From-SVN: r219986
2015-01-22 05:02:38 +00:00
Ian Lance Taylor
fa3340ec8f Makefile.am (noinst_PROGRAMS): New variable.
* Makefile.am (noinst_PROGRAMS): New variable.
	(libexecsub_PROGRAMS): Remove variable.
	(install-exec-local, uninstall-local): New targets.
	* Makefile.in: Rebuild.

From-SVN: r219985
2015-01-22 04:19:11 +00:00
Ian Lance Taylor
d4290ecad0 compiler: Prohibit use of ellipsis operator on multi-valued calls.
Fixes golang/go#9525.

From-SVN: r219984
2015-01-22 04:09:04 +00:00
Segher Boessenkool
fad513aa88 Add file I missed. Whoops.
From-SVN: r219982
2015-01-22 01:37:17 +01:00
Segher Boessenkool
c8b90a13c7 re PR rtl-optimization/64682 (wrong code at -O2 and -O3 on x86_64-linux-gnu)
PR rtl-optimization/64682
	* combine.c (distribute_notes): When moving a death note for
	a register that is set in the new I2, make sure to put it
	before that new I2.

	PR rtl-optimization/64682
	* gcc.c-torture/execute/pr64682.c: New file.

From-SVN: r219981
2015-01-22 01:35:44 +01:00
GCC Administrator
a393438f27 Daily bump.
From-SVN: r219980
2015-01-22 00:16:37 +00:00
David Edelsohn
1c2fd8c7cf rs6000.c (rs6000_file_start): Use rs6000_isa_flags not TARGET_DEFAULT.
* config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
        not TARGET_DEFAULT.

From-SVN: r219977
2015-01-21 19:13:09 -05:00
Ian Lance Taylor
6632034718 runtime: Add the Go language version information to the Version output.
From-SVN: r219976
2015-01-21 23:03:41 +00:00
Jakub Jelinek
98f510444c re PR debug/64511 (ICE at -O3 with -g enabled on x86_64-linux-gnu)
PR debug/64511
	* simplify-rtx.c (simplify_relational_operation_1): Don't try to
	optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
	into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).

	* gcc.dg/pr64511.c: New test.

From-SVN: r219974
2015-01-21 22:59:34 +01:00
Jason Merrill
b85a324239 re PR c++/64603 (bogus error "no matching function for call to ..." with templates)
PR c++/64603
	* constexpr.c (cxx_eval_constant_expression): Only shortcut
	constant CONSTRUCTORs.

From-SVN: r219973
2015-01-21 16:56:34 -05:00
Jakub Jelinek
d2632e47fc re PR sanitizer/64706 (-fsanitize=vptr is not documented)
PR sanitizer/64706
	* doc/invoke.texi (-fsanitize=vptr): Document.

From-SVN: r219971
2015-01-21 22:53:49 +01:00
Jakub Jelinek
6c5ed3f18c re PR rtl-optimization/62078 (ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 2 with -fdelete-dead-exceptions)
PR rtl-optimization/62078
	* dse.c: Include cfgcleanup.h.
	(rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
	anything call purge_all_dead_edges and cleanup_cfg at the end
	of the pass.

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

From-SVN: r219970
2015-01-21 22:51:43 +01:00
Jakub Jelinek
31be63ab8c re PR c/63307 (Cilk+ breaks -fcompare-debug bootstrap)
PR c/63307
	* cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
	(compare_decls): Fix up formatting.

	* c-c++-common/cilk-plus/CK/pr63307.c: New test.

2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>

	PR c/63307
	* cilk.c: Include vec.h.
	(struct cilk_decls): New structure.
	(wrapper_parm_cb): Split this function to...
	(fill_decls_vec): ...this...
	(create_parm_list): ...and this.
	(compare_decls): New function.
	(for_local_cb): Remove.
	(wrapper_local_cb): Ditto.
	(build_wrapper_type): For now first traverse and fill vector of
	declarations then sort it and then deal with sorted vector.
	(cilk_outline): Ditto.
	(declare_one_free_variable): Ditto.

From-SVN: r219969
2015-01-21 22:23:04 +01:00
Jakub Jelinek
8b08ef255b re PR sanitizer/64435 (Bootstrap failure in libsanitizer on AArch64 with Linux kernel <= 3.15)
PR sanitizer/64435
	* sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
	upstream r226637.
	* sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
	* sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.

From-SVN: r219968
2015-01-21 22:21:27 +01:00
Jason Merrill
f1eac18240 re PR c++/64647 ([C++14] std::__max_element contains code not allowed in constexpr function)
PR c++/64647
	* constexpr.c (ensure_literal_type_for_constexpr_object): Don't
	give a hard error in a template instantiation.

From-SVN: r219965
2015-01-21 15:15:35 -05:00
Jason Merrill
6875457f34 re PR c++/64629 (-Wformat-security warns with const char *const vars)
PR c++/64629
	* c-format.c (check_format_arg): Call decl_constant_value.

From-SVN: r219964
2015-01-21 15:15:27 -05:00
Thomas Koenig
4195393b3c re PR fortran/57023 (Not packing arrays with changing variable used for size)
2015-01-21  Thomas Koenig  <tkoenig@netcologne.de>

	PR fortran/57023
	* dependency.c (callback_dummy_intent_not_int):  New function.
	(dummy_intent_not_in):  New function.
	(gfc_full_array_ref_p):  Use dummy_intent_not_in.

2015-01-21  Thomas Koenig  <tkoenig@netcologne.de>

	PR fortran/57023
	* gfortran.dg/internal_pack_15.f90:  New test.

From-SVN: r219963
2015-01-21 19:40:54 +00:00
Jan Hubicka
173148bb12 ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect edges.
* ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
	edges.

From-SVN: r219962
2015-01-21 18:19:25 +00:00
Bernd Edlinger
2f3c4b6968 gimplify.c (gimplify_function_tree): Check the no_sanitize_thread decl attribute.
gcc/ChangeLog:
2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
        decl attribute.

gcc/testsuite/ChangeLog
2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc/testsuite/c-c++-common/tsan/step.c: New testcase.

From-SVN: r219961
2015-01-21 18:08:42 +00:00
David Sherwood
b6b782b967 aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
gcc/
2015-01-21  David Sherwood  <david.sherwood@arm.com>
	    Tejas Belagod <Tejas.Belagod@arm.com>

	* config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
	* config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
	* config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
	Removed.

Co-Authored-By: Tejas Belagod <tejas.belagod@arm.com>

From-SVN: r219960
2015-01-21 17:53:55 +00:00
David Sherwood
668046d175 gcc/
2015-01-21  David Sherwood  <david.sherwood@arm.com>
	    Tejas Belagod <Tejas.Belagod@arm.com>

	* config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
	(aarch64_reverse_mask): New decls.
	* config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
	(insn_count): New mode_attr.
	* config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
	(vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
	(vec_load_lanesxi): Made ABI compliant for Big Endian targets.
	(aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
	(aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
	(aarch64_simd_st4): New patterns.
	* config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
	(aarch64_reverse_mask): New functions.

Co-Authored-By: Tejas Belagod <tejas.belagod@arm.com>

From-SVN: r219959
2015-01-21 17:53:44 +00:00
Alan Hayward
2d8c6dc1d9 aarch64-protos.h (aarch64_simd_disambiguate_copy): Declare.
gcc/
	* config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
	Declare.
	* config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
	addressing modes for BE.
	(aarch64_print_operand): Add 'R' specifier.
	(aarch64_simd_disambiguate_copy): Delete.
	(aarch64_simd_emit_reg_reg_move): New function.
	* config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
	in define_splits for structural moves.
	(mov<mode>): Use less restrictive predicates.
	(*aarch64_mov<mode>): Simplify and only allow for LE.
	(*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.

From-SVN: r219958
2015-01-21 17:53:31 +00:00
Alan Hayward
9ab41c76dd rtlanal.c (subreg_get_info): Exit early for simple and common cases.
gcc/
2015-01-25  Alan Hayward  <alan.hayward@arm.com>

	* rtlanal.c (subreg_get_info): Exit early for simple and common
	cases.

From-SVN: r219957
2015-01-21 17:53:04 +00:00
Andrew Waterman
122a5d603b Avoid misaligned atomic operations
Andrew Waterman <waterman@cs.berkeley.edu>

 * fop_n.c (libat_fetch_op): Align address to word boundary.
 (libat_op_fetch): Likewise.

From-SVN: r219954
2015-01-21 09:17:03 -08:00
Jonathan Wakely
f81f49c180 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
From-SVN: r219953
2015-01-21 16:17:31 +00:00
Jonathan Wakely
deff1f4105 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
From-SVN: r219952
2015-01-21 16:17:17 +00:00
Richard Henderson
4005b96a70 re PR target/64669 (aarch64-linux profiledbootstrap failure)
PR target/64669

 * ccmp.c (used_in_cond_stmt_p): Remove.
 (expand_ccmp_expr): Don't use it.

From-SVN: r219951
2015-01-21 07:47:49 -08:00
Christophe Lyon
6fdbf71325 [ARM/AArch64][testsuite] Add vqdmull_n tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmull_n.c: New file.

From-SVN: r219950
2015-01-21 12:32:32 +01:00
Christophe Lyon
9b84f8f53a [ARM/AArch64][testsuite] Add vqdmull_lane tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmull_lane.c: New file.

From-SVN: r219949
2015-01-21 12:31:20 +01:00
Christophe Lyon
993cb72001 [ARM/AArch64][testsuite] Add vqdmull tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmull.c: New file.

From-SVN: r219948
2015-01-21 12:30:16 +01:00
Christophe Lyon
c6c3bdce8c [ARM/AArch64][testsuite] Add vqdmulh_n tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmulh_n.c: New file.

From-SVN: r219947
2015-01-21 12:28:55 +01:00
Christophe Lyon
4925848234 [ARM/AArch64][testsuite] Add vqdmulh_lane tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmulh_lane.c: New file.

From-SVN: r219946
2015-01-21 12:26:06 +01:00
Christophe Lyon
77566bc748 [ARM/AArch64][testsuite] Add vqdmulh tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vqdmulh.c: New file.

From-SVN: r219945
2015-01-21 12:25:11 +01:00
Christophe Lyon
94b9215c87 [ARM/AArch64][testsuite] Add vmull_n tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmull_n.c: New file.

From-SVN: r219944
2015-01-21 12:23:31 +01:00
Christophe Lyon
43da1074f8 [ARM/AArch64][testsuite] Add vmull_lane tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c: New file.

From-SVN: r219943
2015-01-21 12:21:53 +01:00
Christophe Lyon
e5584668dc [ARM/AArch64][testsuite] Add vmull tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmull.c: New file.

From-SVN: r219942
2015-01-21 12:18:57 +01:00
Christophe Lyon
8afb62ac1c [[ARM/AArch64][testsuite] 24/36] Add vmul_n tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmul_n.c: New file.

From-SVN: r219941
2015-01-21 12:17:34 +01:00
Christophe Lyon
ad9b853c30 [ARM/AArch64][testsuite] Add vmul_lane tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c: New file.

From-SVN: r219940
2015-01-21 12:16:23 +01:00
Christophe Lyon
d048f8c339 [ARM/AArch64][testsuite] Add vmovn tests.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vmovn.c: New file.

From-SVN: r219939
2015-01-21 12:14:57 +01:00
Christophe Lyon
84722ccab1 [ARM/AArch64][testsuite] Add vsubw tests, putting most of the code in common with vaddw through vXXWw.inc.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vXXXw.inc: New file.
	* gcc.target/aarch64/advsimd-intrinsics/vsubw.c: New file.
	* gcc.target/aarch64/advsimd-intrinsics/vaddw.c: Use code from
	vXXXw.inc.

From-SVN: r219938
2015-01-21 12:13:21 +01:00
Christophe Lyon
9ba0832112 [ARM/AArch64][testsuite] Add vsubl tests, put most of the code in common with vaddl in vXXXl.inc.
2015-01-21  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/advsimd-intrinsics/vXXXl.inc: New file.
	* gcc.target/aarch64/advsimd-intrinsics/vsubl.c: New file.
	* gcc.target/aarch64/advsimd-intrinsics/vaddl.c: Use code from
	vXXXl.inc.

From-SVN: r219937
2015-01-21 12:11:47 +01:00
Andre Vehreschild
09b9cd1f18 * MAINTAINER: Added myself.
From-SVN: r219936
2015-01-21 11:54:37 +01:00
Renlin Li
8f478ee6e3 [PATCH]Skip g++.dg/tls testes on target using status wrapper
/testsuite
2015-01-21 Renlin Li <renlin.li@arm.com>

	* g++.dg/tls/thread_local5.C: Skip when dejagnu wrapper is used.
	* g++.dg/tls/thread_local5g.C: Likewise.
	* g++.dg/tls/thread_local6g.C: Likewise.

From-SVN: r219935
2015-01-21 10:25:42 +00:00