]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
9 years agore PR fortran/70040 (ICE in gimplify.c with deferred-length strings)
Thomas Koenig [Mon, 8 Aug 2016 06:29:16 +0000 (06:29 +0000)] 
re PR fortran/70040 (ICE in gimplify.c with deferred-length strings)

2016-08-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/70040
Backport from trunk
* gfortran.dg/pr70040.f90:  New testcase.

From-SVN: r239229

9 years agoDaily bump.
GCC Administrator [Mon, 8 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239226

9 years agoDaily bump.
GCC Administrator [Sun, 7 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239214

9 years agoUse correct value category in std::function constraint
Jonathan Wakely [Sat, 6 Aug 2016 12:21:55 +0000 (13:21 +0100)] 
Use correct value category in std::function constraint

* include/std/functional (function::_Callable): Use lvalue in
result_of expression.
* testsuite/20_util/function/cons/refqual.cc: New test.

From-SVN: r239208

9 years agoMove allocator in RB tree move constructors
Jonathan Wakely [Sat, 6 Aug 2016 12:21:51 +0000 (13:21 +0100)] 
Move allocator in RB tree move constructors

Backport from mainline
2016-07-22  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71964
* include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&)): Move allocator.
* testsuite/23_containers/set/allocator/71964.cc: New test.

From-SVN: r239207

9 years agoFix std::wstring allocator tests
Jonathan Wakely [Sat, 6 Aug 2016 12:21:46 +0000 (13:21 +0100)] 
Fix std::wstring allocator tests

* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
Likewise.

From-SVN: r239206

9 years agoFix construction of std::function from null pointer-to-member
Jonathan Wakely [Sat, 6 Aug 2016 12:21:42 +0000 (13:21 +0100)] 
Fix construction of std::function from null pointer-to-member

PR libstdc++/69293
* include/std/functional (_Function_base::_M_not_empty_function):
Change overloads for pointers to take arguments by value.
* testsuite/20_util/function/cons/57465.cc: Add tests for
pointer-to-member cases.

From-SVN: r239205

9 years agoChange libstdc++ manual to refer to release not trunk
Jonathan Wakely [Sat, 6 Aug 2016 12:21:38 +0000 (13:21 +0100)] 
Change libstdc++ manual to refer to release not trunk

* doc/xml/manual/status_cxx2011.xml: Change "mainline GCC SVN" to
refer to the release series.
* doc/xml/manual/status_cxx2014.xml: Likewise.
* doc/html/manual/status.xml: Regenerate.

From-SVN: r239204

9 years agoImprove comments on check_v3_target_filesystem_ts
Jonathan Wakely [Sat, 6 Aug 2016 12:21:33 +0000 (13:21 +0100)] 
Improve comments on check_v3_target_filesystem_ts

* testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve
comments.

From-SVN: r239203

