Commit Graph

135954 Commits

Author SHA1 Message Date
Ian Lance Taylor
c92e723dc8 re PR go/64595 (go programs abort when debug info is stripped)
PR go/64595
	* go.1, gofmt.1: New files.
	* Makefile.am (man_MANS): New variable.
	* Makefile.in: Rebuild.

From-SVN: r220022
2015-01-23 01:42:08 +00:00
GCC Administrator
c23dfd077f Daily bump.
From-SVN: r220021
2015-01-23 00:21:48 +00:00
Matthias Klose
85a1e6370b gets-chk.c: Declare prototype for gets in C11 mode.
2015-01-22  Matthias Klose  <doko@ubuntu.com>

        * gets-chk.c: Declare prototype for gets in C11 mode.

From-SVN: r220018
2015-01-22 22:47:31 +00:00
Jeff Law
4c8932dc49 Remove unwanted file
From-SVN: r220016
2015-01-22 14:28:52 -07:00
Jeff Law
5e7821eb98 re PR target/52076 (bloated code for setting single bits in bitfields on m68k)
PR target/52076
	* config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
	improve code density for small immediate to memory case.
	(insv): Better handle bitfield assignments when the field is
	being set to all ones.
	* config/m68k/predicates.md (reg_or_pow2_m1_operand): New
	operand predicate.

	PR target/52076
	* gcc.target/m68k/pr52076-1.c: New test.
	* gcc.target/m68k/pr52076-2.c: New test.

From-SVN: r220015
2015-01-22 14:24:28 -07:00
Rainer Orth
33eaef4bf7 gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit for !TARGET_LIBC_PROVIDES_SSP version and...
* gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
	for !TARGET_LIBC_PROVIDES_SSP version and
	-fstack-protector-{all,strong,explicit} otherwise.
	* config/freebsd.h (LINK_SSP_SPEC): Handle
	-fstack-protector-{strong,explicit}.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r220014
2015-01-22 21:45:59 +01:00
Jakub Jelinek
19ac475f49 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
From-SVN: r220013
2015-01-22 21:44:25 +01:00
Uros Bizjak
a0d8720ab2 re PR rtl-optimization/64688 (internal compiler error: Max. number of generated reload insns per insn is achieved (90))
2015-22-01  Uros Bizjak  <ubizjak@gmail.com>

	PR target/64688
	PR target/64477
	(*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.

From-SVN: r220012
2015-01-22 21:25:23 +01:00
Jan Hubicka
d75de25bde re PR ipa/64694 (FAIL: 23_containers/unordered_set/insert/hash_policy.cc)
PR ipa/64694
	* ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
	heap.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>

From-SVN: r220011
2015-01-22 19:44:00 +00:00
Wei Mi
ff1803c128 re PR rtl-optimization/64557 (get_addr in true_dependence_1 cannot handle VALUE inside an expr)
2015-01-22  Wei Mi  <wmi@google.com>

        PR rtl-optimization/64557
        * dse.c (record_store): Call get_addr for mem_addr.
        (check_mem_read_rtx): Likewise.

From-SVN: r220010
2015-01-22 17:59:23 +00:00
Ian Lance Taylor
6e43628633 compiler: Avoid infinite recursion when describing initialization loops.
Fixes infinite recursion from golang/go#7558.

From-SVN: r220009
2015-01-22 17:11:36 +00:00
Eric Botcazou
f77107e814 * fold-const.c (const_binop): Add early return for non-tcc_binary.
From-SVN: r220007
2015-01-22 16:44:50 +00:00
Chen Gang
0c7990560b toplev.c (init_local_tick): Process the failure when read fails for random_seed.
* toplev.c (init_local_tick): Process the failure when read
	fails for random_seed.

From-SVN: r220006
2015-01-22 09:40:51 -07:00
Chen Gang
e34a176a11 ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for 'pretty_name' to avoid memory overflow.
* ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
        'pretty_name' to avoid memory overflow.

From-SVN: r220005
2015-01-22 09:31:58 -07:00
Chen Gang
324820f162 unwind-dw2-fde.h (last_fde): Use "(const fde *)" instead of "(char *)" to avoid qualifier warning by 'xgcc'...
* unwind-dw2-fde.h (last_fde): Use "(const fde *)" instead of
 	"(char *)" to avoid qualifier warning by 'xgcc' compiling.

From-SVN: r220004
2015-01-22 09:22:31 -07:00
Richard Biener
f4b05e7468 re PR tree-optimization/64728 (internal compiler error: SSA corruption)
2015-01-22  Richard Biener  <rguenther@suse.de>

	PR middle-end/64728
	* tree-ssa-coalesce.c (coalesce_partitions): Do not perform
	abnormal coalescing on undefined SSA names.

	* gcc.dg/torture/pr64728.c: New testcase.

From-SVN: r220003
2015-01-22 16:07:36 +00:00
Uros Bizjak
9832176855 re PR rtl-optimization/64688 (internal compiler error: Max. number of generated reload insns per insn is achieved (90))
PR target/64688
	PR target/64477
	* config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
	for alternative 3.

testsuite/ChangeLog:

	PR target/64688
	* g++.dg/pr64688.C: New test.

From-SVN: r220000
2015-01-22 15:43:55 +01:00
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