[Bug tree-optimization/105665] [12/13 Regression] wrong code at -Os and above on x86_64-linux-gnu since r12-397-gda9e6e63d1ae22

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105665 --- Comment #4 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #3) > Started with r12-398-g5fbe6a8e73b52c6ebc28b9 because r12-397 didn't compile, > but yes, it is r12-397. And it is very similar to PR 100810 in the sense there

Re: [PATCH] gdc 9, 10 and 11 bug fix

2022-05-21 Thread Marc Aurèle La France
On Fri, 20 May 2022, Iain Buclaw wrote: Excerpts from Marc Aurèle La France's message of Mai 20, 2022 6:56 am: On Tue, 17 May 2022, Marc Aurèle La France wrote: On Tue, 17 May 2022, Iain Buclaw wrote: Excerpts from Marc Aurèle La France's message of Mai 17, 2022 5:31 pm: On Tue, 17 May 2022,

gcc-12-20220521 is now available

2022-05-21 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220521 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20220521/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[committed] wwwdocs: gcc-12: Fix HTML around RISC-V entries

2022-05-21 Thread Gerald Pfeifer
I'm not sure when that sneaked in (and it predates that last entry), but followed by is one too many in any case. :-) Pushed. Gerald --- htdocs/gcc-12/changes.html | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index

Re: [wwwdocs] gcc-12/changes.html: Document the RISC-V libstdc++ -latomic detection

2022-05-21 Thread Gerald Pfeifer
On Wed, 11 May 2022, Kito Cheng via Gcc-patches wrote: > LGTM, I think document what we really did in GCC 12 is never too late :P Totally. And thanks for doing this, Palmer. I went ahead and made two editorial changes per the patch below which I pushed. Gerald commit