9 years agoDaily bump.
GCC Administrator [Sat, 6 Aug 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239186

9 years agore PR c++/68724 (ice in unify, at cp/pt.c:19902)
Nathan Sidwell [Fri, 5 Aug 2016 19:58:36 +0000 (19:58 +0000)] 
re PR c++/68724 (ice in unify, at cp/pt.c:19902)

PR c++/68724
* pt.c (unify): TRAIT_EXPR is an expr.

PR c++/68724
* g++.dg/cpp0x/pr68724.C: New.

From-SVN: r239177

9 years agoDaily bump.
GCC Administrator [Fri, 5 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239158

9 years agore PR target/72805 (AVX512: invalid code generation involving masks)
Uros Bizjak [Thu, 4 Aug 2016 21:25:33 +0000 (23:25 +0200)] 
re PR target/72805 (AVX512: invalid code generation involving masks)

PR target/72805
* config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
Cast builtin function result to __mmask16 instead of __mmask8.
(_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
(_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
(_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.

From-SVN: r239155

9 years agoDaily bump.
GCC Administrator [Thu, 4 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239110

9 years agoDaily bump.
GCC Administrator [Wed, 3 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239006

9 years agoSupport using -flto with libstdc++ testsuite
Jonathan Wakely [Tue, 2 Aug 2016 09:53:45 +0000 (10:53 +0100)] 
Support using -flto with libstdc++ testsuite

* testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto
to additional flags for compiling libtestc++.a objects.

From-SVN: r238980

9 years agoDaily bump.
GCC Administrator [Tue, 2 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238974

9 years agobackport: re PR target/72767 ([avr] Some branches report too small insn length)
Georg-Johann Lay [Mon, 1 Aug 2016 12:44:18 +0000 (12:44 +0000)] 
backport: re PR target/72767 ([avr] Some branches report too small insn length)

Backport from 2016-08-01 trunk r238948.
PR target/72767
* config/avr/avr.md (length) [branch]: Correct insn length
attribute for forward branches.

From-SVN: r238950

9 years agoDaily bump.
GCC Administrator [Mon, 1 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238931

9 years agoDaily bump.
GCC Administrator [Sun, 31 Jul 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238912

9 years agoDaily bump.
GCC Administrator [Sat, 30 Jul 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238900

9 years agoi386.c (ix86_expand_args_builtin): Add break.
Marek Polacek [Fri, 29 Jul 2016 12:42:55 +0000 (12:42 +0000)] 
i386.c (ix86_expand_args_builtin): Add break.

* config/i386/i386.c (ix86_expand_args_builtin): Add break.
(ix86_expand_round_builtin): Likewise.

From-SVN: r238866

9 years agore PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
Marek Polacek [Fri, 29 Jul 2016 11:26:46 +0000 (11:26 +0000)] 
re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)

PR c/7652
* config/rs6000/rs6000.c (altivec_expand_ld_builtin): Likewise.
(altivec_expand_st_builtin): Likewise.

From-SVN: r238858

9 years ago[multiple changes]
Paul Thomas [Fri, 29 Jul 2016 05:16:05 +0000 (05:16 +0000)] 
[multiple changes]

2016-07-29  Steven G. Kargl  <kargl@gcc.gnu.org>
    Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71883
* frontend-passes.c (gfc_run_passes): Bail out if there are any
errors.
* error.c (gfc_internal_error): If there are any errors in the
buffer, exit with EXIT_FAILURE.

2016-07-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/71883
* gfortran.dg/pr71883.f90 : New test.

From-SVN: r238848

9 years agoDaily bump.
GCC Administrator [Fri, 29 Jul 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238843

9 years agoDaily bump.
GCC Administrator [Thu, 28 Jul 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238804

9 years agors6000: Fix logic for when to emit .machine (PR71216)
Segher Boessenkool [Wed, 27 Jul 2016 16:14:12 +0000 (18:14 +0200)] 
rs6000: Fix logic for when to emit .machine (PR71216)

The current logic determining whether to use .machine in the generated
asm code puts it there if the compiler is not configured with a default
target cpu, _or_ no -mcpu= was given on the command line.  It should
be "and" instead.

PR target/71216
* config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
when to emit a ".machine" pseudo-op.

From-SVN: r238789

9 years agoDaily bump.
GCC Administrator [Wed, 27 Jul 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238776

9 years agoPR c++/71833 - member template with two parameter packs
Jason Merrill [Tue, 26 Jul 2016 20:29:12 +0000 (16:29 -0400)] 
PR c++/71833 - member template with two parameter packs

* pt.c (coerce_template_parameter_pack): Fix logic for
pack index.

From-SVN: r238765

9 years ago[RS6000] push_secondary_reload ICE
Alan Modra [Tue, 26 Jul 2016 10:29:32 +0000 (19:59 +0930)] 
[RS6000] push_secondary_reload ICE

PR target/72103
* config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
sri->t_icode.

From-SVN: r238746

9 years agoDaily bump.
GCC Administrator [Tue, 26 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238739

9 years agoDaily bump.
GCC Administrator [Mon, 25 Jul 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238698

9 years agoDaily bump.
GCC Administrator [Sun, 24 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238678

9 years agoDaily bump.
GCC Administrator [Sat, 23 Jul 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238672

9 years agobackport: re PR fortran/71807 (Internal compiler error with NULL() reference in struc...
Andre Vehreschild [Fri, 22 Jul 2016 15:21:10 +0000 (17:21 +0200)] 
backport: re PR fortran/71807 (Internal compiler error with NULL() reference in structure constructor)

gcc/fortran/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

Backported from trunk:
PR fortran/71807
* trans-expr.c (gfc_trans_subcomponent_assign): Special casing
when allocatable component is set to null() in initializer.

gcc/testsuite/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

Backported from trunk:
PR fortran/71807
* gfortran.dg/null_9.f90: New test.

From-SVN: r238650

9 years agobackport: re PR fortran/70842 (internal compiler error with character members within...
Andre Vehreschild [Fri, 22 Jul 2016 14:12:59 +0000 (16:12 +0200)] 
backport: re PR fortran/70842 (internal compiler error with character members within a polymorphic pointer)

gcc/testsuite/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

Backport from trunk:
PR fortran/70842
* gfortran.dg/select_type_35.f03: New test.

gcc/fortran/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

Backport from trunk:
PR fortran/70842
* simplify.c (gfc_simplify_len): Only for unlimited polymorphic
types replace the expression's _data ref with a _len ref.

From-SVN: r238644

9 years agoPR c++/69223 - ICE with deduced template return type.
Jason Merrill [Fri, 22 Jul 2016 03:51:22 +0000 (23:51 -0400)] 
PR c++/69223 - ICE with deduced template return type.

* semantics.c (apply_deduced_return_type): Call
complete_type_or_else before building the new RESULT_DECL.

From-SVN: r238630

9 years agoPR c++/71630 - extern variable template
Jason Merrill [Fri, 22 Jul 2016 03:51:15 +0000 (23:51 -0400)] 
PR c++/71630 - extern variable template

* pt.c (instantiate_decl): Fix pattern_defined for namespace scope
variable templates.

From-SVN: r238629

9 years agoPR c++/71913 - missing copy elision with new.
Jason Merrill [Fri, 22 Jul 2016 03:51:07 +0000 (23:51 -0400)] 
PR c++/71913 - missing copy elision with new.

* call.c (unsafe_copy_elision_p): It's OK to elide when
initializing an unknown object.

From-SVN: r238628

9 years agoDaily bump.
GCC Administrator [Fri, 22 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238615

9 years agoDaily bump.
GCC Administrator [Thu, 21 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238555

9 years agore PR c++/71909 (g++ accepts an unreachable function catch block that lacks a corresp...
Jakub Jelinek [Wed, 20 Jul 2016 14:16:40 +0000 (16:16 +0200)] 
re PR c++/71909 (g++ accepts an unreachable function catch block that lacks a corresponding try)

PR c++/71909
* parser.c (cp_parser_save_member_function_body): Consume
__transaction_relaxed or __transaction_atomic with optional
attribute.  Only skip catch with block if try keyword is seen.

* g++.dg/parse/pr71909.C: New test.
* g++.dg/tm/pr71909.C: New test.

From-SVN: r238526

9 years agore PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)
Martin Jambor [Wed, 20 Jul 2016 13:31:19 +0000 (15:31 +0200)] 
re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)

Fix PR fortran/71688

2016-07-20  Martin Jambor  <mjambor@suse.cz>

        PR fortran/71688
        * trans-decl.c (gfc_generate_function_code): Use get_create rather
        than create to get a call graph node.

testsuite/
        * gfortran.dg/pr71688.f90: New test.

From-SVN: r238516

9 years agoDaily bump.
GCC Administrator [Wed, 20 Jul 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238504

9 years agore PR middle-end/71874 (memmove works wrong)
Jakub Jelinek [Tue, 19 Jul 2016 17:39:26 +0000 (19:39 +0200)] 
re PR middle-end/71874 (memmove works wrong)

PR middle-end/71874
* gimple-fold.c (fold_builtin_memory_op): Use
get_addr_base_and_unit_offset instead of get_ref_base_and_extent.

* g++.dg/torture/pr71874.C: New test.

From-SVN: r238486

9 years agolibstdc++/71320 Add or remove file permissions correctly
Jonathan Wakely [Tue, 19 Jul 2016 17:17:05 +0000 (18:17 +0100)] 
libstdc++/71320 Add or remove file permissions correctly

Backport from mainline
2016-06-06  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71320
* src/filesystem/ops.cc (permissions(const path&, perms, error_code&)):
Add or remove permissions according to perms argument.
* testsuite/experimental/filesystem/operations/permissions.cc: New
test.

From-SVN: r238483

9 years agoFix compiling large files
Martin Liska [Tue, 19 Jul 2016 13:35:43 +0000 (15:35 +0200)] 
Fix compiling large files

Backported from mainline
2016-03-15  Richard Henderson  <rth@redhat.com>

* line-map.c (new_linemap): Make alloc_size a size_t.

From-SVN: r238474

9 years agobackport: re PR c++/71871 (ICE on mixing templates and vector extensions ternary...
Jakub Jelinek [Tue, 19 Jul 2016 09:25:10 +0000 (11:25 +0200)] 
backport: re PR c++/71871 (ICE on mixing templates and vector extensions ternary operator)

Backported from mainline
2016-07-18  Jakub Jelinek  <jakub@redhat.com>

PR c++/71871
* typeck.c (build_x_conditional_expr): Revert the 2012-10-25 change.

* g++.dg/ext/vector31.C: New test.

From-SVN: r238464

9 years agobackport: re PR middle-end/71758 (ICE in verify_gimple_in_cfg, at tree-cfg.c:5212)
Jakub Jelinek [Tue, 19 Jul 2016 09:02:11 +0000 (11:02 +0200)] 
backport: re PR middle-end/71758 (ICE in verify_gimple_in_cfg, at tree-cfg.c:5212)

Backported from mainline
2016-07-11  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71758
* omp-low.c (expand_omp_target): Gimplify device.

* c-c++-common/gomp/pr71758.c: New test.
* gfortran.dg/gomp/pr71758.f90: New test.

From-SVN: r238462

9 years agoDaily bump.
GCC Administrator [Tue, 19 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238451

9 years agore PR rtl-optimization/71634 (Invalid write with in mark_loops_for_removal (ira-build...
Martin Liska [Mon, 18 Jul 2016 12:59:10 +0000 (14:59 +0200)] 
re PR rtl-optimization/71634 (Invalid write with in mark_loops_for_removal (ira-build.c:2256) with --param ira-max-loops-num=0)

Fix PR rtl-optimization/71634

Backported from mainline
2016-07-12  Martin Liska  <mliska@suse.cz>

* ira-build.c (mark_loops_for_removal): Properly iterate
loops.

From-SVN: r238430

9 years agoDaily bump.
GCC Administrator [Mon, 18 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238422

9 years agoDaily bump.
GCC Administrator [Sun, 17 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238417

9 years agobackport: re PR fortran/71764 (ICE in gfc_trans_structure_assign)
Jerry DeLisle [Sat, 16 Jul 2016 05:10:10 +0000 (05:10 +0000)] 
backport: re PR fortran/71764 (ICE in gfc_trans_structure_assign)

2016-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk:
PR fortran/71764
* trans-expr.c (gfc_trans_structure_assign): Remove assert.

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

From-SVN: r238411

9 years agoDaily bump.
GCC Administrator [Sat, 16 Jul 2016 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238407

9 years agoDaily bump.
GCC Administrator [Fri, 15 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238360

9 years agoDaily bump.
GCC Administrator [Thu, 14 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238317

9 years agobackport: re PR fortran/71623 (Segfault when allocating deferred-length characters...
Andre Vehreschild [Wed, 13 Jul 2016 17:30:58 +0000 (19:30 +0200)] 
backport: re PR fortran/71623 (Segfault when allocating deferred-length characters to size of a pointer)

gcc/fortran/ChangeLog:

2016-07-13  Andre Vehreschild  <vehre@gcc.gnu.org>

Backport from trunk:
PR fortran/71623
* trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
in allocate to parent block.

gcc/testsuite/ChangeLog:

2016-07-13  Andre Vehreschild  <vehre@gcc.gnu.org>

Backport from trunk:
PR fortran/71623
* gfortran.dg/deferred_character_18.f90: New test.

From-SVN: r238308

9 years agoDaily bump.
GCC Administrator [Wed, 13 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238275

9 years agobackport: re PR target/70098 (PowerPC64: eigen hits ICE following invalid register...
Segher Boessenkool [Tue, 12 Jul 2016 15:13:47 +0000 (17:13 +0200)] 
backport: re PR target/70098 (PowerPC64: eigen hits ICE following invalid register assignment)

Backport from mainline
2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/70098
PR target/71763
* config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
*ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
constraint.

gcc/testsuite/
PR target/70098
PR target/71763
* gcc.target/powerpc/pr71763.c: New file.

From-SVN: r238251

9 years agoImplement N4258 noexcept for std::basic_string.
Jonathan Wakely [Tue, 12 Jul 2016 10:56:11 +0000 (11:56 +0100)] 
Implement N4258 noexcept for std::basic_string.

Backport from mainline
2015-10-02  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
explicit instantiation with check for new ABI.
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
Likewise. Use wchar_t as char_type.

Backport from mainline
2015-09-11  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/58265
* doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
* doc/html/manual/bugs.html: Regenerate.
* include/bits/basic_string.h (basic_string): Implement N4258. Add
correct exception-specifications and propagate allocators correctly.
* include/bits/basic_string.tcc (basic_string::swap): Propagate
allocators correctly.
* include/debug/string (__gnu_debug::basic_string): Add correct
exceptions-specifications and allcoator-extended constructors.
* testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
New.
* testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
* testsuite/21_strings/basic_string/allocator/char/move.cc: New.
* testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
New.
* testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
* testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
New.
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
New.
* testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
* testsuite/util/testsuite_allocator.h (tracker_allocator): Define
defaulted assignment operators.

From-SVN: r238241

9 years agoDaily bump.
GCC Administrator [Tue, 12 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238235

9 years agobackport: re PR fortran/71783 (ICE on valid code in gimplify_var_or_parm_decl at...
Thomas Koenig [Mon, 11 Jul 2016 20:08:51 +0000 (20:08 +0000)] 
backport: re PR fortran/71783 (ICE on valid code in gimplify_var_or_parm_decl at gimplify.c:1801)

2016-07-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk:
PR fortran/71783
* frontend-passes.c (create_var):  Always allocate a charlen
for character variables.

2016-07-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk:
PR fortran/71783
* gfortran.dg/dependency_46.f90:  New test.

From-SVN: r238225

9 years agoDaily bump.
GCC Administrator [Mon, 11 Jul 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238200

9 years agoDaily bump.
GCC Administrator [Sun, 10 Jul 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238194

9 years agoDaily bump.
GCC Administrator [Sat, 9 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238189

9 years agobackport: parse.c (matcha): Define.
Cesar Philippidis [Fri, 8 Jul 2016 21:58:57 +0000 (14:58 -0700)] 
backport: parse.c (matcha): Define.

Backport from trunk:
2016-07-08  Cesar Philippidis  <cesar@codesourcery.com>

gcc/fortran/
* parse.c (matcha): Define.
(decode_oacc_directive): Add spec_only local var and set it.  Use
matcha to parse acc directives except for routine and declare.  Return
ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
matched.

gcc/testsuite/
* gfortran.dg/goacc/pr71704.f90: New test.

From-SVN: r238184

9 years agoDo not consider COMPLEX_TYPE as fold_convertible_p
Martin Liska [Fri, 8 Jul 2016 20:21:02 +0000 (22:21 +0200)] 
Do not consider COMPLEX_TYPE as fold_convertible_p

Backported from mainline
2016-07-08  Martin Liska  <mliska@suse.cz>

PR middle-end/71606
* fold-const.c (fold_convertible_p): As COMPLEX_TYPE
folding produces SAVE_EXPRs, thus return false for the type.
Backported from mainline
2016-07-08  Martin Liska  <mliska@suse.cz>

* gcc.dg/torture/pr71606.c: New test.

From-SVN: r238173

9 years agoUpdate LWG issues lists and implementation status
Jonathan Wakely [Fri, 8 Jul 2016 13:29:06 +0000 (14:29 +0100)] 
Update LWG issues lists and implementation status

Backport from mainline
2015-06-02  Jonathan Wakely  <jwakely@redhat.com>

* doc/html/ext/lwg-active.html: Update to R93.
* doc/html/ext/lwg-closed.html: Likewise.
* doc/html/ext/lwg-defects.html: Likewise.
* doc/html/manual/*: Regenerate.
* doc/xml/manual/intro.xml: Document status of several DRs.

From-SVN: r238162

9 years agoDaily bump.
GCC Administrator [Fri, 8 Jul 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238153

9 years agors6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)
Segher Boessenkool [Thu, 7 Jul 2016 17:08:00 +0000 (19:08 +0200)] 
rs6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)

This testcase currently fails on GCC 5, for LE only.  Since it is fixed
for 6 and later, and backporting the relevant code is rather invasive,
let's just weaken the testcase for GCC 5 instead.

       PR target/69019
       * gcc.target/powerpc/ti_math1.c: Allow addze as well as adde.

From-SVN: r238121

9 years agobackport: re PR c/68062 (ICE when comparing vectors)
Jakub Jelinek [Thu, 7 Jul 2016 12:59:39 +0000 (14:59 +0200)] 
backport: re PR c/68062 (ICE when comparing vectors)

Backported from mainline
2016-03-02  Jakub Jelinek  <jakub@redhat.com>

PR c/68062
* c-c++-common/vector-compare-4.c: Add -Wno-psabi to dg-options.

From-SVN: r238108

9 years agobackport: vector-compare-4.c: Prune "non-standard ABI extension" warning.
Jakub Jelinek [Thu, 7 Jul 2016 12:58:43 +0000 (14:58 +0200)] 
backport: vector-compare-4.c: Prune "non-standard ABI extension" warning.

Backported from mainline
2016-02-02  Segher Boessenkool  <segher@kernel.crashing.org>

* c-c++-common/vector-compare-4.c: Prune "non-standard ABI extension"
warning.

From-SVN: r238105

9 years agobackport: re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition...
Jakub Jelinek [Thu, 7 Jul 2016 12:51:01 +0000 (14:51 +0200)] 
backport: re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition from 4.9.0 -> 4.9.1, using OpenMP.)

Backported from mainline
2016-07-01  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71717
* trans-openmp.c (gfc_omp_privatize_by_reference): Return false
for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.

* testsuite/libgomp.fortran/associate3.f90: New test.

From-SVN: r238104

9 years agobackport: re PR fortran/71704 (ICE with -fopenmp and some omp constructs)
Jakub Jelinek [Thu, 7 Jul 2016 12:50:01 +0000 (14:50 +0200)] 
backport: re PR fortran/71704 (ICE with -fopenmp and some omp constructs)

Backported from mainline
2016-06-30  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71704
* parse.c (matchs, matcho): Move right before decode_omp_directive.
If spec_only, only gfc_match the keyword and if successful, goto
do_spec_only.
(matchds, matchdo): Define.
(decode_omp_directive): Add spec_only local var and set it.
Use matchds or matchdo macros instead of matchs or matcho
for declare target, declare simd, declare reduction and threadprivate
directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
directive could be matched.
(next_statement): For ST_GET_FCN_CHARACTERISTICS restore
gfc_current_locus from old_locus even if there is no label.

* gfortran.dg/gomp/pr71704.f90: New test.

From-SVN: r238103

9 years agobackport: re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)
Jakub Jelinek [Thu, 7 Jul 2016 12:49:04 +0000 (14:49 +0200)] 
backport: re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)

Backported from mainline
2016-06-30  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71705
* trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
decls in to/from clauses.

* gfortran.dg/gomp/pr71705.f90: New test.

From-SVN: r238102

9 years agobackport: re PR middle-end/71626 (ICE at -O1 and above on x86_64-linux-gnu (in output...
Jakub Jelinek [Thu, 7 Jul 2016 12:48:16 +0000 (14:48 +0200)] 
backport: re PR middle-end/71626 (ICE at -O1 and above on x86_64-linux-gnu (in output_constant_pool_2, at varasm.c:3837))

Backported from mainline
2016-06-28  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71626
* config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
a constant, force its SUBREG_REG into memory or register instead
of whole op1.

* gcc.c-torture/execute/pr71626-1.c: New test.
* gcc.c-torture/execute/pr71626-2.c: New test.

From-SVN: r238101

9 years agobackport: re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64...
Jakub Jelinek [Thu, 7 Jul 2016 12:47:20 +0000 (14:47 +0200)] 
backport: re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in execute_todo, at passes.c:2009)

Backported from mainline
2016-06-21  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/71588
* tree-ssa-strlen.c (valid_builtin_call): New function.
(adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
it.

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

From-SVN: r238100

9 years agobackport: re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninit...
Jakub Jelinek [Thu, 7 Jul 2016 12:46:33 +0000 (14:46 +0200)] 
backport: re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault))

Backported from mainline
2016-06-20  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71581
* tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
for conversion of scalar user var to complex type and use the
underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
punt.

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

From-SVN: r238099

9 years agobackport: re PR c++/71528 (multiple extern reference declarations produce uninitializ...
Jakub Jelinek [Thu, 7 Jul 2016 12:45:44 +0000 (14:45 +0200)] 
backport: re PR c++/71528 (multiple extern reference declarations produce uninitialized access)

Backported from mainline
2016-06-14  Jakub Jelinek  <jakub@redhat.com>

PR c++/71528
* decl.c (duplicate_decls): For DECL_INITIALIZED_P non-external
olddecl vars, preserve their TREE_READONLY bit.

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

From-SVN: r238098

9 years agobackport: re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared...
Jakub Jelinek [Thu, 7 Jul 2016 12:44:33 +0000 (14:44 +0200)] 
backport: re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus))

Backported from mainline
2016-06-14  Jakub Jelinek  <jakub@redhat.com>

PR c++/71516
* decl.c (complete_vars): Handle gracefully type == error_mark_node.

* g++.dg/init/pr71516.C: New test.

From-SVN: r238097

9 years agobackport: re PR middle-end/71494 (label as value in nested function)
Jakub Jelinek [Thu, 7 Jul 2016 12:43:50 +0000 (14:43 +0200)] 
backport: re PR middle-end/71494 (label as value in nested function)

Backported from mainline
2016-06-10  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71494
* tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
without LABEL_DECL, set *handled_ops_p to false instead of true.

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

From-SVN: r238096

9 years agobackport: re PR sanitizer/71498 (ubsan bounds checking influenced by surrounding...
Jakub Jelinek [Thu, 7 Jul 2016 12:42:43 +0000 (14:42 +0200)] 
backport: re PR sanitizer/71498 (ubsan bounds checking influenced by surrounding code)

Backported from mainline
2016-06-13  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/71498
* c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.

* c-c++-common/ubsan/bounds-13.c: New test.

From-SVN: r238095

9 years agobackport: re PR c++/70641 (ICE on valid code at -O1 and above on x86_64-linux-gnu...
Jakub Jelinek [Thu, 7 Jul 2016 12:41:25 +0000 (14:41 +0200)] 
backport: re PR c++/70641 (ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR c++/70641
* ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
eh edges have been purged.

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

From-SVN: r238094

9 years agobackport: re PR target/70633 (ICE on valid code at -Os (in 32-bit mode) on x86_64...
Jakub Jelinek [Thu, 7 Jul 2016 12:40:43 +0000 (14:40 +0200)] 
backport: re PR target/70633 (ICE on valid code at -Os (in 32-bit mode) on x86_64-linux-gnu: output_operand: invalid expression as operand)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/70633
* gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
gimplification turns some element into non-constant.

* gcc.c-torture/compile/pr70633.c: New test.

From-SVN: r238093

9 years agobackport: re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025)
Jakub Jelinek [Thu, 7 Jul 2016 12:39:40 +0000 (14:39 +0200)] 
backport: re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR debug/70628
* explow.c (convert_memory_address_addr_space_1): Formatting fix.

PR debug/70628
* rtl.h (convert_memory_address_addr_space_1): New prototype.
* explow.c (convert_memory_address_addr_space_1): No longer static,
add NO_EMIT argument and don't call convert_modes if true, pass
it down recursively, remove break after return.
(convert_memory_address_addr_space): Adjust caller.
* simplify-rtx.c (simplify_unary_operation_1): Call
convert_memory_address_addr_space_1 instead of convert_memory_address,
if it returns NULL, don't simplify.

* gcc.dg/torture/pr70628.c: New test.

From-SVN: r238092

9 years agobackport: re PR target/70574 (wrong code with -mavx2, read of partially initialised...
Jakub Jelinek [Thu, 7 Jul 2016 12:34:07 +0000 (14:34 +0200)] 
backport: re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)

Backported from mainline
2016-04-08  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/70574
* fwprop.c (forward_propagate_and_simplify): Don't add
REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
(try_fwprop_subst): Don't add REG_EQUAL note if there are any
paradoxical subregs within *loc.

* gcc.target/i386/avx2-pr70574.c: New test.

From-SVN: r238091

9 years agobackport: re PR c++/70336 (Incorrect Wconversion warning)
Jakub Jelinek [Thu, 7 Jul 2016 12:33:10 +0000 (14:33 +0200)] 
backport: re PR c++/70336 (Incorrect Wconversion warning)

Backported from mainline
2016-04-05  Jakub Jelinek  <jakub@redhat.com>

PR c++/70336
* match.pd (nested int casts): Limit to GIMPLE.

* c-c++-common/pr70336.c: New test.
* gcc.dg/torture/builtin-isinf_sign-1.c (foo): Guard tests
no longer optimized away at -O0 with #ifndef __OPTIMIZE__.

From-SVN: r238090

9 years agobackport: [multiple changes]
Richard Biener [Thu, 7 Jul 2016 10:33:01 +0000 (10:33 +0000)] 
backport: [multiple changes]

2016-07-07  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-06-07  Richard Biener  <rguenther@suse.de>

PR middle-end/71423
* match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
for signed ops.

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

2016-06-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71452
* tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
type used for the SSA rewrite has enough precision to cover
the dynamic type of the location.

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

2016-06-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71522
* tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
copying into float copying.

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

From-SVN: r238084

9 years agoDaily bump.
GCC Administrator [Thu, 7 Jul 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238071

9 years agoDaily bump.
GCC Administrator [Wed, 6 Jul 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238027

9 years agore PR c++/71214 (Typo in feature test macro for rvalue references)
Markus Trippelsdorf [Tue, 5 Jul 2016 17:58:35 +0000 (17:58 +0000)] 
re PR c++/71214 (Typo in feature test macro for rvalue references)

Fix PR c++/71214

 PR c++/71214
* c-cppbuiltin.c (c_cpp_builtins): Define * __cpp_rvalue_references.

From-SVN: r238020

9 years agoDaily bump.
GCC Administrator [Tue, 5 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237996

9 years agobackport: re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory...
Ville Voutilainen [Mon, 4 Jul 2016 13:52:21 +0000 (16:52 +0300)] 
backport: re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory contents recursively)

Backport from mainline
        2016-07-04  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/71313
* src/filesystem/ops.cc (remove_all(const path&, error_code&)):
Call remove_all for children of a directory.
* testsuite/experimental/filesystem/operations/create_directories.cc:
Adjust.

From-SVN: r237981

9 years agoDaily bump.
GCC Administrator [Mon, 4 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237952

9 years agoDaily bump.
GCC Administrator [Sun, 3 Jul 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237947

9 years agoDaily bump.
GCC Administrator [Sat, 2 Jul 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237934

9 years agoarm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.
Eric Botcazou [Fri, 1 Jul 2016 07:41:01 +0000 (07:41 +0000)] 
arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.

* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
for NULL decl.

From-SVN: r237905

9 years agoDaily bump.
GCC Administrator [Fri, 1 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237900

9 years agore PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression...
Jakub Jelinek [Thu, 30 Jun 2016 09:08:32 +0000 (11:08 +0200)] 
re PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression, -O0, -O1, -O2, -O3))

PR middle-end/71693
* fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
first when permuting bitwise operation with rotate.  Cast
TREE_OPERAND (arg0, 0) to type when cancelling two rotations.

* gcc.c-torture/compile/pr71693.c: New test.

From-SVN: r237877