Jonathan Wakely
60a1663f22
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
2016-08-06 13:21:42 +01:00
Jonathan Wakely
1fdb895a9d
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
2016-08-06 13:21:38 +01:00
Jonathan Wakely
ffc0e8700d
Improve comments on check_v3_target_filesystem_ts
...
* testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve
comments.
From-SVN: r239203
2016-08-06 13:21:33 +01:00
GCC Administrator
8ff325d31b
Daily bump.
...
From-SVN: r239186
2016-08-06 00:16:06 +00:00
Nathan Sidwell
cace146216
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
2016-08-05 19:58:36 +00:00
GCC Administrator
eba2666f38
Daily bump.
...
From-SVN: r239158
2016-08-05 00:16:05 +00:00
Uros Bizjak
77a8b3737b
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
2016-08-04 23:25:33 +02:00
GCC Administrator
9e9ff1bf78
Daily bump.
...
From-SVN: r239110
2016-08-04 00:16:05 +00:00
GCC Administrator
9ea188d84b
Daily bump.
...
From-SVN: r239006
2016-08-03 00:16:05 +00:00
Jonathan Wakely
882c54bb4a
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
2016-08-02 10:53:45 +01:00
GCC Administrator
7a9cb0a4a6
Daily bump.
...
From-SVN: r238974
2016-08-02 00:16:05 +00:00
Georg-Johann Lay
b5ab3a7fc7
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
2016-08-01 12:44:18 +00:00
GCC Administrator
71b56c3a6e
Daily bump.
...
From-SVN: r238931
2016-08-01 00:16:05 +00:00
GCC Administrator
edd2083154
Daily bump.
...
From-SVN: r238912
2016-07-31 00:16:05 +00:00
GCC Administrator
52ecf49b54
Daily bump.
...
From-SVN: r238900
2016-07-30 00:16:05 +00:00
Marek Polacek
ee27d4a4e6
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
2016-07-29 12:42:55 +00:00
Marek Polacek
28710a875b
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
2016-07-29 11:26:46 +00:00
Paul Thomas
57f10c5471
[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
2016-07-29 05:16:05 +00:00
GCC Administrator
802df4477b
Daily bump.
...
From-SVN: r238843
2016-07-29 00:16:05 +00:00
GCC Administrator
f5c5e6d291
Daily bump.
...
From-SVN: r238804
2016-07-28 00:16:04 +00:00
Segher Boessenkool
d72603df73
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
2016-07-27 18:14:12 +02:00
GCC Administrator
0532a68859
Daily bump.
...
From-SVN: r238776
2016-07-27 00:16:04 +00:00
Jason Merrill
856aa28cb8
PR c++/71833 - member template with two parameter packs
...
* pt.c (coerce_template_parameter_pack): Fix logic for
pack index.
From-SVN: r238765
2016-07-26 16:29:12 -04:00
Alan Modra
a57ce13728
[RS6000] push_secondary_reload ICE
...
PR target/72103
* config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
sri->t_icode.
From-SVN: r238746
2016-07-26 19:59:32 +09:30
GCC Administrator
783abf27a9
Daily bump.
...
From-SVN: r238739
2016-07-26 00:16:09 +00:00
GCC Administrator
da2bafc789
Daily bump.
...
From-SVN: r238698
2016-07-25 00:16:13 +00:00
GCC Administrator
5e59ddcc98
Daily bump.
...
From-SVN: r238678
2016-07-24 00:16:11 +00:00
GCC Administrator
d74fced0dc
Daily bump.
...
From-SVN: r238672
2016-07-23 00:16:12 +00:00
Andre Vehreschild
236cb0260a
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
2016-07-22 17:21:10 +02:00
Andre Vehreschild
86e81ee4dc
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
2016-07-22 16:12:59 +02:00
Jason Merrill
765c42ab61
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
2016-07-21 23:51:22 -04:00
Jason Merrill
e7cb6cc01e
PR c++/71630 - extern variable template
...
* pt.c (instantiate_decl): Fix pattern_defined for namespace scope
variable templates.
From-SVN: r238629
2016-07-21 23:51:15 -04:00
Jason Merrill
41506fa12c
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
2016-07-21 23:51:07 -04:00
GCC Administrator
4f1d1c8f12
Daily bump.
...
From-SVN: r238615
2016-07-22 00:16:11 +00:00
GCC Administrator
50876668f4
Daily bump.
...
From-SVN: r238555
2016-07-21 00:16:09 +00:00
Jakub Jelinek
323d171f90
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
2016-07-20 16:16:40 +02:00
Martin Jambor
46f2e7001b
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
2016-07-20 15:31:19 +02:00
GCC Administrator
f94596882a
Daily bump.
...
From-SVN: r238504
2016-07-20 00:16:10 +00:00
Jakub Jelinek
6c1a79ad0d
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
2016-07-19 19:39:26 +02:00
Jonathan Wakely
b34cb81465
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
2016-07-19 18:17:05 +01:00
Martin Liska
cc441bd93f
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
2016-07-19 13:35:43 +00:00
Jakub Jelinek
966f872069
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
2016-07-19 11:25:10 +02:00
Jakub Jelinek
33800c8d66
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
2016-07-19 11:02:11 +02:00
GCC Administrator
933342941d
Daily bump.
...
From-SVN: r238451
2016-07-19 00:16:09 +00:00
Martin Liska
75191c9fb1
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
2016-07-18 12:59:10 +00:00
GCC Administrator
23873af786
Daily bump.
...
From-SVN: r238422
2016-07-18 00:16:09 +00:00
GCC Administrator
2d7b4fd859
Daily bump.
...
From-SVN: r238417
2016-07-17 00:16:11 +00:00
Jerry DeLisle
2d7fbc3f0f
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
2016-07-16 05:10:10 +00:00
GCC Administrator
5f845c3b1e
Daily bump.
...
From-SVN: r238407
2016-07-16 00:16:14 +00:00
GCC Administrator
982bb36632
Daily bump.
...
From-SVN: r238360
2016-07-15 00:16:11 +00:00