[PATCH] -Walloca-larger-than with constant sizes at -O0 (PR 100425)

2021-05-04 Thread Martin Sebor via Gcc-patches
Even when explicitly enabled, -Walloca-larger-than doesn't run unless optimization is enabled as well. This prevents diagnosing alloca calls with constant arguments in excess of the limit that could otherwise be flagged even at -O0, making the warning less consistent and less useful than is possi

[PATCH] libstdc++: Reduce ranges::minmax/minmax_element comparison complexity

2021-05-04 Thread Patrick Palka via Gcc-patches
This rewrites ranges::minmax and ranges::minmax_element so that it performs at most 3*N/2 many comparisons, as required by the standard. In passing, this also fixes PR100387 by avoiding a premature std::move in ranges::minmax and in std::shift_right. Tested on x86_64-pc-linux-gnu, does this look O

[PATCH] libstdc++: Implement LWG 3517 and 3520 for transform_view/join_view

2021-05-04 Thread Patrick Palka via Gcc-patches
Tested on x86_64-pc-linux-gnu, does this look OK for trunk and perhaps 10/11? libstdc++-v3/ChangeLog: * include/std/ranges (transform_view::_Iterator::iter_swap): Remove as per LWG 3520. (join_view::_Iterator::iter_swap): Add indirectly_swappable constraint as per

[PATCH] libstdc++: Don't constrain some enable_borrowed_range specializations

2021-05-04 Thread Patrick Palka via Gcc-patches
These constraints are already present on the template we're partially specilalizing for. [ This was recently fixed editorially in https://github.com/cplusplus/draft/pull/4519 ] Tested on x86_64-pc-linux-gnu, does this look OK for trunk? libstdc++-v3/ChangeLog: * include/bits/ranges_util

Re: *PING* [PATCH] PR fortran/100274 - [9/10/11/12 Regression] ICE in gfc_conv_procedure_call, at fortran/trans-expr.c:6131

2021-05-04 Thread Jerry DeLisle
LGTM, OK for trunk and back ports. On 5/4/21 11:34 AM, Harald Anlauf via Fortran wrote: PING! --- Dear Fortranners, Gerhard found a case where the mismatch of actual and formal argument lead to an ICE instead of the relevant warning. Furthermore, the special case of character argument avoide

Re: [PATCH v2 0/2] OpenRISC support for cmodel=large

2021-05-04 Thread Stafford Horne via Gcc-patches
On Mon, May 03, 2021 at 12:34:22PM +0200, Giulio Benetti wrote: > Hi Stafford, All, > > I've backported this patchset for Buildroot to versions: > - 9.3.0 > - 10.3.0 > > Does it make sense to send them? I don't know if those version will have > minor versions where these backported patches can be

<    1   2