[Bug ipa/105685] [10/11/12 Regression] Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))`

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105685 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic, needs-bisection

[Bug ipa/105682] 12/13 Regression] Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105682 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug c++/105683] [12/13 Regression] Infinite loop (at runtime) with construction of vector of variant

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105683 --- Comment #1 from Andrew Pinski --- It is calling the copy constructor (which you missed in your comment): value(const value& other) noexcept : v{other.v} { } Which is called via: inline

[Bug c++/105683] [12/13 Regression] Infinite loop (at runtime) with construction of vector of variant

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105683 Andrew Pinski changed: What|Removed |Added Summary|[12 Regression] Infinite|[12/13 Regression] Infinite

[Bug tree-optimization/105684] Bogus `-Warray-bounds` in partially allocated struct

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105684 Andrew Pinski changed: What|Removed |Added Component|c |tree-optimization Keywords|

[Bug fortran/105674] Wrong bounds for assumed rank pointer

2022-05-21 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105674 --- Comment #2 from anlauf at gcc dot gnu.org --- Reduced testcase, rank 1, no pointer or target needed: program test implicit none integer, dimension(4) :: dim_1 = 42 print*, 'lbound', lbound(dim_1), 'ubound', ubound(dim_1) print*, ''

[committed] testsuite: Skip vectorize tests for PRU

2022-05-21 Thread Dimitar Dimitrov
PRU has single-cycle constant cost for any jump, and it cannot vectorise. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/gen-vect-11.c: For PRU target, skip the vectorizing checks in tree dumps. * gcc.dg/tree-ssa/gen-vect-11a.c: Ditto. * gcc.dg/tree-ssa/gen-vect-2.c:

[committed] testsuite: Adjust pr91088.c for default_packed targets

2022-05-21 Thread Dimitar Dimitrov
Committed as obvious. PR ipa/91088 gcc/testsuite/ChangeLog: * gcc.dg/ipa/pr91088.c: Adjust member offset checks to accommodate targets which pack structures by default. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.dg/ipa/pr91088.c | 3 ++- 1 file changed, 2

[committed] testsuite: Skip gcc.dg/pr46647.c for PRU

2022-05-21 Thread Dimitar Dimitrov
Like AVR and Cris, PRU has no alignment requirements. Thus it is also affected by PR53535. PR middle-end/53535 gcc/testsuite/ChangeLog: * gcc.dg/pr46647.c: Skip for pru target. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.dg/pr46647.c | 4 ++-- 1 file changed, 2

[committed] testsuite: Skip ifcvt-4.c for PRU

2022-05-21 Thread Dimitar Dimitrov
PRU has no condition code and conditional moves. gcc/testsuite/ChangeLog: * gcc.dg/ifcvt-4.c: Skip for PRU. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.dg/ifcvt-4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c

[committed] testsuite: Mark extra warnings for default_packed

2022-05-21 Thread Dimitar Dimitrov
If the target uses packed structs by default, there are no trailing padding bytes allocated. Hence extra warnings are emitted. Committed as obvious. gcc/testsuite/ChangeLog: * gcc.dg/Warray-bounds-48-novec.c: Add expected warnings if target packs the structs by default.

[Bug ipa/91088] IPA-cp cost evaluation is too conservative for "if (f(param) cmp const_val)" condition

2022-05-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91088 --- Comment #6 from CVS Commits --- The master branch has been updated by Dimitar Dimitrov : https://gcc.gnu.org/g:addacdc87b044e63d72054036907c91a18be6734 commit r13-699-gaddacdc87b044e63d72054036907c91a18be6734 Author: Dimitar Dimitrov

[Bug middle-end/53535] non-aligned memset on non-strict-alignment targets not optimized where aligned memset is

2022-05-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53535 --- Comment #7 from CVS Commits --- The master branch has been updated by Dimitar Dimitrov : https://gcc.gnu.org/g:0380b6575f61e5bd9f428887790716a57dd66488 commit r13-698-g0380b6575f61e5bd9f428887790716a57dd66488 Author: Dimitar Dimitrov

[Bug libstdc++/105681] libstdc++-v3 fails to build on msp430

2022-05-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105681 Jonathan Wakely changed: What|Removed |Added Keywords||build --- Comment #1 from Jonathan

[PATCH] Simplify vec_unpack of uniform_vector_p constructors in match.pd.

2022-05-21 Thread Roger Sayle
This patch simplifies vec_unpack_hi_expr/vec_unpack_lo_expr of a uniform constructor or vec_duplicate operand. The motivation is from PR 105621 where after optimization, we're left with: vect_cst__21 = {c_8(D), c_8(D), c_8(D), c_8(D)}; vect_iftmp.7_4 = [vec_unpack_hi_expr] vect_cst__21; It

[Bug rtl-optimization/105686] New: [10/11/12/13 Regression] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 8 with -fnon-call-exceptions

2022-05-21 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105686 Bug ID: 105686 Summary: [10/11/12/13 Regression] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 8 with -fnon-call-exceptions Product: gcc

[Bug ipa/105685] New: Still Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))`

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105685 Bug ID: 105685 Summary: Still Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))` Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[PING] PR middle-end/95126: Expand small const structs as immediate constants

2022-05-21 Thread Roger Sayle
I'd like to ping my patch for PR middle-end/95126 from February: https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590949.html As a regression fix, this has missed GCC 12, but hopefully its suitable for 13 now we're back in stage1. The patch has been refreshed and retested against gcc 13

[Bug c/105684] New: Bogus `-Warray-bounds` in partially allocated struct

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105684 Bug ID: 105684 Summary: Bogus `-Warray-bounds` in partially allocated struct Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/105683] New: [12 Regression] Infinite loop with construction of vector of variant

2022-05-21 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105683 Bug ID: 105683 Summary: [12 Regression] Infinite loop with construction of vector of variant Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug c/105682] New: Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105682 Bug ID: 105682 Summary: Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[Bug libstdc++/105681] New: libstdc++-v3 fails to build on msp430

2022-05-21 Thread beagleboard at davidjohnsummers dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105681 Bug ID: 105681 Summary: libstdc++-v3 fails to build on msp430 Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/105680] undefined type after new does not give a helpful error message

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105680 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/105680] New: undefined type after new does not give a helpful error message

2022-05-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105680 Bug ID: 105680 Summary: undefined type after new does not give a helpful error message Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic