]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
10 years agopa.c (pa_reloc_rw_mask): New function.
John David Anglin [Thu, 19 Feb 2015 23:50:10 +0000 (23:50 +0000)] 
pa.c (pa_reloc_rw_mask): New function.

* config/pa/pa.c (pa_reloc_rw_mask): New function.
(TARGET_ASM_RELOC_RW_MASK): Define.
(pa_cannot_force_const_mem): Revert previous change.

From-SVN: r220828

10 years agoBackport PRs 56273, 59124, 64199, 64277, 64365, 64493, 64495
Richard Biener [Thu, 19 Feb 2015 14:13:16 +0000 (14:13 +0000)] 
Backport PRs 56273, 59124, 64199, 64277, 64365, 64493, 64495

2015-02-19  Richard Biener  <rguenther@suse.de>

Backport from mainline
2014-12-09  Richard Biener  <rguenther@suse.de>

PR middle-end/64199
* fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.

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

2015-01-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64493
PR tree-optimization/64495
* tree-vect-loop.c (vect_finalize_reduction): For double-reductions
assign the proper vectorized PHI to the inner loop exit PHIs.

* gcc.dg/vect/pr64493.c: New testcase.
* gcc.dg/vect/pr64495.c: Likewise.

2015-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56273
PR tree-optimization/59124
PR tree-optimization/64277
* tree-vrp.c (vrp_finalize): Emit array-bound warnings only
from the first VRP pass.

* g++.dg/warn/Warray-bounds-6.C: New testcase.
* gcc.dg/Warray-bounds-12.c: Likewise.
* gcc.dg/Warray-bounds-13.c: Likewise.

2015-02-19  Richard Biener  <rguenther@suse.de>

Backport from mainline
2015-01-15  Richard Biener  <rguenther@suse.de>

PR middle-end/64365
* tree-data-ref.c (dr_analyze_indices): Make sure that accesses
for MEM_REF access functions with the same base can never partially
overlap.

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

From-SVN: r220815

10 years agoRevert untested commit
Maxim Kuvyrkov [Thu, 19 Feb 2015 12:22:16 +0000 (12:22 +0000)] 
Revert untested commit

2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
Backport from mainline
2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>

* lib/target-supports.exp (check_compile): Save/restore
additional_sources that may belong to an actual test.

From-SVN: r220813

10 years agobackport: target-supports.exp (check_compile): Save/restore additional_sources that...
Maxim Kuvyrkov [Thu, 19 Feb 2015 08:52:16 +0000 (08:52 +0000)] 
backport: target-supports.exp (check_compile): Save/restore additional_sources that may belong to an actual test.

Backport from mainline: Fix testsuite race on additional_sources

2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>

* lib/target-supports.exp (check_compile): Save/restore
additional_sources that may belong to an actual test.

From-SVN: r220809

