]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoAdd workaround for aligned_alloc bug on AIX
Jonathan Wakely [Tue, 7 Aug 2018 22:50:15 +0000 (23:50 +0100)] 
Add workaround for aligned_alloc bug on AIX

On AIX 7.2.0.0 aligned_alloc incorrectly requires the alignment to be a
multiple of sizeof(void*).

This adds a workaround to the operator new overload taking an alignment
value, to increase the alignment (and size) if needed.

Backport from mainline
2018-07-30  Jonathan Wakely  <jwakely@redhat.com>

* libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Add
workaround for aligned_alloc bug on AIX.
* testsuite/18_support/new_aligned.cc: New test.

From-SVN: r263375

7 years agoPR libstdc++/86734 use addressof in reverse_iterator::operator->
Jonathan Wakely [Tue, 7 Aug 2018 22:50:11 +0000 (23:50 +0100)] 
PR libstdc++/86734 use addressof in reverse_iterator::operator->

Backport from mainline
2018-07-30  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/86734
* include/bits/stl_iterator.h (reverse_iterator::operator->): Use
addressof (LWG 2188).
* testsuite/24_iterators/reverse_iterator/dr2188.cc: New test.

From-SVN: r263374

7 years agoFix std::codecvt_utf8<wchar_t> for Mingw
Jonathan Wakely [Tue, 7 Aug 2018 22:50:06 +0000 (23:50 +0100)] 
Fix std::codecvt_utf8<wchar_t> for Mingw

Backport from mainline
2018-05-19  Jonathan Wakely  <jwakely@redhat.com>

* src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
[__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
little_endian element in bitmask.
* testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
* testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.

From-SVN: r263373

7 years agoDaily bump.
GCC Administrator [Tue, 7 Aug 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263348

7 years agoDaily bump.
GCC Administrator [Mon, 6 Aug 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263322

7 years agoDaily bump.
GCC Administrator [Sun, 5 Aug 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263314

7 years agoDaily bump.
GCC Administrator [Sat, 4 Aug 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263303

7 years agoDaily bump.
GCC Administrator [Fri, 3 Aug 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263282

7 years agobackport: re PR middle-end/86705 (pr45678-2.c ICE with msp430-elf -mlarge)
Jozef Lawrynowicz [Thu, 2 Aug 2018 20:36:14 +0000 (20:36 +0000)] 
backport: re PR middle-end/86705 (pr45678-2.c ICE with msp430-elf -mlarge)

2018-08-02  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

Backport from mainline
2018-07-31  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

PR middle-end/86705
* gcc/cfgexpand.c (set_parm_rtl): Use the alignment of Pmode when
MAX_SUPPORTED_STACK_ALIGNMENT would otherwise be exceeded by the
requested variable alignment.
(expand_one_ssa_partition): Likewise.
(expand_one_var): Likewise.

From-SVN: r263277

7 years agoDaily bump.
GCC Administrator [Thu, 2 Aug 2018 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263241

7 years agore PR tree-optimization/86724 (Compilation error with new isl 0.20 (missing includes))
Richard Biener [Wed, 1 Aug 2018 08:07:16 +0000 (08:07 +0000)] 
re PR tree-optimization/86724 (Compilation error with new isl 0.20 (missing includes))

2018-08-01  Richard Biener  <rguenther@suse.de>

PR bootstrap/86724
* graphite.h: Include isl/id.h and isl/space.h to allow build
with ISL 0.20.

From-SVN: r263195

7 years agoDaily bump.
GCC Administrator [Wed, 1 Aug 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263188

7 years agoDaily bump.
GCC Administrator [Tue, 31 Jul 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263078

7 years agoDaily bump.
GCC Administrator [Mon, 30 Jul 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263057

7 years agopa.c (pa_output_addr_vec): Align address table.
John David Anglin [Sun, 29 Jul 2018 16:03:58 +0000 (16:03 +0000)] 
pa.c (pa_output_addr_vec): Align address table.

* config/pa/pa.c (pa_output_addr_vec): Align address table.
* config/pa/pa.h (JUMP_TABLES_IN_TEXT_SECTION): Revise comment.
* config/pa/pa32-linux.h (JUMP_TABLES_IN_TEXT_SECTION): Define.

From-SVN: r263053

7 years agoDaily bump.
GCC Administrator [Sun, 29 Jul 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263048

7 years agoDaily bump.
GCC Administrator [Sat, 28 Jul 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263043

7 years agoDaily bump.
GCC Administrator [Fri, 27 Jul 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263025

7 years agoDaily bump.
GCC Administrator [Thu, 26 Jul 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262986

7 years agoDaily bump.
GCC Administrator [Wed, 25 Jul 2018 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262955

7 years agoDaily bump.
GCC Administrator [Tue, 24 Jul 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262938

7 years agoDaily bump.
GCC Administrator [Mon, 23 Jul 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262925

7 years agoDaily bump.
GCC Administrator [Sun, 22 Jul 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262919

7 years agoDaily bump.
GCC Administrator [Sat, 21 Jul 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262915

7 years agoDaily bump.
GCC Administrator [Fri, 20 Jul 2018 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262895

7 years agoDaily bump.
GCC Administrator [Thu, 19 Jul 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262868

7 years agoDaily bump.
GCC Administrator [Wed, 18 Jul 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262844

7 years agoAvoid assembler warnings from AArch64 constructor/destructor priorities
Kyrylo Tkachov [Tue, 17 Jul 2018 12:43:43 +0000 (12:43 +0000)] 
Avoid assembler warnings from AArch64 constructor/destructor priorities

2018-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
PR target/84168
2017-09-28  Joseph Myers  <joseph@codesourcery.com>

* config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
(aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
when creating .init_array and .fini_array sections with priority
specified.

From-SVN: r262821

7 years agodecl.c (choices_to_gnu): Rename parameters.
Eric Botcazou [Tue, 17 Jul 2018 10:12:02 +0000 (10:12 +0000)] 
decl.c (choices_to_gnu): Rename parameters.

* gcc-interface/decl.c (choices_to_gnu): Rename parameters.  Deal with
an operand of Character type.  Factor out range generation to the end.
Check that the bounds are literals and convert them to the type of the
operand before building the ranges.
* gcc-interface/utils.c (make_dummy_type): Minor tweak.
(make_packable_type): Propagate TYPE_DEBUG_TYPE.
(maybe_pad_type): Likewise.

From-SVN: r262814

7 years agodecl.c (gnat_to_gnu_entity): Deal with more rvalues in the expression of a renaming.
Eric Botcazou [Tue, 17 Jul 2018 09:23:31 +0000 (09:23 +0000)] 
decl.c (gnat_to_gnu_entity): Deal with more rvalues in the expression of a renaming.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Deal with
more rvalues in the expression of a renaming.

From-SVN: r262809

7 years agoDaily bump.
GCC Administrator [Tue, 17 Jul 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262762

7 years agore PR fortran/83184 (Out of memory or ICE with option -fdec)
Fritz Reese [Mon, 16 Jul 2018 23:35:39 +0000 (23:35 +0000)] 
re PR fortran/83184 (Out of memory or ICE with option -fdec)

2018-07-16  Fritz Reese  <fritzoreese@gmail.com>

    gcc/testsuite/ChangeLog:

PR fortran/83184
Backport from trunk.
* gfortran.dg/assumed_rank_14.f90: New testcase.
* gfortran.dg/assumed_rank_15.f90: New testcase.
* gfortran.dg/dec_structure_8.f90: Update error messages.
* gfortran.dg/dec_structure_23.f90: Update error messages.

    gcc/fortran/ChangeLog:

PR fortran/83184
Backport from trunk.
* decl.c (match_old_style_init): Initialize locus of variable expr when
creating a data variable.
(match_clist_expr): Verify array is explicit shape/size before
attempting to allocate constant array constructor.

From-SVN: r262759

7 years agobackport: re PR fortran/83183 (Out of memory with option -finit-derived)
Fritz Reese [Mon, 16 Jul 2018 22:25:54 +0000 (22:25 +0000)] 
backport: re PR fortran/83183 (Out of memory with option -finit-derived)

2018-07-16  Fritz Reese  <fritzoreese@gmail.com>

    gcc/testsuite/ChangeLog:

Backport from trunk:

PR fortran/83183
PR fortran/86325
* gfortran.dg/init_flag_18.f90: New testcase.
* gfortran.dg/init_flag_19.f03: New testcase.

    gcc/fortran/ChangeLog:

Backport from trunk:

PR fortran/86417
* module.c (mio_component): Set component->loc when loading from module.

PR fortran/83183
PR fortran/86325
* expr.c (class_allocatable, class_pointer, comp_allocatable,
comp_pointer): New helpers.
(component_initializer): Generate EXPR_NULL for allocatable or pointer
components. Do not generate initializers for components within BT_CLASS.
Do not assign to comp->initializer.
(gfc_generate_initializer): Use new helpers; move code to generate
EXPR_NULL for class allocatable components into component_initializer().

From-SVN: r262751

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

From-SVN: r262673

7 years agoDaily bump.
GCC Administrator [Sun, 15 Jul 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262663

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

From-SVN: r262656

7 years agoDaily bump.
GCC Administrator [Fri, 13 Jul 2018 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262618

7 years agore PR target/84829 (-mieee-fp causes to link with -lieee but that is no longer available)
Richard Biener [Thu, 12 Jul 2018 16:29:50 +0000 (16:29 +0000)] 
re PR target/84829 (-mieee-fp causes to link with -lieee but that is no longer available)

2018-07-12  Richard Biener  <rguenther@suse.de>

PR target/84829
* config/gnu-user.h (GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC):
Remove -mieee-fp handling.

* gcc.target/i386/pr84829.c: New testcase.

From-SVN: r262597

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

From-SVN: r262569

7 years agoDaily bump.
GCC Administrator [Wed, 11 Jul 2018 00:16:48 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262547

7 years agobackport: vsx.md (define_insn "*stxvl"): Add missing argument to the sldi instruction.
Carl Love [Tue, 10 Jul 2018 17:33:40 +0000 (17:33 +0000)] 
backport: vsx.md (define_insn "*stxvl"): Add missing argument to the sldi instruction.

2018-07-10  Carl Love  <cel@us.ibm.com>

Backport from mainline
2017-09-07  Carl Love  <cel@us.ibm.com>

* config/rs6000/vsx.md (define_insn "*stxvl"): Add missing argument to
the sldi instruction.

From-SVN: r262541

7 years agoDaily bump.
GCC Administrator [Tue, 10 Jul 2018 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262530

7 years agoDaily bump.
GCC Administrator [Mon, 9 Jul 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262507

7 years agoDaily bump.
GCC Administrator [Sun, 8 Jul 2018 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262503

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

From-SVN: r262490

7 years agoDaily bump.
GCC Administrator [Fri, 6 Jul 2018 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262460

7 years agobackport: re PR libstdc++/86272 (__gnu_debug::string uses undefined __glibcxx_check_i...
François Dumont [Thu, 5 Jul 2018 20:48:02 +0000 (20:48 +0000)] 
backport: re PR libstdc++/86272 (__gnu_debug::string uses undefined __glibcxx_check_insert_range2)

2018-07-05  François Dumont  <fdumont@gcc.gnu.org>

Backport from mainline
2018-07-04  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/86272
* include/debug/string
(__gnu_debug::basic_string<>::insert<_Ite>(const_iterator, _Ite, _Ite)):
Use __glibcxx_check_insert_range.

From-SVN: r262454

7 years agoDaily bump.
GCC Administrator [Thu, 5 Jul 2018 00:16:41 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262426

7 years agoUse non-throwing is_directory in filesystem::create_directory
Jonathan Wakely [Wed, 4 Jul 2018 13:59:57 +0000 (14:59 +0100)] 
Use non-throwing is_directory in filesystem::create_directory

The create_dir helper was calling the throwing form of
filesystem::is_directory instead of passing the error_code argument.
Since std::filesystem::create_directory(const path&, error_code&) is
noexcept, it would call std::terminate if an error occurred in
is_directory.

Passing the error_code also takes care of clearing it in the case where
is_directory returns true.

Backport from mainline
2018-03-09  Jonathan Wakely  <jwakely@redhat.com>

src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.

From-SVN: r262413

7 years agoLWG 3050 Fix cv-qualification of convertibility constraints
Jonathan Wakely [Wed, 4 Jul 2018 13:59:51 +0000 (14:59 +0100)] 
LWG 3050 Fix cv-qualification of convertibility constraints

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

* include/std/chrono (duration, operator*, operator/, operator%): Use
const-qualified type as source type in is_convertible constraints.
* testsuite/20_util/duration/arithmetic/dr3050.cc: New.
* testsuite/20_util/duration/cons/dr3050.cc: New.
* testsuite/20_util/duration/literals/range.cc: Rename to...
* testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust
dg-error lineno.

From-SVN: r262412

7 years agoPR libstdc++/86127 avoid unnecessary allocator conversions
Jonathan Wakely [Wed, 4 Jul 2018 13:59:42 +0000 (14:59 +0100)] 
PR libstdc++/86127 avoid unnecessary allocator conversions

There is no need to use an allocator of the correct value_type when
calling allocator_traits::construct and allocator_traits::destroy. The
existing node allocator can be used, instead of constructing a new
allocator object every time.

There's also no benefit to using __gnu_cxx::__alloc_traits instead of
std::allocator_traits to get the pointer and const_pointer types.
std::forward_list is only available for C++11 and later, when
std::allocator_traits is available too.

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

PR libstdc++/86127
* include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove
unused typedef.
(_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after):
Use node allocator to create and destroy elements.
(forward_list::_Tp_alloc_type): Remove unused typedef.
(forward_list::_Alloc_traits): Use allocator_traits instead of
__gnu_cxx::__alloc_traits.
        * include/bits/forward_list.tcc (_Fwd_list_base::_M_erase_after):
Use node allocator to create and destroy elements.

From-SVN: r262411

7 years agoQualify another call in <variant>
Jonathan Wakely [Wed, 4 Jul 2018 13:59:37 +0000 (14:59 +0100)] 
Qualify another call in <variant>

Backport from mainline
2018-05-29  Jonathan Wakely  <jwakely@redhat.com>

* include/std/variant (__erased_dtor): Qualify call to __get.

From-SVN: r262410

7 years agoQualify std::__invoke in <variant> to prevent ADL
Jonathan Wakely [Wed, 4 Jul 2018 13:59:32 +0000 (14:59 +0100)] 
Qualify std::__invoke in <variant> to prevent ADL

Backport from mainline
2018-05-15  Jonathan Wakely  <jwakely@redhat.com>

* include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
__invoke to prevent ADL.

From-SVN: r262409

7 years agoAdd another workaround to std::variant for Clang bug 31852
Jonathan Wakely [Wed, 4 Jul 2018 13:59:28 +0000 (14:59 +0100)] 
Add another workaround to std::variant for Clang bug 31852

Backport from mainline
2018-04-05  Jonathan Wakely  <jwakely@redhat.com>

* include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
__get calls to avoid ADL and avoid ambiguity due to Clang bug.

From-SVN: r262408

7 years agoAdd workaround to std::variant for Clang bug 31852
Jonathan Wakely [Wed, 4 Jul 2018 13:59:21 +0000 (14:59 +0100)] 
Add workaround to std::variant for Clang bug 31852

Backport from mainline
2018-03-26  Jonathan Wakely  <jwakely@redhat.com>

* include/std/variant (__get): Qualify calls to avoid ADL.
(__select_index): Adjust whitespace.
(variant): Add using-declaration to workaround Clang bug.

From-SVN: r262407

7 years agoPR target/85904 check for aligned_alloc on netbsd cross-compilation
Jonathan Wakely [Wed, 4 Jul 2018 13:59:17 +0000 (14:59 +0100)] 
PR target/85904 check for aligned_alloc on netbsd cross-compilation

Backport from mainline
2018-05-24  Maya Rashish  <coypu@sdf.org>

PR target/85904
* crossconfig.m4: Test for aligned_alloc on netbsd.
* configure: Regenerate.

From-SVN: r262406

7 years agoPR libstdc++/85098 add missing definitions for static constants
Jonathan Wakely [Wed, 4 Jul 2018 13:59:13 +0000 (14:59 +0100)] 
PR libstdc++/85098 add missing definitions for static constants

In C++11 and C++14 any odr-use of these constants requires a definition
at namespace-scope.  In C++17 they are implicitly inline and so the
namespace-scope redeclarations are redundant (and allowing them is
deprecated).

Backport from mainline
2018-05-18  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/85098
* include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
(basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
(basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
(basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
definitions.
* include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
whitespace.
* testsuite/28_regex/basic_regex/85098.cc: New

From-SVN: r262405

7 years agoPR libstdc++/85671 allow copy elision in path concatenation
Jonathan Wakely [Wed, 4 Jul 2018 13:59:06 +0000 (14:59 +0100)] 
PR libstdc++/85671 allow copy elision in path concatenation

By performing the /= operation on a named local variable instead of a
temporary the copy made for the return value can be elided.

Backport from mainline
2018-05-07  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/85671
* include/experimental/bits/fs_path.h (operator/): Likewise.

From-SVN: r262404

7 years agoPR libstdc++/83982 fix exception-safety guarantee of std::vector::resize
Jonathan Wakely [Wed, 4 Jul 2018 13:59:01 +0000 (14:59 +0100)] 
PR libstdc++/83982 fix exception-safety guarantee of std::vector::resize

Construct new elements before moving existing ones, so that if a default
constructor throws, the existing elements are not left in a moved-from
state.

Backport from mainline
2018-06-14  Daniel Trebbien <dtrebbien@gmail.com>
    Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83982
* include/bits/vector.tcc (vector::_M_default_append(size_type)):
Default-construct new elements before moving existing ones.
* testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc:
New.

From-SVN: r262403

7 years agoPR libstdc++/84087 add default arguments to basic_string members (LWG 2268)
Jonathan Wakely [Wed, 4 Jul 2018 13:58:50 +0000 (14:58 +0100)] 
PR libstdc++/84087 add default arguments to basic_string members (LWG 2268)

This change was a DR against C++11 and so should have been implemented
years ago.

Backport from mainline
2018-05-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/84087 LWG DR 2268 basic_string default arguments
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
(append(const basic_string&, size_type, size_type)
(assign(const basic_string&, size_type, size_type)
(insert(size_type, const basic_string&, size_type, size_type)
(replace(size_type,size_type,const basic_string&,size_type,size_type)
(compare(size_type,size_type,constbasic_string&,size_type,size_type)):
Add default arguments (LWG 2268).
[_GLIBCXX_USE_CXX11_ABI=0]
(append(const basic_string&, size_type, size_type)
(assign(const basic_string&, size_type, size_type)
(insert(size_type, const basic_string&, size_type, size_type)
(replace(size_type,size_type,const basic_string&,size_type,size_type)
(compare(size_type,size_type,constbasic_string&,size_type,size_type)):
Likewise.
* testsuite/21_strings/basic_string/dr2268.cc: New test.

From-SVN: r262402

7 years agoRemove spurious $HOME include from BRIG FE Makefile
Martin Jambor [Wed, 4 Jul 2018 12:22:29 +0000 (14:22 +0200)] 
Remove spurious $HOME include from BRIG FE Makefile

2018-07-04  Martin Jambor  <mjambor@suse.cz>

PR hsa/86371
* Make-lang.in (BRIGINCLUDES): Remove erroneous include path in $HOME.

From-SVN: r262400

7 years agoDaily bump.
GCC Administrator [Wed, 4 Jul 2018 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262362

7 years agoPR c++/86378 - functional cast in noexcept-specifier.
Jason Merrill [Tue, 3 Jul 2018 16:27:04 +0000 (12:27 -0400)] 
PR c++/86378 - functional cast in noexcept-specifier.

* tree.c (strip_typedefs_expr) [TREE_LIST]: Fix iteration.

From-SVN: r262352

7 years agore PR fortran/82969 (ICE in gfc_class_vptr_get, at fortran/trans-expr.c:211)
Paul Thomas [Tue, 3 Jul 2018 09:46:31 +0000 (09:46 +0000)] 
re PR fortran/82969 (ICE in gfc_class_vptr_get, at fortran/trans-expr.c:211)

2018-07-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82969
PR fortran/86242
* trans-array.c (structure_alloc_comps): Do not explicitly copy
procedure pointer components.

2018-07-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82969
PR fortran/86242
* gfortran.dg/proc_ptr_50.f90: New test.

From-SVN: r262331

7 years agoDaily bump.
GCC Administrator [Tue, 3 Jul 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262324

7 years agore PR go/86331 (the gccgo's "go" tool looks like failing to invoke any sub go command)
Ian Lance Taylor [Mon, 2 Jul 2018 16:29:24 +0000 (16:29 +0000)] 
re PR go/86331 (the gccgo's "go" tool looks like failing to invoke any sub go command)

PR go/86331
    os: check return value as well as error from waitid

    https://gcc.gnu.org/PR86331 indicates that if a signal handler runs it
    is possible for syscall.Syscall6 to return a non-zero errno value even
    if no error occurs. That is a problem in general, but this fix will
    let us work around the general problem for the specific case of
    calling waitid.

    Reviewed-on: https://go-review.googlesource.com/121595

From-SVN: r262315

7 years agoClean up gcc/ChangeLog file.
Martin Liska [Mon, 2 Jul 2018 14:51:14 +0000 (14:51 +0000)] 
Clean up gcc/ChangeLog file.

From-SVN: r262310

7 years agoDaily bump.
GCC Administrator [Mon, 2 Jul 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262292

7 years agoDaily bump.
GCC Administrator [Sun, 1 Jul 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262280

7 years agoDaily bump.
GCC Administrator [Sat, 30 Jun 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262264

7 years agoRevert r262224 (backport of r262221) as PDTs are not supported in 7-branch.
Fritz Reese [Fri, 29 Jun 2018 20:29:34 +0000 (20:29 +0000)] 
Revert r262224 (backport of r262221) as PDTs are not supported in 7-branch.

gcc/fortran/ChangeLog:
-2018-06-28  Fritz Reese  <fritzoreese@gmail.com>
-
- PR fortran/82865
- Backport from trunk.
- * decl.c (gfc_match_type): Refactor and check for PDT declarations.
-

gcc/testsuite/ChangeLog:
-2018-06-28  Fritz Reese  <fritzoreese@gmail.com>
-
- PR fortran/82865
- Backport from trunk.
- * gfortran.dg/dec_type_print_2.f03: New testcase.
-

From-SVN: r262260

7 years agoPartial backport r256656
Martin Liska [Fri, 29 Jun 2018 09:31:30 +0000 (11:31 +0200)] 
Partial backport r256656

2018-06-29  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-01-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* lex.c (search_line_fast): Remove illegal coercion of an
unaligned pointer value to vector pointer type and replace with
use of __builtin_vec_vsx_ld () built-in function, which operates
on unaligned pointer values.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@261621 138bc75d-0d04-0410-961f-82ee72b054a4

From-SVN: r262243

7 years agoDaily bump.
GCC Administrator [Fri, 29 Jun 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262238

7 years agore PR fortran/82865 (Option -fdec collides with PDT)
Fritz Reese [Thu, 28 Jun 2018 16:51:23 +0000 (16:51 +0000)] 
re PR fortran/82865 (Option -fdec collides with PDT)

2018-06-28  Fritz Reese  <fritzoreese@gmail.com>

    gcc/testsuite/ChangeLog:

PR fortran/82865
Backport from trunk.
* gfortran.dg/dec_type_print_2.f03: New testcase.

    gcc/fortran/ChangeLog:

PR fortran/82865
Backport from trunk.
* decl.c (gfc_match_type): Refactor and check for PDT declarations.

From-SVN: r262224

7 years agoPR c++/80290 - memory-hog with std::pair.
Jason Merrill [Thu, 28 Jun 2018 00:25:21 +0000 (20:25 -0400)] 
PR c++/80290 - memory-hog with std::pair.

* pt.c (type_unification_real): Skip non-dependent conversion
check for a nested list argument.
(braced_init_depth): New.

From-SVN: r262204

7 years agoDaily bump.
GCC Administrator [Thu, 28 Jun 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262201

7 years ago[multiple changes]
David Edelsohn [Wed, 27 Jun 2018 20:08:21 +0000 (20:08 +0000)] 
[multiple changes]

2018-06-27  David Edelsohn  <dje.gcc@gmail.com>

        2018-06-19  Tony Reix  <tony.reix@atos.com>
            Damien Bergamini  <damien.bergamini@atos.com>
            David Edelsohn  <dje.gcc@gmail.com>

        * collect2.c (static_obj): New variable.
        (static_libs): New variable.
        (is_in_list): Uncomment declaration.
        (main): Track AIX libraries linked statically.
        (is_in_list): Uncomment definition.
        (scan_prog_file): Don't add AIX shared libraries initializer
        to constructor list if linking statically.

From-SVN: r262193

7 years agoDaily bump.
GCC Administrator [Wed, 27 Jun 2018 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262169

7 years agobackport: rs6000-c.c (altivec_overloaded_builtins): Change behavior of vec_packsu...
Kelvin Nilsen [Tue, 26 Jun 2018 19:45:01 +0000 (19:45 +0000)] 
backport: rs6000-c.c (altivec_overloaded_builtins): Change behavior of vec_packsu (vector unsigned long long...

gcc/ChangeLog:

2018-06-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backported from mainline
2018-06-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Change
behavior of vec_packsu (vector unsigned long long, vector unsigned
long long) to match behavior of vec_packs with same signature.

gcc/testsuite/ChangeLog:

2018-06-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backported from mainline
2018-06-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/builtins-1.c: Add dg directives to scan
for vpkudus.

From-SVN: r262164

7 years agoS/390: Fix mtune default.
Robin Dapp [Tue, 26 Jun 2018 12:23:02 +0000 (12:23 +0000)] 
S/390: Fix mtune default.

When building with --with-tune=zEC12 and calling the resulting gcc
with --march=z13 (no extra -mtune), the binary would unexpectedly be compiled
with -march=z13 -mtune=zEC12.  This patch avoids using the default tune
parameter if -march is specified as argument but the user can still
explicitly state -march=z13 -mtune=zEC12.

gcc/ChangeLog:

2018-06-26  Robin Dapp  <rdapp@linux.ibm.com>

        * config/s390/s390.h (enum processor_flags): Do not use
        default tune parameter when -march was specified.

From-SVN: r262145

7 years agore PR target/86314 (GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts")
Jakub Jelinek [Tue, 26 Jun 2018 11:54:29 +0000 (13:54 +0200)] 
re PR target/86314 (GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts")

PR target/86314
* config/i386/i386.md (setcc + movzbl to xor + setcc peephole2s):
Check reg_overlap_mentioned_p in addition to reg_set_p with the same
operands.

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

From-SVN: r262144

7 years agore PR c++/86291 (OpenMP incorrect for-loop collapsing with iterators and at least...
Jakub Jelinek [Tue, 26 Jun 2018 11:16:10 +0000 (13:16 +0200)] 
re PR c++/86291 (OpenMP incorrect for-loop collapsing with iterators and at least 5 nested loops)

PR c++/86291
* parser.c (cp_parser_omp_for_loop_init): Change for_block argument
type from vec<tree, va_gc> * to vec<tree, va_gc> *&.

* testsuite/libgomp.c++/pr86291.C: New test.

From-SVN: r262139

7 years agoDaily bump.
GCC Administrator [Tue, 26 Jun 2018 00:16:36 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262125

7 years agobackport: re PR target/85424 (The __builtin_packlongdouble function might have issues...
Michael Meissner [Mon, 25 Jun 2018 23:28:27 +0000 (23:28 +0000)] 
backport: re PR target/85424 (The __builtin_packlongdouble function might have issues with the output overlapping the inputs)

2018-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2018-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/85424
* config/rs6000/rs6000.md (pack<mode>): Do not try handle a pack
where the inputs overlap with the output.

From-SVN: r262122

7 years agore PR fortran/82972 (ICE with -finit-derived in gfc_conv_structure, at fortran/trans...
Fritz Reese [Mon, 25 Jun 2018 19:07:03 +0000 (19:07 +0000)] 
re PR fortran/82972 (ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others))

2018-06-25  Fritz Reese  <fritzoreese@gmail.com>

PR fortran/82972
PR fortran/83088
PR fortran/85851
Backport from trunk.
* expr.c (component_initializer): Assign init expr to c->initializer.
(generate_isocbinding_initializer): New.
(gfc_generate_initializer): Call generate_isocbinding_initializer to
generate initializers for c_ptr and c_funptr with -finit-derived.

2018-06-25  Fritz Reese  <fritzoreese@gmail.com>

PR fortran/82972
PR fortran/83088
PR fortran/85851
Backport from trunk.
* gfortran.dg/init_flag_17.f90: New testcase.

From-SVN: r262106

7 years agore PR target/84786 ([miscompilation] vunpcklpd accessing xmm16-22 targeting KNL)
Jakub Jelinek [Mon, 25 Jun 2018 12:48:29 +0000 (14:48 +0200)] 
re PR target/84786 ([miscompilation] vunpcklpd accessing xmm16-22 targeting KNL)

PR target/84786
* config/i386/sse.md (vshift_count): New mode attr.
(<shift_insn><mode>3<mask_name>): Use <vshift_count>N instead of vN
as last operand's constraint for VI2_AVX2_AVX512BW shifts.  Use YvN
instead of vN as last operand's constraint for VI48_AVX2 shifts.

* gcc.target/i386/avx512f-pr84786-3.c: New test.

From-SVN: r262014

7 years agore PR fortran/83118 (Bad intrinsic assignment of class(*) array component of derived...
Paul Thomas [Mon, 25 Jun 2018 07:52:09 +0000 (07:52 +0000)] 
re PR fortran/83118 (Bad intrinsic assignment of class(*) array component of derived type)

2018-06-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83118
Back port from trunk
* resolve.c (resolve_ordinary_assign): Force the creation of a
vtable for assignment of non-polymorphic expressions to an
unlimited polymorphic object.
* trans-array.c (gfc_alloc_allocatable_for_assignment): Use the
size of the rhs type for such assignments. Set the dtype, _len
and vptrs appropriately.
* trans-expr.c (gfc_trans_assignment): Force the use of the
_copy function for these assignments.

2018-06-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83118
Back port from trunk
* gfortran.dg/unlimited_polymorphic_30.f03: New test.

From-SVN: r262005

7 years agoDaily bump.
GCC Administrator [Mon, 25 Jun 2018 00:16:48 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r262000

7 years agoDaily bump.
GCC Administrator [Sun, 24 Jun 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r261990

7 years agoFix phi backedge detection in backprop (PR85989)
Richard Sandiford [Sat, 23 Jun 2018 12:21:18 +0000 (12:21 +0000)] 
Fix phi backedge detection in backprop (PR85989)

Backport trunk r261064.

2018-06-23  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
PR tree-optimization/85989
* gimple-ssa-backprop.c (backprop::m_visited_phis): New member
variable.
(backprop::intersect_uses): Check it when deciding whether this
is a backedge reference.
(backprop::process_block): Add each phi to m_visited_phis
after visiting it, then clear it at the end.

gcc/testsuite/
PR tree-optimization/85989
* gcc.dg/torture/pr85989.c: New test.

From-SVN: r261984

7 years agoDaily bump.
GCC Administrator [Sat, 23 Jun 2018 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r261977

7 years agobackport: re PR c++/86210 (Missing -Wnonnull warning for function defined in the...
Jakub Jelinek [Fri, 22 Jun 2018 21:33:58 +0000 (23:33 +0200)] 
backport: re PR c++/86210 (Missing -Wnonnull warning for function defined in the same TU)

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

PR c++/86210
* c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
comment.

* g++.dg/warn/Wnonnull4.C: New test.

From-SVN: r261970

7 years agobackport: re PR tree-optimization/86231 (vrp_meet causes wrong-code)
Jakub Jelinek [Fri, 22 Jun 2018 21:33:07 +0000 (23:33 +0200)] 
backport: re PR tree-optimization/86231 (vrp_meet causes wrong-code)

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

PR tree-optimization/86231
* tree-vrp.c (union_ranges): For (  [  )  ] or (   )[   ] range and
anti-range don't overwrite *vr0min before using it to compute *vr0max.

* gcc.dg/tree-ssa/vrp119.c: New test.
* gcc.c-torture/execute/pr86231.c: New test.

From-SVN: r261969

7 years agobackport: re PR middle-end/85878 (ICE in convert_mode_scalar, at expr.c:287)
Jakub Jelinek [Fri, 22 Jun 2018 21:30:06 +0000 (23:30 +0200)] 
backport: re PR middle-end/85878 (ICE in convert_mode_scalar, at expr.c:287)

Backported from mainline
2018-06-15  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/85878
* expr.c (expand_assignment): Only call store_expr for halves if the
mode is the same.

* gfortran.fortran-torture/compile/pr85878.f90: New test.

From-SVN: r261968

7 years agobackport: re PR target/85945 (ICE in resolve_subreg_use, at lower-subreg.c:751)
Jakub Jelinek [Fri, 22 Jun 2018 21:29:24 +0000 (23:29 +0200)] 
backport: re PR target/85945 (ICE in resolve_subreg_use, at lower-subreg.c:751)

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

PR target/85945
* lower-subreg.c (find_decomposable_subregs): Don't decompose float
subregs of multi-word pseudos unless the float mode has word size.

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

From-SVN: r261967

7 years agobackport: re PR c++/86025 (ICE with -Wduplicated-branches and OpenMP critical)
Jakub Jelinek [Fri, 22 Jun 2018 21:28:36 +0000 (23:28 +0200)] 
backport: re PR c++/86025 (ICE with -Wduplicated-branches and OpenMP critical)

Backported from mainline
2018-06-04  Jakub Jelinek  <jakub@redhat.com>

PR c++/86025
* tree.c (inchash::add_expr): Handle IDENTIFIER_NODE.

* c-c++-common/gomp/pr86025.c: New test.

From-SVN: r261966

7 years agobackport: re PR c++/85952 (Bogus -Wunused-but-set-variable warning with array structu...
Jakub Jelinek [Fri, 22 Jun 2018 21:27:41 +0000 (23:27 +0200)] 
backport: re PR c++/85952 (Bogus -Wunused-but-set-variable warning with array structured binding)

Backported from mainline
2018-05-29  Jakub Jelinek  <jakub@redhat.com>

PR c++/85952
* init.c (build_aggr_init): For structured binding initialized from
array call mark_rvalue_use on the initializer.

* g++.dg/warn/Wunused-var-33.C: New test.

From-SVN: r261965

7 years agobackport: re PR c/85696 (OpenMP with variably modified and default(none) won't compile)
Jakub Jelinek [Fri, 22 Jun 2018 21:27:25 +0000 (23:27 +0200)] 
backport: re PR c/85696 (OpenMP with variably modified and default(none) won't compile)

Backported from mainline
2018-05-11  Jakub Jelinek  <jakub@redhat.com>

PR c/85696
* c-omp.c (c_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.

* c-typeck.c (c_finish_omp_clauses): Don't use
c_omp_predetermined_sharing, instead just check TREE_READONLY.

* cp-tree.h (cxx_omp_predetermined_sharing_1): New prototype.
* cp-gimplify.c (cxx_omp_predetermined_sharing): New wrapper around
cxx_omp_predetermined_sharing_1.  Rename old function to ...
(cxx_omp_predetermined_sharing_1): ... this.
* semantics.c (finish_omp_clauses): Use cxx_omp_predetermined_sharing_1
instead of cxx_omp_predetermined_sharing.

* c-c++-common/gomp/pr85696.c: New test.

From-SVN: r261964

7 years agobackport: re PR c/85696 (OpenMP with variably modified and default(none) won't compile)
Jakub Jelinek [Fri, 22 Jun 2018 21:25:04 +0000 (23:25 +0200)] 
backport: re PR c/85696 (OpenMP with variably modified and default(none) won't compile)

Backported from mainline
2018-05-11  Jakub Jelinek  <jakub@redhat.com>

PR c/85696
* c-omp.c (c_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.

* c-typeck.c (c_finish_omp_clauses): Don't use
c_omp_predetermined_sharing, instead just check TREE_READONLY.

* cp-tree.h (cxx_omp_predetermined_sharing_1): New prototype.
* cp-gimplify.c (cxx_omp_predetermined_sharing): New wrapper around
cxx_omp_predetermined_sharing_1.  Rename old function to ...
(cxx_omp_predetermined_sharing_1): ... this.
* semantics.c (finish_omp_clauses): Use cxx_omp_predetermined_sharing_1
instead of cxx_omp_predetermined_sharing.

* c-c++-common/gomp/pr85696.c: New test.

From-SVN: r261963

7 years agobackport: re PR c++/85662 ("error: non-constant condition for static assertion" from...
Jakub Jelinek [Fri, 22 Jun 2018 21:23:03 +0000 (23:23 +0200)] 
backport: re PR c++/85662 ("error: non-constant condition for static assertion" from __builtin_offsetof in C++)

Backported from mainline
2018-06-22  Jakub Jelinek  <jakub@redhat.com>

PR c++/85662
* g++.dg/ext/offsetof3.C: New test.

2018-05-10  Jakub Jelinek  <jakub@redhat.com>

PR c++/85662
* c-common.h (fold_offsetof_1): Removed.
(fold_offsetof): Add TYPE argument defaulted to size_type_node and
CTX argument defaulted to ERROR_MARK.
* c-common.c (fold_offsetof_1): Renamed to ...
(fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
argument, convert the pointer constant to TYPE and use size_binop
with PLUS_EXPR instead of fold_build_pointer_plus if type is not
a pointer type.  Adjust recursive calls.

* c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than
fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the
fold_convert_loc.
* c-typeck.c (build_unary_op): Use fold_offsetof rather than
fold_offsetof_1, pass argtype as TYPE to it and drop the
fold_convert_loc.

* cp-gimplify.c (cp_fold): Use fold_offsetof rather than
fold_offsetof_1, pass TREE_TYPE (x) as TYPE to it and drop the
fold_convert.

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

From-SVN: r261962