10 years agoDaily bump.
GCC Administrator [Thu, 19 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220803

10 years agoDaily bump.
GCC Administrator [Wed, 18 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220777

10 years agobackport: bpabi.S (test_div_by_zero): Make label names consistent between thumb2...
Sandra Loosemore [Tue, 17 Feb 2015 17:42:31 +0000 (12:42 -0500)] 
backport: bpabi.S (test_div_by_zero): Make label names consistent between thumb2 and arm mode cases.

2015-02-17  Sandra Loosemore  <sandra@codesourcery.com>

libgcc/
Backported from mainline
2015-02-17  Sandra Loosemore  <sandra@codesourcery.com>

* config/arm/bpabi.S (test_div_by_zero): Make label names
consistent between thumb2 and arm mode cases.  Separate the
signed comparison on the high word of the numerator from the
unsigned comparison on the low word.
* config/arm/bpabi-v6m.S (test_div_by_zero): Similarly separate
signed comparison.

gcc/testsuite/
Backported from mainline
2015-02-17  Sandra Loosemore  <sandra@codesourcery.com>

* gcc.target/arm/divzero.c: New test case.

From-SVN: r220766

10 years agobackport: re PR target/64387 (ICE: in extract_insn, at recog.c:2327 (unrecognizable...
Ilya Tocar [Tue, 17 Feb 2015 11:41:55 +0000 (11:41 +0000)] 
backport: re PR target/64387 (ICE: in extract_insn, at recog.c:2327 (unrecognizable insn) with -ffloat-store -mavx512er)

Backported from mainline
2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>

PR target/64387
* config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
(vec_unpacks_hi_v16sf): Ditto.

* gcc.target/i386/pr64387.c: New test.

From-SVN: r220756

10 years agoDaily bump.
GCC Administrator [Tue, 17 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220746

10 years agoDaily bump.
GCC Administrator [Mon, 16 Feb 2015 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220720

10 years agopa.c (pa_secondary_reload): Request a secondary reload for all floading point loads...
John David Anglin [Sun, 15 Feb 2015 15:21:25 +0000 (15:21 +0000)] 
pa.c (pa_secondary_reload): Request a secondary reload for all floading point loads and stores except those...

* config/pa/pa.c (pa_secondary_reload): Request a secondary reload
for all floading point loads and stores except those using a register
index address.
* config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
to a register.

From-SVN: r220717

10 years agoDaily bump.
GCC Administrator [Sun, 15 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220713

10 years agoDaily bump.
GCC Administrator [Sat, 14 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220704

10 years agore PR c++/62017 (AddressSanitizer reports *-buffer-overflow in destructor when multip...
Jason Merrill [Fri, 13 Feb 2015 22:14:07 +0000 (17:14 -0500)] 
re PR c++/62017 (AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used)

PR c++/62017
* decl.c (begin_destructor_body): Only clobber the as-base part of
*this.

From-SVN: r220699

10 years agoUse the local name instead of the original name in the check for name conflicts...
Mikael Morin [Fri, 13 Feb 2015 18:48:35 +0000 (18:48 +0000)] 
Use the local name instead of the original name in the check for name conflicts...

Use the local name instead of the original name in the check for name conflicts
between a hosting program unit and use-associated symbols
in that program unit.

fortran/
    PR fortran/63744
    * module.c (check_for_ambiguous): Change argument type
    from gfc_symbol to gfc_symtree.  Check local (symtree) name
    instead of original (symbol) name.
    (read_module): Update caller.

testsuite/
    PR fortran/63744
    gfortran.dg/use_rename_8.f90: New.

From-SVN: r220690

10 years agoconstraints.md: Change "Q" and "T" constraints to memory constraints.
John David Anglin [Fri, 13 Feb 2015 13:09:58 +0000 (13:09 +0000)] 
constraints.md: Change "Q" and "T" constraints to memory constraints.

* config/pa/constraints.md: Change "Q" and "T" constraints to memory
constraints.
* config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
symbolic references to data to be forced to constant memory on the
SOM target.

From-SVN: r220681

10 years agoDaily bump.
GCC Administrator [Fri, 13 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220670

10 years agore PR fortran/64932 (ICE in gfc_conv_descriptor_data_get for generated finalizer)
Paul Thomas [Thu, 12 Feb 2015 21:06:41 +0000 (21:06 +0000)] 
re PR fortran/64932 (ICE in gfc_conv_descriptor_data_get for generated finalizer)

2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64932
* trans-stmt.c (gfc_trans_deallocate): If a component array
expression is not a descriptor type and it is a derived type
that has allocatable components and is not finalizable, then
deallocate the allocatable components.

2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64932
* gfortran.dg/finalize_28.f90: New test

From-SVN: r220659

10 years agoDaily bump.
GCC Administrator [Thu, 12 Feb 2015 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220635

10 years agore PR middle-end/64824 (ICE in gimple verification)
Jakub Jelinek [Wed, 11 Feb 2015 14:48:41 +0000 (15:48 +0100)] 
re PR middle-end/64824 (ICE in gimple verification)

PR c/64824
* c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
check in the POP macro.

* testsuite/libgomp.c/atomic-18.c: New test.
* testsuite/libgomp.c++/atomic-16.C: New test.

From-SVN: r220624

10 years agobackport: re PR target/64979 (stdarg optimization not able to find escape sites in...
Jakub Jelinek [Wed, 11 Feb 2015 14:45:26 +0000 (15:45 +0100)] 
backport: re PR target/64979 (stdarg optimization not able to find escape sites in phi nodes)

Backported from mainline
2015-02-09  Jakub Jelinek  <jakub@redhat.com>

PR target/64979
* tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
va_list escapes.

* gcc.dg/tree-ssa/stdarg-7.c: New test.
* gcc.c-torture/execute/pr64979.c: New test.

From-SVN: r220623

10 years agobackport: re PR middle-end/64824 (ICE in gimple verification)
Jakub Jelinek [Wed, 11 Feb 2015 14:44:10 +0000 (15:44 +0100)] 
backport: re PR middle-end/64824 (ICE in gimple verification)

Backported from mainline
2015-02-04  Jakub Jelinek  <jakub@redhat.com>

PR c/64824
PR c/64868
* c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
instead of RDIV_EXPR.  Use build_binary_op instead of
build2_loc.

* c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.

* parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.

* testsuite/libgomp.c/pr64824.c: New test.
* testsuite/libgomp.c/pr64868.c: New test.
* testsuite/libgomp.c++/pr64824.C: New test.
* testsuite/libgomp.c++/pr64868.C: New test.

From-SVN: r220622

10 years agobackport: re PR c/57653 (filename information discarded when using -imacros)
Richard Biener [Wed, 11 Feb 2015 12:14:07 +0000 (12:14 +0000)] 
backport: re PR c/57653 (filename information discarded when using -imacros)

2015-02-11  Richard Biener  <rguenther@suse.de>

Backport from mainline
2014-07-24  Marek Polacek  <polacek@redhat.com>

PR c/57653
* c-opts.c (c_finish_options): If -imacros is in effect, return.

* c-c++-common/pr57653.c: New test.
* c-c++-common/pr57653.h: New file.
* c-c++-common/pr57653-2.c: New test.
* c-c++-common/pr57653-2.h: New file.

From-SVN: r220614

10 years agoalpha.md (reload_out<mode>_aligned): Make operands 2 and 3 earlyclobber operands.
Uros Bizjak [Wed, 11 Feb 2015 07:18:21 +0000 (08:18 +0100)] 
alpha.md (reload_out<mode>_aligned): Make operands 2 and 3 earlyclobber operands.

* config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
and 3 earlyclobber operands.

From-SVN: r220607

10 years agoDaily bump.
GCC Administrator [Wed, 11 Feb 2015 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220600

10 years agoDaily bump.
GCC Administrator [Tue, 10 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220555

10 years agoextend.texi: s/390: Update documentation of hotpatch attribute.
Dominik Vogt [Mon, 9 Feb 2015 11:06:52 +0000 (11:06 +0000)] 
extend.texi: s/390: Update documentation of hotpatch attribute.

2015-02-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>

        * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
        * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
        -mhotpatch= option.
        * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
        -mno-hotpatch options.  Change syntax of -mhotpatch= option.
        * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
        Renamed.
        (s390_hotpatch_trampoline_halfwords_max): Renamed.
        (s390_hotpatch_hw_max): New name.
        (s390_hotpatch_trampoline_halfwords): Renamed.
        (s390_hotpatch_hw_before_label): New name.
        (get_hotpatch_attribute): Removed.
        (s390_hotpatch_hw_after_label): New name.
        (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
        attribute.
        (s390_attribute_table): Ditto.
        (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
        (s390_function_num_hotpatch_hw): New name.
        Remove special handling of inline functions and hotpatching.
        Return number of nops before and after the function label.
        (s390_can_inline_p): Removed.
        (s390_asm_output_function_label): Emit a configurable number of nops
        after the function label.
        (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
        (TARGET_CAN_INLINE_P) Removed.
        (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.

2015-02-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc/testsuite/gcc.target/s390/hotpatch-13.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-14.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-15.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-16.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-17.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-18.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-19.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-20.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-10.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-11.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-12.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-13.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-14.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-15.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-16.c: New testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-9.c: New
testcase.
* gcc/testsuite/gcc.target/s390/hotpatch-1.c: Testcase adjusted to
new -mhotpatch.
* gcc/testsuite/gcc.target/s390/hotpatch-10.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-11.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-12.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-2.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-3.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-4.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-5.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-6.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-7.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-8.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-9.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-1.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-2.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-3.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-4.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-5.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-6.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-7.c: Likewise.
* gcc/testsuite/gcc.target/s390/hotpatch-compile-8.c: Likewise.

From-SVN: r220534

10 years agoDaily bump.
GCC Administrator [Mon, 9 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220525

10 years agodecl.c (is_cplusplus_method): Use Is_Primitive flag to detect primitive operations...
Eric Botcazou [Sun, 8 Feb 2015 09:49:26 +0000 (09:49 +0000)] 
decl.c (is_cplusplus_method): Use Is_Primitive flag to detect primitive operations of tagged and untagged types.

* gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
detect primitive operations of tagged and untagged types.

From-SVN: r220513

10 years agoDaily bump.
GCC Administrator [Sun, 8 Feb 2015 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220508

10 years agoDaily bump.
GCC Administrator [Sat, 7 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220498

10 years agoDaily bump.
GCC Administrator [Fri, 6 Feb 2015 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220466

10 years agore PR target/64580 (very high rs6000_stack_info() usage during LTO Firefox build...
Segher Boessenkool [Thu, 5 Feb 2015 15:01:49 +0000 (16:01 +0100)] 
re PR target/64580 (very high rs6000_stack_info() usage during LTO Firefox build on ppc64)

PR target/64580
Backport from mainline
* config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
(rs6000_stack_info): Add assert.
(rs6000_output_savres_externs): New function, split off from...
(rs6000_output_function_prologue): ... here.  Do not call it for
thunks.

From-SVN: r220453

10 years agoDaily bump.
GCC Administrator [Thu, 5 Feb 2015 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220428

10 years agobackport: [multiple changes]
Matthias Klose [Wed, 4 Feb 2015 23:36:22 +0000 (23:36 +0000)] 
backport: [multiple changes]

2015-02-04  Matthias Klose  <doko@ubuntu.com>

        PR target/64938
        Backport from mainline
        2015-01-15  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/64068
        PR ipa/64559
        * ipa.c (symbol_table::remove_unreachable_nodes):
        Do not put abstract origins into boundary.

2015-02-04  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2015-01-15  Martin Liska  <mliska@suse.cz>

        * g++.dg/ipa/pr64068.C: New test.
        * gcc.dg/ipa/PR64559.c: New test.

From-SVN: r220426

10 years agobackport: re PR target/64882 (ICE on valid code at -O3 with -g enabled in simplify_su...
Uros Bizjak [Wed, 4 Feb 2015 20:00:48 +0000 (21:00 +0100)] 
backport: re PR target/64882 (ICE on valid code at -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5681)

Backport from mainline
2015-01-31  Uros Bizjak  <ubizjak@gmail.com>

        PR target/64882
* config/i386/predicates.md (address_no_seg_operand): Reject
non-CONST_INT_P operands in invalid mode.

Backport from mainline
2015-01-31  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
* config/i386/predicates.md (address_no_seg_operand): Call
address_operand with VOIDmode.
(vsib_address_operand): Ditto.

testsuite/ChangeLog:

Backport from mainline
2015-01-31  Uros Bizjak  <ubizjak@gmail.com>

        PR target/64882
* gcc.dg/torture/pr64882.c: New test.

From-SVN: r220415

10 years agore PR c++/64901 (overriding final function defined out of line does not lead to an...
Ville Voutilainen [Wed, 4 Feb 2015 15:38:50 +0000 (17:38 +0200)] 
re PR c++/64901 (overriding final function defined out of line does not lead to an error)

2015-02-04  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/64901
* decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
DECL_OVERRIDE_P.

From-SVN: r220409

10 years agoDaily bump.
GCC Administrator [Wed, 4 Feb 2015 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220386

10 years agointrinsic.texi (CO_ASSOCIATED): c_prt_1 should be c_ptr_1.
Steven G. Kargl [Tue, 3 Feb 2015 21:56:02 +0000 (21:56 +0000)] 
intrinsic.texi (CO_ASSOCIATED): c_prt_1 should be c_ptr_1.

2015-02-03  Steven G. Kargl  <kargl@gcc.gnu.org>

* intrinsic.texi (CO_ASSOCIATED): c_prt_1 should be c_ptr_1.

From-SVN: r220382

10 years agore PR libstdc++/64680 (basic_regex::operator= does not reset flags)
Tim Shen [Tue, 3 Feb 2015 09:01:36 +0000 (09:01 +0000)] 
re PR libstdc++/64680 (basic_regex::operator= does not reset flags)

PR libstdc++/64680
Backported from mainline
2015-01-22  Tim Shen  <timshen@google.com>

* 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: r220366

10 years agore PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access...
Tim Shen [Tue, 3 Feb 2015 08:59:24 +0000 (08:59 +0000)] 
re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)

PR libstdc++/64649
Backported from mainline
2015-01-22  Tim Shen  <timshen@google.com>

* 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: r220365

10 years agoDaily bump.
GCC Administrator [Tue, 3 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220361

10 years agoSupport new Intel processor model numbers
H.J. Lu [Mon, 2 Feb 2015 04:20:49 +0000 (04:20 +0000)] 
Support new Intel processor model numbers

Backported from mainline

gcc/

* config/i386/driver-i386.c (host_detect_local_cpu): Check new
Silvermont, Haswell, Broadwell and Knights Landing model numbers.
* config/i386/i386.c (processor_model): Add
M_INTEL_COREI7_BROADWELL.
(arch_names_table): Add "broadwell".

gcc/testsuite/

* gcc.target/i386/builtin_target.c (check_intel_cpu_model): Add
Silvermont, Ivy Bridge, Haswell and Broadwell tests.  Update Sandy
Bridge test.

libgcc/

* config/i386/cpuinfo.c (processor_subtypes): Add
INTEL_COREI7_BROADWELL.
(get_intel_cpu): Support new Silvermont, Haswell and Broadwell
model numbers.

From-SVN: r220343

10 years agoDaily bump.
GCC Administrator [Mon, 2 Feb 2015 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220338

10 years agobackport: re PR rtl-optimization/61058 (ICE: RTL check: expected elt 3 type 'B',...
Jakub Jelinek [Sun, 1 Feb 2015 17:37:06 +0000 (18:37 +0100)] 
backport: re PR rtl-optimization/61058 (ICE: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in distance_agu_use_in_bb, at config/i386/i386.c:16740 with __builtin_unreachable())

Backported from mainline
2015-01-27  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/61058
* jump.c (cleanup_barriers): Update basic block boundaries
if BLOCK_FOR_INSN is non-NULL on PREV.

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

From-SVN: r220328

10 years agobackport: re PR middle-end/64766 (internal compiler error: tree check: expected block...
Jakub Jelinek [Sun, 1 Feb 2015 17:36:26 +0000 (18:36 +0100)] 
backport: re PR middle-end/64766 (internal compiler error: tree check: expected block, have error_mark in lower_function_body, at gimple-low.c:122)

Backported from mainline
2015-01-27  Jakub Jelinek  <jakub@redhat.com>

PR c/64766
* c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
of FUNCTION_DECLs with error_mark_node.

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

From-SVN: r220327

10 years agobackport: re PR c/64778 (ICE on invalid code on x86_64-linux-gnu: tree check: expecte...
Jakub Jelinek [Sun, 1 Feb 2015 17:35:40 +0000 (18:35 +0100)] 
backport: re PR c/64778 (ICE on invalid code on x86_64-linux-gnu: tree check: expected class â€˜type’, have â€˜exceptional’ (error_mark) in create_tmp_from_val, at gimplify.c:491)

Backported from mainline
2015-01-26  Jakub Jelinek  <jakub@redhat.com>

PR c/64778
* c-typeck.c (convert_arguments): Return -1 if there are
error_args, even if we've diagnosed too many arguments.

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

From-SVN: r220326

10 years agobackport: re PR middle-end/64421 (Incorrect vector function name generated for log)
Jakub Jelinek [Sun, 1 Feb 2015 17:34:50 +0000 (18:34 +0100)] 
backport: re PR middle-end/64421 (Incorrect vector function name generated for log)

Backported from mainline
2015-01-26  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/64421
* omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
with asterisk, skip the first character.

* gcc.dg/vect/pr64421.c: New test.

From-SVN: r220325

10 years agobackport: rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_QUAD_MEMORY_ATOMIC.
Jakub Jelinek [Sun, 1 Feb 2015 17:33:47 +0000 (18:33 +0100)] 
backport: rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_QUAD_MEMORY_ATOMIC.

Backported from mainline
2015-01-26  Jakub Jelinek  <jakub@redhat.com>

* config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
OPTION_MASK_QUAD_MEMORY_ATOMIC.

From-SVN: r220324

10 years agobackport: re PR rtl-optimization/63637 (CSE on x86 asm()-s no longer working due...
Jakub Jelinek [Sun, 1 Feb 2015 17:33:19 +0000 (18:33 +0100)] 
backport: re PR rtl-optimization/63637 (CSE on x86 asm()-s no longer working due to PR/60663 fix)

Backported from mainline
2015-01-23  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/63637
PR rtl-optimization/60663
* cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
if elt->cost is MAX_COST for ASM_OPERANDS.
(find_sets_in_insn): Fix up comment typo.
(cse_insn): Don't set src_volatile for all non-volatile
ASM_OPERANDS in PARALLELs, but just those with multiple outputs
or with "memory" clobber.  Set elt->cost to MAX_COST
for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
if new_src is ASM_OPERANDS and elt->cost is MAX_COST.

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

From-SVN: r220323

10 years agobackport: re PR debug/64511 (ICE at -O3 with -g enabled on x86_64-linux-gnu)
Jakub Jelinek [Sun, 1 Feb 2015 17:32:18 +0000 (18:32 +0100)] 
backport: re PR debug/64511 (ICE at -O3 with -g enabled on x86_64-linux-gnu)

Backported from mainline
2015-01-23  Jakub Jelinek  <jakub@redhat.com>

PR debug/64511
* dwarf2out.c (struct dw_loc_descr_node): Add chain_next
GTY markup.

From-SVN: r220322

10 years agobackport: re PR debug/64663 (ICE at -O1 and above with -g enabled on x86_64-linux...
Jakub Jelinek [Sun, 1 Feb 2015 17:31:48 +0000 (18:31 +0100)] 
backport: re PR debug/64663 (ICE at -O1 and above with -g enabled on x86_64-linux-gnu)

Backported from mainline
2015-01-20  Jakub Jelinek  <jakub@redhat.com>

PR debug/64663
* dwarf2out.c (decl_piece_node): Don't put bitsize into
mode if bitsize <= 0.
(decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
sizes and positions.

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

From-SVN: r220321

10 years agoDaily bump.
GCC Administrator [Sun, 1 Feb 2015 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220311

10 years agolinux-atomic.c (__kernel_cmpxchg2): Change declaration of oldval and newval to const...
John David Anglin [Sat, 31 Jan 2015 19:48:05 +0000 (19:48 +0000)] 
linux-atomic.c (__kernel_cmpxchg2): Change declaration of oldval and newval to const void *.

* config/pa/linux-atomic.c (__kernel_cmpxchg2): Change declaration of
oldval and newval to const void *.  Fix typo.
(FETCH_AND_OP_2): Use __atomic_load_n to load value.
(FETCH_AND_OP_WORD): Likewise.
(OP_AND_FETCH_WORD): Likewise.
(COMPARE_AND_SWAP_2): Likewise.
(__sync_val_compare_and_swap_4): Likewise.
(__sync_lock_test_and_set_4): Likewise.
(SYNC_LOCK_RELEASE_2): Likewise.
Remove support for long long atomic operations.

From-SVN: r220308

10 years agoDaily bump.
GCC Administrator [Sat, 31 Jan 2015 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220299

10 years agocompiler: Fix -fgo-prefix handling.
Ian Lance Taylor [Fri, 30 Jan 2015 00:36:14 +0000 (00:36 +0000)] 
compiler: Fix -fgo-prefix handling.

There was bug in the fix for PR 61880: it only worked fully
correctly for code compiled with -fgo-pkgpath.  For code that
used -fgo-prefix, or that used neither option, the '.'
separating the prefix and the package name was converted to an
underscore, which did not happen before.  This broke SWIG and
any other code that expected specific symbol names.
Fortunately all code compiled in libgo and all code compiled
by the go tool uses -fgo-pkgpath, so this probably did not
affect very many people.

This is an incomplete fix that does not modify the package
file format, for use on both mainline and the GCC 4.9 branch.
A follow on patch will fully fix the problem.

From-SVN: r220269

10 years agoDaily bump.
GCC Administrator [Fri, 30 Jan 2015 00:17:35 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r220266

10 years agore PR c++/64521 (ICE with -frepo)
Jason Merrill [Thu, 29 Jan 2015 16:47:32 +0000 (11:47 -0500)] 
re PR c++/64521 (ICE with -frepo)

PR c++/64521
* repo.c (repo_emit_p): It's OK for a clone to be extern at this
point.

From-SVN: r220255

10 years agobackport: Add new names for intrinsics.
Ilya Tocar [Thu, 29 Jan 2015 10:55:38 +0000 (10:55 +0000)] 
backport: Add new names for intrinsics.

Backport from mainline
2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>

Add new names for intrinsics.

gcc/
    * config/i386/avx2intrin.h (_mm256_bslli_epi128,
    _mm256_bsrli_epi128): New.
    * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.

testsuite/
    * gcc.target/i386/sse-14.c: Test new intrinsic.
    * gcc.target/i386/sse-22.c: Ditto.

From-SVN: r220239

10 years agoDaily bump.
GCC Administrator [Thu, 29 Jan 2015 00:17:14 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r220226

10 years agore PR c++/64514 (Error in template instantiation in GCC 4.9, works fine in GCC 4.8)
Jason Merrill [Wed, 28 Jan 2015 17:21:06 +0000 (12:21 -0500)] 
re PR c++/64514 (Error in template instantiation in GCC 4.9, works fine in GCC 4.8)

PR c++/64514
* pt.c (coerce_template_parameter_pack): Return NULL for a
zero-length fixed parameter pack with a pack expansion arg.

From-SVN: r220210

10 years agoDaily bump.
GCC Administrator [Wed, 28 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220195

10 years agore PR fortran/62044 (ICE in USE statement with RENAME for extended derived type)
Paul Thomas [Tue, 27 Jan 2015 20:54:49 +0000 (20:54 +0000)] 
re PR fortran/62044 (ICE in USE statement with RENAME for extended derived type)

2015-01-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/62044
* resolve.c (resolve_allocate_expr): If the default initializer
is NULL, keep the original MOLD expression so that the correct
typespec is available.

2015-01-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/62044
* gfortran.dg/allocate_with_mold_1.f90: New test

From-SVN: r220191

10 years agoReally add the following files, missed in r220184
Tobias Burnus [Tue, 27 Jan 2015 19:52:45 +0000 (20:52 +0100)] 
Really add the following files, missed in r220184

2015-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64771
        * gfortran.dg/coarray_36.f: New.
        * gfortran.dg/coarray_37.f90: New.

From-SVN: r220188

10 years agobackport: re PR fortran/64230 (Invalid memory reference in a compiler-generated final...
Janus Weil [Tue, 27 Jan 2015 19:49:55 +0000 (20:49 +0100)] 
backport: re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer for allocatable component)

2015-01-27  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/64230
* gfortran.dg/class_allocate_18.f90: Remove -fsanitize option to
prevent linking errors.

From-SVN: r220187

10 years agore PR fortran/64771 (ICE(segfault) when passing coarrays around; ICE in gfc_zero_size...
Tobias Burnus [Tue, 27 Jan 2015 19:20:04 +0000 (20:20 +0100)] 
re PR fortran/64771 (ICE(segfault) when passing coarrays around; ICE in gfc_zero_size_array in arith.c:1637)

2015-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64771
gcc/fortran/
        * interface.c (check_dummy_characteristics): Fix coarray
        handling.

testsuite/
        * gfortran.dg/coarray_36.f: New.
        * gfortran.dg/coarray_37.f90: New.

From-SVN: r220184

10 years agos390.c (s390_memory_move_cost): Increase costs for memory accesses.
Andreas Krebbel [Tue, 27 Jan 2015 15:37:14 +0000 (15:37 +0000)] 
s390.c (s390_memory_move_cost): Increase costs for memory accesses.

2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_memory_move_cost): Increase costs for
memory accesses.

From-SVN: r220174

10 years agos390.c (s390_register_move_cost): Increase costs for FPR->GPR moves.
Andreas Krebbel [Tue, 27 Jan 2015 15:32:38 +0000 (15:32 +0000)] 
s390.c (s390_register_move_cost): Increase costs for FPR->GPR moves.

2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_register_move_cost): Increase costs for
FPR->GPR moves.

From-SVN: r220173

10 years agoconfigure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
Matthias Klose [Tue, 27 Jan 2015 12:52:10 +0000 (12:52 +0000)] 
configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.

2015-01-27  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
        * configure: Regenerate.

From-SVN: r220166

10 years agoDaily bump.
GCC Administrator [Tue, 27 Jan 2015 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220147

10 years agoconfigure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
Matthias Klose [Mon, 26 Jan 2015 22:56:14 +0000 (22:56 +0000)] 
configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.

2015-01-26  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
        * configure: Regenerate.

From-SVN: r220142

10 years agobackport: re PR target/64795 (too many memory references for `lea')
Uros Bizjak [Mon, 26 Jan 2015 20:12:26 +0000 (21:12 +0100)] 
backport: re PR target/64795 (too many memory references for `lea')

Backport from mainline
2015-01-26  Uros Bizjak  <ubizjak@gmail.com>

PR target/64795
* config/i386/i386.md (*movdi_internal): Also check operand 0
to determine TYPE_LEA operand.
(*movsi_internal): Ditto.

Backport from mainline
2015-01-23  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
alternative 1.

From-SVN: r220132

10 years agobackport: re PR fortran/64230 (Invalid memory reference in a compiler-generated final...
Janus Weil [Mon, 26 Jan 2015 18:53:42 +0000 (19:53 +0100)] 
backport: re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer for allocatable component)

2015-01-26  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/64230
* class.c (finalize_component): New argument 'sub_ns'. Insert code to
check if 'expr' is associated.
(generate_finalization_wrapper): Rename 'ptr' symbols to 'ptr1' and
'ptr2'. Pass 'sub_ns' to finalize_component.

2015-01-26  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/64230
* gfortran.dg/class_allocate_18.f90: New.

From-SVN: r220130

10 years agoconfigure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
Matthias Klose [Mon, 26 Jan 2015 15:23:37 +0000 (15:23 +0000)] 
configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.

libbacktrace/

2015-01-26  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
        * configure: Regenerate.

libquadmath/

2015-01-26  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
        * configure: Regenerate.

From-SVN: r220114

10 years agore PR testsuite/64712 (FAIL: gnat.dg/unchecked_convert1.adb execution test (x86_64...
Eric Botcazou [Mon, 26 Jan 2015 09:56:22 +0000 (09:56 +0000)] 
re PR testsuite/64712 (FAIL: gnat.dg/unchecked_convert1.adb execution test (x86_64/-m32))

PR testsuite/64712
* gnat.dg/unchecked_convert1.adb (Unchecked_Convert1): Initialize A.

From-SVN: r220105

10 years agoDaily bump.
GCC Administrator [Mon, 26 Jan 2015 00:41:07 +0000 (00:41 +0000)] 
Daily bump.

From-SVN: r220100

10 years agoDaily bump.
GCC Administrator [Sun, 25 Jan 2015 00:17:10 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r220088

10 years agobackport: re PR fortran/57023 (Not packing arrays with changing variable used for...
Thomas Koenig [Sat, 24 Jan 2015 12:50:51 +0000 (12:50 +0000)] 
backport: re PR fortran/57023 (Not packing arrays with changing variable used for size)

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

Backport from trunk
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-24  Thomas Koenig  <tkoenig@netcologne.de>

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

From-SVN: r220080

10 years agobackport: re PR fortran/60922 (Memory leak with allocatable CLASS components)
Janus Weil [Sat, 24 Jan 2015 10:11:52 +0000 (11:11 +0100)] 
backport: re PR fortran/60922 (Memory leak with allocatable CLASS components)

2015-01-24  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/60922
* class.c (finalize_component): Apply the check for 'fini_coarray' only
to coarray components.

2015-01-24  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/60922
* gfortran.dg/class_allocate_17.f90: New.

From-SVN: r220078

10 years agoDaily bump.
GCC Administrator [Sat, 24 Jan 2015 00:16:52 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r220072

10 years agore PR middle-end/64734 (ICE at omp lowering)
Jakub Jelinek [Fri, 23 Jan 2015 18:30:51 +0000 (19:30 +0100)] 
re PR middle-end/64734 (ICE at omp lowering)

PR middle-end/64734
* omp-low.c (scan_sharing_clauses): Don't ignore
OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
on target data/update constructs.

* libgomp.c/pr64734.c: New test.

From-SVN: r220054

10 years agobackport: re PR rtl-optimization/64557 (get_addr in true_dependence_1 cannot handle...
Wei Mi [Fri, 23 Jan 2015 17:55:32 +0000 (17:55 +0000)] 
backport: re PR rtl-optimization/64557 (get_addr in true_dependence_1 cannot handle VALUE inside an expr)

        Backported from trunk.
        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: r220051

10 years agoDaily bump.
GCC Administrator [Fri, 23 Jan 2015 00:20:08 +0000 (00:20 +0000)] 
Daily bump.

From-SVN: r220020

10 years agos390.md (atomic code attribute): Fix typo "ior" -> "or".
Andreas Krebbel [Thu, 22 Jan 2015 11:26:16 +0000 (11:26 +0000)] 
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: r219992

10 years agoDaily bump.
GCC Administrator [Thu, 22 Jan 2015 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219979

10 years agobackport: re PR ipa/63970 (gcc-4_9 inlines less funcs than gcc-4_8 because of used_as...
Wei Mi [Wed, 21 Jan 2015 21:56:14 +0000 (21:56 +0000)] 
backport: re PR ipa/63970 (gcc-4_9 inlines less funcs than gcc-4_8 because of used_as_abstract_origin flag)

        Backported from trunk.
        2014-11-22  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/63970
        * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline clones
        as having abstract origin used.
        * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract origin check.
        (clone_inlined_nodes): Copy abstract originflag.
        * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get abstract origin node.

From-SVN: r219972

10 years agoAvoid misaligned atomic operations
Andrew Waterman [Wed, 21 Jan 2015 17:18:27 +0000 (17:18 +0000)] 
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: r219955

10 years agoDaily bump.
GCC Administrator [Wed, 21 Jan 2015 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219924

10 years agobackport: nios2.c (nios2_asm_file_end): Implement TARGET_ASM_FILE_END hook for adding...
Chung-Lin Tang [Tue, 20 Jan 2015 14:59:59 +0000 (14:59 +0000)] 
backport: nios2.c (nios2_asm_file_end): Implement TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when needed.

2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>

Backport from mainline
gcc/
* config/nios2/nios2.c (nios2_asm_file_end): Implement
TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
needed.
(TARGET_ASM_FILE_END): Define.

Backport from mainline
libgcc/
* config/nios2/linux-unwind.h (nios2_fallback_frame_state):
Update rt_sigframe format and address for current Nios II
Linux conventions.

From-SVN: r219899

10 years agobackport: re PR c/61553 (__atomic_store with non-pointer arg ICE)
Marek Polacek [Tue, 20 Jan 2015 14:17:51 +0000 (14:17 +0000)] 
backport: re PR c/61553 (__atomic_store with non-pointer arg ICE)

Backport from mainline
2014-06-23  Marek Polacek  <polacek@redhat.com>

PR c/61553
* c-common.c (get_atomic_generic_size): Don't segfault if the
type doesn't have a size.

* c-c++-common/pr61553.c: New test.

From-SVN: r219895

10 years agoDaily bump.
GCC Administrator [Tue, 20 Jan 2015 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219873

10 years agore PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access...
Tim Shen [Mon, 19 Jan 2015 23:12:37 +0000 (23:12 +0000)] 
re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)

PR libstdc++/64649
Backported from mainline
2015-01-19  Tim Shen  <timshen@google.com>

* include/bits/regex.tcc (regex_traits<>::lookup_collatename,
regex_traits<>::lookup_classname): Support forward iterators.
* testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
* testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.

From-SVN: r219869

10 years agore PR libstdc++/64584 (basic_regex::assign breaks *this if it throws regex_error)
Tim Shen [Mon, 19 Jan 2015 23:09:07 +0000 (23:09 +0000)] 
re PR libstdc++/64584 (basic_regex::assign breaks *this if it throws regex_error)

PR libstdc++/64584
PR libstdc++/64585
* include/bits/regex.h (basic_regex<>::basic_regex,
basic_regex<>::assign, basic_regex<>::imbue,
basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
imbuing basic_regex; Make assign() transactional against exception.
* testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
* testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.

From-SVN: r219868

10 years agoDaily bump.
GCC Administrator [Mon, 19 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219829

10 years agore PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the...
Jonathan Wakely [Sun, 18 Jan 2015 16:29:57 +0000 (16:29 +0000)] 
re PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the-end iterator)

PR libstdc++/64646
* include/bits/stl_algo.h (__is_permutation): Also test for reaching
end of the second range.
* testsuite/25_algorithms/is_permutation/64646.cc: New.

From-SVN: r219820

10 years agoDaily bump.
GCC Administrator [Sun, 18 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219810

10 years agoDaily bump.
GCC Administrator [Sat, 17 Jan 2015 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219783

10 years agotsan_barrier.h: New.
Bernd Edlinger [Fri, 16 Jan 2015 05:36:22 +0000 (05:36 +0000)] 
tsan_barrier.h: New.

2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/tsan/tsan_barrier.h: New.
        * c-c++-common/tsan/atomic_stack.c: Reworked to not depend on sleep.
        * c-c++-common/tsan/fd_pipe_race.c: Likewise.
        * c-c++-common/tsan/mutexset1.c: Likewise.
        * c-c++-common/tsan/race_on_barrier.c: Likewise.
        * c-c++-common/tsan/race_on_mutex.c: Likewise.
        * c-c++-common/tsan/race_on_mutex2.c: Likewise.
        * c-c++-common/tsan/simple_race.c: Likewise.
        * c-c++-common/tsan/simple_stack.c: Likewise.
        * c-c++-common/tsan/sleep_sync.c: Likewise.
        * c-c++-common/tsan/tiny_race.c: Likewise.
        * c-c++-common/tsan/tls_race.c: Likewise.
        * c-c++-common/tsan/write_in_reader_lock.c: Likewise.
        * g++.dg/tsan/atomic_free.C: Likewise.
        * g++.dg/tsan/atomic_free2.C: Likewise.
        * g++.dg/tsan/cond_race.C: Likewise.
        * g++.dg/tsan/tsan_barrier.h: Copied from c-c++-common/tsan.

From-SVN: r219708

10 years agoDaily bump.
GCC Administrator [Fri, 16 Jan 2015 00:16:38 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219698

10 years agobackport: re PR lto/63704 (-flto internal compiler error: in mems_in_disjoint_alias_s...
Martin Liska [Thu, 15 Jan 2015 16:03:05 +0000 (17:03 +0100)] 
backport: re PR lto/63704 (-flto internal compiler error: in mems_in_disjoint_alias_sets_p, at alias.c:398)

Backport from mainline

        2014-11-27  Richard Biener  <rguenther@suse.de>

PR middle-end/63704
* alias.c (mems_in_disjoint_alias_sets_p): Remove assert
and instead return false when !fstrict-aliasing.

From-SVN: r219664