[Bug c++/109480] g++-12 and g++-11 failed to compile the attached source file while g++-10 and clang can.

2023-04-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109480 --- Comment #1 from Andrew Pinski --- Adding: template friend struct RemoteAccessibleBase; To the RemoteAccessibleBase template struct fixes the issue

[Bug c++/109480] New: g++-12 and g++-11 failed to compile the attached source file while g++-10 and clang can.

2023-04-11 Thread ishikawa at yk dot rim.or.jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109480 Bug ID: 109480 Summary: g++-12 and g++-11 failed to compile the attached source file while g++-10 and clang can. Product: gcc Version: 11.3.0 Status: UNCONFIRMED

Re: [PATCH] testsuite: update requires for powerpc/float128-cmp2-runnable.c

2023-04-11 Thread Jiufu Guo via Gcc-patches
Jiufu Guo via Gcc-patches writes: > Hi, > > Segher Boessenkool writes: > >> On Tue, Apr 11, 2023 at 05:40:09PM +0800, Kewen.Lin wrote: >>> on 2023/4/11 17:14, guojiufu wrote: >>> > Thanks for raising this concern. >>> > The behavior to check about bif on FLOAT128_HW and emit an error message

Re: [PATCH] testsuite: update requires for powerpc/float128-cmp2-runnable.c

2023-04-11 Thread Jiufu Guo via Gcc-patches
Hi, Segher Boessenkool writes: > On Tue, Apr 11, 2023 at 05:40:09PM +0800, Kewen.Lin wrote: >> on 2023/4/11 17:14, guojiufu wrote: >> > Thanks for raising this concern. >> > The behavior to check about bif on FLOAT128_HW and emit an error message >> > for >> > requirements on quad-precision is

[Bug target/108815] gcc.target/powerpc/pr83677.c fails on power 9 BE

2023-04-11 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108815 Kewen Lin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/109479] [RISC-V] Build with rv64gc_zve32x_zvl64b should fail but actually not

2023-04-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109479 --- Comment #1 from Andrew Pinski --- Created attachment 54836 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54836=edit testcase Next time please attach or put inline the testcase instead of just linking to godbolt. Also you should put

Re: Fix ICEs related to VM types in C [PR106465, PR107557, PR108424, PR109450]

2023-04-11 Thread Martin Uecker via Gcc-patches
Am Mittwoch, dem 12.04.2023 um 00:32 + schrieb Joseph Myers: > On Tue, 11 Apr 2023, Martin Uecker via Gcc-patches wrote: > > > Ok, here is another attempt on fixing issues with size expression. > > Not all are regressions, but it does not make sense to try to split > > it up. > > This

[Bug tree-optimization/109410] [13 Regression] ICE: verify_flow_info failed

2023-04-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109410 --- Comment #5 from Sam James --- (In reply to Jakub Jelinek from comment #4) > PR108783? Test case was from it. I don't mind not adding such things to See Also though, I'm still new to bug wrangling. Sorry if it's wrong!

[Bug c/109479] New: [RISC-V] Build with rv64gc_zve32x_zvl64b should fail but actually not

2023-04-11 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109479 Bug ID: 109479 Summary: [RISC-V] Build with rv64gc_zve32x_zvl64b should fail but actually not Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug bootstrap/109460] Build gcc for win32 failed in gcc13 master branch

2023-04-11 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460 --- Comment #13 from Huaqi --- Hello, I didn't take a try with other mingw gcc version, locally I just revert 304c7d44a2212e6fd618587331cea2c266dc10bf commit, then it works for me. Thanks Huaqi

[Bug bootstrap/109460] Build gcc for win32 failed in gcc13 master branch

2023-04-11 Thread fanghuaqi at vip dot qq.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460 --- Comment #12 from Huaqi --- Hello, this is the command used to configure gcc /work/gcc/configure --target=riscv64-unknown-elf --host=i686-w64-mingw32 --prefix=/work/LocalInstall/win32/newlibc/2023.04-eng2/gcc --disable-shared --di

[Bug target/108815] gcc.target/powerpc/pr83677.c fails on power 9 BE

2023-04-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108815 --- Comment #2 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:5582ad0afb051a76231b2959487f4ef1746df283 commit r13-7142-g5582ad0afb051a76231b2959487f4ef1746df283 Author: Kewen Lin Date: Tue Apr

[Bug libstdc++/109474] chunk_by doesn't work for ranges of proxy references

2023-04-11 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109474 --- Comment #2 from Barry Revzin --- Serves me right for only checking vector (which worked) and vector (which didn't) and not bothering to check vector const (which also doesn't work) and thus overly complicating the bug report. I got too

[PATCH, rs6000] xfail float128 comparison test case that fails on powerpc64 [PR108728]

2023-04-11 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch xfails a float128 comparison test case on powerpc64 that fails due to a longstanding issue with floating-point compares. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58684 for more information. The patch passed regression test on Power Linux platforms. Thanks Gui

Re: [PATCH] combine: Fix simplify_comparison AND handling for WORD_REGISTER_OPERATIONS targets [PR109040]

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/10/23 01:10, Jakub Jelinek wrote: On Sat, Apr 08, 2023 at 06:25:32PM -0600, Jeff Law wrote: On 4/6/23 08:21, Eric Botcazou wrote: So, perhaps just in the return op0; case add further code for WORD_REGISTER_OPERATIONS and sub-word modes which will call nonzero_bits again for the word

Re: Fix ICEs related to VM types in C [PR106465, PR107557, PR108424, PR109450]

2023-04-11 Thread Joseph Myers
On Tue, 11 Apr 2023, Martin Uecker via Gcc-patches wrote: > Ok, here is another attempt on fixing issues with size expression. > Not all are regressions, but it does not make sense to try to split > it up. This wording implies this is version 2 or later of the patch, could you please give a

[PATCH] PR tree-optimization/109462 - Don't use ANY PHI equivalences in range-on-entry.

2023-04-11 Thread Andrew MacLeod via Gcc-patches
This is a carry over from PR 108139. When we have a PHI node which has 2 arguments and one is undefined, we create an equivalence between the LHS and the non-undefined PHI argument.  THis allows us to perform certain optimizations. The problem is, when we are evaluating range-on-entry in the

Re: [PATCH] RISC-V: Fix PR108279

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/11/23 17:09, juzhe.zh...@rivai.ai wrote: I don't want to seperate VSETVL PASS into 2 seperate PASS. I want make everything cleaner. Well, two pass vsetvl might actually be cleaner. But as I've noted before, now is not the time to debate the vsetvl implementation detail. We've got much

Re: Re: [PATCH] RISC-V: Fix PR108279

2023-04-11 Thread juzhe.zhong
I don't want to seperate VSETVL PASS into 2 seperate PASS. I want make everything cleaner. Another example is VSETVL PASS can do the branch prediction: https://godbolt.org/z/K44r98E5v In function "f", you can see we put the hoist vsetvl from a more likely block (i !=cond) outside the loop, then

Re: [PATCH] c++: Fix Solaris bootstraps across midnight

2023-04-11 Thread Nathan Sidwell via Gcc-patches
Jakub, for avoidance of doubt, your version is fine. nathan On 4/11/23 18:06, Nathan Sidwell wrote: On 4/11/23 04:12, Jakub Jelinek wrote: Hi! When working on the PR109040 fix, I wanted to test it on some WORD_REGISTER_OPERATIONS target and tried sparc-solaris on GCC Farm. My bootstrap

Re: [PATCH] c++: Fix Solaris bootstraps across midnight

2023-04-11 Thread Nathan Sidwell via Gcc-patches
On 4/11/23 04:12, Jakub Jelinek wrote: Hi! When working on the PR109040 fix, I wanted to test it on some WORD_REGISTER_OPERATIONS target and tried sparc-solaris on GCC Farm. My bootstrap failed in comparison failure on cp/module.o, because Solaris date doesn't support the -r option and one

[Bug rtl-optimization/109478] New: FAIL: g++.dg/other/pr104989.C -std=gnu++14 (internal compiler error: Segmentation fault)

2023-04-11 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109478 Bug ID: 109478 Summary: FAIL: g++.dg/other/pr104989.C -std=gnu++14 (internal compiler error: Segmentation fault) Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug tree-optimization/109462] [13 Regression] Possible miscompilation of clang LocalizationChecker since r13-1938

2023-04-11 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109462 --- Comment #5 from Andrew Macleod --- Created attachment 54835 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54835=edit in progress patch THe fix for PR 108139 disallowed an equivalences with a PHI because it may be a one way

Re: [PATCH] RISC-V: Fix PR108279

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/11/23 02:55, Richard Biener wrote: Just to throw in a comment here - I think you should present LCM with something it can identify as the same for compatible vsetvl and then it should just work? OTOH if "compatible" is not transitive that's not possible (but then I can't quickly make

Re: [PATCH] RISC-V: Force ilp32d for the T-Head FMV test

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/11/23 14:10, Palmer Dabbelt wrote: These functions are NOPs on the soft-float ABIs. Since we're already forcing the ISA, let's just force the ABI too. gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadfmv-fmv.c: Force the ilp32d ABI. --- This one is also in the testing queue.

Re: [PATCH] RISC-V: Clean up the pr106602.c testcase

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/11/23 13:03, Palmer Dabbelt wrote: The test case that was added is rv64i-specific, as there's better ways to generate this code on rv32i (where the long/int cast is a NOP) and on rv64i_zba (where we have word shifts). This renames the original test case and adds two more for those

Re: [RFC PATCH] range-op-float: Fix up op1_op2_relation of comparisons

2023-04-11 Thread Andrew MacLeod via Gcc-patches
On 4/11/23 04:21, Jakub Jelinek wrote: Hi! This patch was what I've tried first before the currently committed PR109386 fix. Still, I think it is the right thing until we have proper full set of VREL_* relations for NANs (though it would be really nice if op1_op2_relation could be passed

[PATCH] RISC-V: Force ilp32d for the T-Head FMV test

2023-04-11 Thread Palmer Dabbelt
These functions are NOPs on the soft-float ABIs. Since we're already forcing the ISA, let's just force the ABI too. gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadfmv-fmv.c: Force the ilp32d ABI. --- This one is also in the testing queue. OK for trunk? ---

[Bug tree-optimization/109477] [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 8) when building busybox

2023-04-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109477 --- Comment #3 from Sam James --- See also PR109469 and PR109410.

[Bug tree-optimization/109477] [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 8) when building busybox

2023-04-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109477 --- Comment #2 from Sam James --- Created attachment 54834 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54834=edit wget.i (reduced further, cleaned up, check)

[Bug tree-optimization/109462] [13 Regression] Possible miscompilation of clang LocalizationChecker since r13-1938

2023-04-11 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109462 --- Comment #4 from Andrew Macleod --- In DOM3 I see 901970 range_on_entry (Result$16_552) to BB 120 <...> Equivalence update! : _143 has range : [irange] TokenKind [22, 22] NONZERO 0x16 refining range to :[irange] TokenKind [22, 22]

[Bug tree-optimization/109477] [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 8) when building busybox

2023-04-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109477 --- Comment #1 from Sam James --- Created attachment 54833 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54833=edit wget.i (reduced)

[Bug fortran/104312] ICE with -ff2c in fold_convert_loc, at fold-const.cc:2451

2023-04-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104312 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/109477] New: [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 8) when building busybox

2023-04-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109477 Bug ID: 109477 Summary: [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 8) when building busybox

[PATCH] Fortran: fix functions with entry and pointer/allocatable result [PR104312]

2023-04-11 Thread Harald Anlauf via Gcc-patches
Dear all, the testcase in the PR by Gerhard exhibited a mis-treatment of the function decl of the entry master if the function result had a pointer attribute and the translation unit was compiled with -ff2c. We actually should not use the peculiar special treatment for default-real functions in

libgm2: Adjust 'autogen.sh' to 'ACLOCAL_AMFLAGS', and simplify (was: [PATCH v3 8/19] modula2 front end: libgm2 contents)

2023-04-11 Thread Thomas Schwinge
Hi! On 2022-12-06T14:47:26+, Gaius Mulley via Gcc-patches wrote: > This patch set consists of the libgm2 makefile, autoconf sources > necessary to build the libm2pim, libm2iso, libm2min, libm2cor > and libm2log. Notice: > --- /dev/null 2022-08-24 16:22:16.88870 +0100 > +++

[Bug target/109476] Missing optimization for 8bit/8bit multiplication / regression

2023-04-11 Thread klaus.doldinger64 at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109476 --- Comment #1 from Wilhelm M --- Inetristingly changing the function to uint16_t mul(const uint8_t a, const uint16_t b) { return static_cast((b >> 8) + 1) * a ; } produces optimal mul(unsigned char, unsigned int): subi

[Bug c++/109476] New: Missing optimization for 8bit/8bit multiplication / regression

2023-04-11 Thread klaus.doldinger64 at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109476 Bug ID: 109476 Summary: Missing optimization for 8bit/8bit multiplication / regression Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[PATCH] RISC-V: Clean up the pr106602.c testcase

2023-04-11 Thread Palmer Dabbelt
The test case that was added is rv64i-specific, as there's better ways to generate this code on rv32i (where the long/int cast is a NOP) and on rv64i_zba (where we have word shifts). This renames the original test case and adds two more for those targets. gcc/testsuite/ChangeLog: PR

Re: Fix ICEs related to VM types in C [PR106465, PR107557, PR108424, PR109450]

2023-04-11 Thread Andrew Pinski via Gcc-patches
On Tue, Apr 11, 2023 at 11:47 AM Martin Uecker via Gcc-patches wrote: > > > > Ok, here is another attempt on fixing issues with size expression. > Not all are regressions, but it does not make sense to try to split > it up. They might be regressions still from pre gimple (3.4 and before), though

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread jorge.pinto.sousa at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 --- Comment #6 from Jorge Pinto Sousa --- Let me rephrase, Im sorry maybe I was too broad. For any specific gcc binary, > /usr/bin/gcc-8 -Q --help=warnings | grep enabled Will give me the list of warnings enabled by default?

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread jorge.pinto.sousa at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 Jorge Pinto Sousa changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

Fix ICEs related to VM types in C [PR106465, PR107557, PR108424, PR109450]

2023-04-11 Thread Martin Uecker via Gcc-patches
Ok, here is another attempt on fixing issues with size expression. Not all are regressions, but it does not make sense to try to split it up. Martin Fix ICEs related to VM types in C [PR106465, PR107557, PR108424, PR109450] Size expressions were sometimes lost and not

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

☝ Buildbot (Sourceware): gccrust - worker not available (master)

2023-04-11 Thread builder--- via Gcc-rust
A retry build has been detected on builder gccrust-opensusetw-x86_64 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#builders/103/builds/975 Build state: worker not available Revision: (unknown) Worker: bbo1-1 Build Reason: (unknown)

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 --- Comment #3 from Andrew Pinski --- >but then some warnings despite being listed there were not triggered: https://godbolt.org/z/GGnjcjxKh You get the trigraph warning if you don't supply any options. -std=c++14 option enables -trigraphs

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread jorge.pinto.sousa at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 --- Comment #2 from Jorge Pinto Sousa --- > No in fact -Wformat-security is not enabled by default in the released > version of GCC from the FSF, the distro I know that enables it by default is > both Debian and Ubuntu. Ah so the ones that

[Bug other/109475] How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 --- Comment #1 from Andrew Pinski --- >So we can say that these are the only two that are default enabled? No in fact -Wformat-security is not enabled by default in the released version of GCC from the FSF, the distro I know that enables it

[Bug other/109475] New: How to check for default compiler warnings in g++ 8.4.0

2023-04-11 Thread jorge.pinto.sousa at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109475 Bug ID: 109475 Summary: How to check for default compiler warnings in g++ 8.4.0 Product: gcc Version: 8.4.0 Status: UNCONFIRMED Severity: normal

[Bug lto/109369] LTO drops explicitly referenced symbol _pei386_runtime_relocator

2023-04-11 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109369 --- Comment #8 from Pali Rohár --- So from the discussion, do I understand correctly that this is rather LD linker issue?

[Bug libstdc++/108291] chunk_­by_­view::find-next/find-prev uses wrong lambda helper

2023-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108291 Patrick Palka changed: What|Removed |Added Target Milestone|--- |13.0

[Bug libstdc++/108291] chunk_­by_­view::find-next/find-prev uses wrong lambda helper

2023-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108291 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug libstdc++/109474] chunk_by doesn't work for ranges of proxy references

2023-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109474 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/108291] chunk_­by_­view::find-next/find-prev uses wrong lambda helper

2023-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108291 Patrick Palka changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug libstdc++/109474] New: chunk_by doesn't work for ranges of proxy references

2023-04-11 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109474 Bug ID: 109474 Summary: chunk_by doesn't work for ranges of proxy references Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: MIN/MAX and trapping math and NANs

2023-04-11 Thread Joseph Myers
On Tue, 11 Apr 2023, Michael Matz via Gcc wrote: > Note that this makes minNum/maxNum (and friends) not associative. Also, > different languages and different hardware implement fmin/fmax different > and sometimes in conflict with 754-2008 (e.g. on SSE2 maxsd isn't > commutative but maxNum

[Bug target/96882] Wrong assembly code generated with arm-none-eabi-gcc -flto -mfloat-abi=hard options

2023-04-11 Thread dcrocker at eschertech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96882 --- Comment #11 from David Crocker --- As the master branch was updated a year ago according to comment 10, does this mean that there is now a stable release of gcc that incudes the patch?

[Bug target/65010] ppc backend generates unnecessary signed extension

2023-04-11 Thread aagarwa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65010 Ajit Kumar Agarwal changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug target/103784] suboptimal code for returning bool value on target ppc

2023-04-11 Thread aagarwa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 Ajit Kumar Agarwal changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1

2023-04-11 Thread aagarwa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41742 Ajit Kumar Agarwal changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug middle-end/82940] Suboptimal code for (a & 0x7f) | (b & 0x80) on powerpc

2023-04-11 Thread aagarwa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82940 Ajit Kumar Agarwal changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/60512] would be useful if gcc implemented __has_feature similary to clang

2023-04-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60512 --- Comment #13 from Alex Coplan --- Clang recognizes the "cxx_defaulted_functions" feature to detect whether "= default" functions are supported. It's clear that __has_feature (cxx_defaulted_functions) should evaluate to 1 for -std=c++11 and

Re: [PATCH] RISC-V: avoid splitting small constant in i_extrabit pattern

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/9/23 23:07, Lin Sinan via Gcc-patches wrote: From: Sinan Lin there is no need to split an xori/ori with an small constant. take the test case `int foo(int idx) { return idx|3; }` as an example, rv64im_zba generates: ori a0,a0,3 ret but, rv64im_zba_zbs generates:

Re: [PATCH] RISC-V: avoid splitting small constant in i_extrabit pattern

2023-04-11 Thread Jeff Law via Gcc-patches
On 4/10/23 14:59, Philipp Tomsich wrote: On Mon, 10 Apr 2023 at 17:57, Jeff Law wrote: On 4/9/23 23:07, Lin Sinan via Gcc-patches wrote: From: Sinan Lin there is no need to split an xori/ori with an small constant. take the test case `int foo(int idx) { return idx|3; }` as an example,

[Bug c/89180] [meta-bug] bogus/missing -Wunused warnings

2023-04-11 Thread gnu.ojxq8 at dralias dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 98450, which changed state. Bug 98450 Summary: Inconsistent Wunused-variable warning for std::array https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 What|Removed |Added

[Bug c++/98450] Inconsistent Wunused-variable warning for std::array

2023-04-11 Thread gnu.ojxq8 at dralias dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 maic changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1

2023-04-11 Thread gnu.ojxq8 at dralias dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 --- Comment #30 from maic --- This bug still exists for our project. To reproduce: # g++ --version g++ (GCC) 13.0.1 20230404 (Red Hat 13.0.1-0) # cat /tmp/2.cpp const int (const int , const bool ) { return i; } int main() { int a;

Re: MIN/MAX and trapping math and NANs

2023-04-11 Thread Michael Matz via Gcc
Hello, On Tue, 11 Apr 2023, Richard Biener via Gcc wrote: > In the case we ever implement conforming FP exception support > either targets would need to be fixed to mask unexpected exceptions > or we have to refrain from moving instructions where the target > implementation may rise exceptions

Re: [PATCH] testsuite: update requires for powerpc/float128-cmp2-runnable.c

2023-04-11 Thread Segher Boessenkool
On Tue, Apr 11, 2023 at 05:40:09PM +0800, Kewen.Lin wrote: > on 2023/4/11 17:14, guojiufu wrote: > > Thanks for raising this concern. > > The behavior to check about bif on FLOAT128_HW and emit an error message for > > requirements on quad-precision is added in gcc12. This is why gcc12 fails to >

[Bug tree-optimization/109473] [10/11/12/13 Regression] ICE during GIMPLE pass: vect: verify_gimple failed with -O1 -ftree-loop-vectorize

2023-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109473 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|---

Re: [PATCH] libstdc++: Implement ranges::enumerate_view from P2164R9

2023-04-11 Thread Jonathan Wakely via Gcc-patches
On Tue, 11 Apr 2023 at 15:59, Patrick Palka via Libstdc++ wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk perhaps? Yes, this is only for C++23 so OK for trunk now. The auto(x) uses mean this won't work with older versions of Clang, but that's OK. I already introduced that

Re: [PATCH] libstdc++: Implement LWG 3904 change to lazy_split_view's iterator

2023-04-11 Thread Jonathan Wakely via Gcc-patches
On Tue, 11 Apr 2023 at 15:58, Patrick Palka via Libstdc++ wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk/12? OK for all, thanks. (This hasn't been approved by LWG yet, but it should be soon.) > > libstdc++-v3/ChangeLog: > > * include/std/ranges

[PATCH] libstdc++: Implement ranges::enumerate_view from P2164R9

2023-04-11 Thread Patrick Palka via Gcc-patches
Tested on x86_64-pc-linux-gnu, does this look OK for trunk perhaps? libstdc++-v3/ChangeLog: * include/std/ranges (__cpp_lib_ranges_enumerate): Define for C++23. (__detail::__range_with_movable_reference): Likewise. (enumerate_view): Likewise.

[PATCH] libstdc++: Implement LWG 3904 change to lazy_split_view's iterator

2023-04-11 Thread Patrick Palka via Gcc-patches
Tested on x86_64-pc-linux-gnu, does this look OK for trunk/12? libstdc++-v3/ChangeLog: * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter): Propagate _M_trailing_empty in the const-converting constructor as per LWG 3904. *

[Bug fortran/61615] Failure to resolve correct generic with TYPE(C_PTR) arguments

2023-04-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61615 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug fortran/99982] INTERFACE selects wrong module procedure involving C_PTR and C_FUNPTR

2023-04-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99982 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[Bug tree-optimization/109473] ICE during GIMPLE pass: vect: verify_gimple failed with -O1 -ftree-loop-vectorize

2023-04-11 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109473 Arsen Arsenović changed: What|Removed |Added Summary|ICE during GIMPLE pass: |ICE during GIMPLE pass:

[PATCH, v2] Fortran: resolve correct generic with TYPE(C_PTR) arguments [PR61615]

2023-04-11 Thread Harald Anlauf via Gcc-patches
Hi Jerry, all, On 4/11/23 02:43, Jerry D via Gcc-patches wrote: On 4/10/23 1:49 PM, Harald Anlauf via Fortran wrote: Dear all, when comparing formal and actual arguments of a procedure, there was no check of rank for derived types from intrinsic module ISO_C_BINDING. This could lead to a

[Bug tree-optimization/81953] Code sinking increases register pressure

2023-04-11 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81953 Peter Bergner changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from Peter

[Bug tree-optimization/109473] New: ICE during GIMPLE pass: vect: verify_gimple failed with -m32

2023-04-11 Thread arsen at gcc dot gnu.org via Gcc-bugs
gcc version 13.0.1 20230411 (experimental) (GCC) ~/gcc/scratch_build/gcc$ echo -n g:; git -C ../../scratch rev-parse HEAD^ g:b8e32978e3d9e3b88cd4f441edfdebfa395a5c26 (the commit applied on top of this is a maintainer-scripts/ edit) I don't have a vanilla build of current releases/gc

[Bug tree-optimization/109410] [13 Regression] ICE: verify_flow_info failed

2023-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109410 --- Comment #4 from Jakub Jelinek --- PR108783? Anyway, will have a look now.

[Bug ada/109472] New: [13 regression] False unread/unassigned warning for variable in local package

2023-04-11 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109472 Bug ID: 109472 Summary: [13 regression] False unread/unassigned warning for variable in local package Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

Re: [PATCH] c++: Define built-in for std::tuple_element [PR100157]

2023-04-11 Thread Patrick Palka via Gcc-patches
On Thu, 26 Jan 2023, Jason Merrill wrote: > On 1/25/23 15:35, Patrick Palka wrote: > > On Tue, 17 Jan 2023, Jason Merrill wrote: > > > > > On 1/9/23 14:25, Patrick Palka via Gcc-patches wrote: > > > > On Mon, 9 Jan 2023, Patrick Palka wrote: > > > > > > > > > On Wed, 5 Oct 2022, Patrick Palka

☺ Buildbot (Sourceware): gccrust - build successful (master)

2023-04-11 Thread builder--- via Gcc-rust
A restored build has been detected on builder gccrust-opensusetw-x86_64 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#builders/103/builds/934 Build state: build successful Revision: 6c4fa22d38492d9d80255b6d2e52370bde6e8749 Worker: bb3 Build

[Bug target/109067] Powerpc GCC does not support __ibm128 complex multiply/divide if long double is IEEE 128-bit.

2023-04-11 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109067 Michael Meissner changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/109067] Powerpc GCC does not support __ibm128 complex multiply/divide if long double is IEEE 128-bit.

2023-04-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109067 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Michael Meissner : https://gcc.gnu.org/g:5a15a78b919c43954fbfcc90f53f34d7e2700c97 commit r11-10618-g5a15a78b919c43954fbfcc90f53f34d7e2700c97 Author: Michael

☠ Buildbot (Sourceware): gccrust - failed 'grep unexpected ...' (failure) (master)

2023-04-11 Thread builder--- via Gcc-rust
A new failure has been detected on builder gccrust-opensusetw-x86_64 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#builders/103/builds/933 Build state: failed 'grep unexpected ...' (failure) Revision: 615ee14c08e5eb2347813005bb3ad14efeddd725

Re: [PATCH v5] RISC-V: Fix regression of -fzero-call-used-regs=all

2023-04-11 Thread Kito Cheng via Gcc-patches
Hi Yanzhang: Thanks, applied to trunk now, and also congrats for your first patch on GCC! On Tue, Apr 11, 2023 at 8:00 PM Wang, Yanzhang wrote: > > Hi Kito, Juzhe, Jeff, > > Thanks for your kindly reviews. I have modified based on the comments and ran > the testsuite on my local. Could you

[Bug target/109104] [13 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1171 with -fzero-call-used-regs=all -march=rv64gv

2023-04-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109104 --- Comment #6 from CVS Commits --- The master branch has been updated by Kito Cheng : https://gcc.gnu.org/g:40fc8e3d4f600d89e6b065d6f12db7a816269c8f commit r13-7138-g40fc8e3d4f600d89e6b065d6f12db7a816269c8f Author: Yanzhang Wang Date: Tue

Re: [match.pd] [SVE] Add pattern to transform svrev(svrev(v)) --> v

2023-04-11 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 11 Apr 2023 at 14:17, Richard Biener wrote: > > On Wed, Apr 5, 2023 at 10:39 AM Prathamesh Kulkarni via Gcc-patches > wrote: > > > > Hi, > > For the following test: > > > > svint32_t f(svint32_t v) > > { > > return svrev_s32 (svrev_s32 (v)); > > } > > > > We generate 2 rev instructions

[Bug tree-optimization/109471] Missing loop unrolling for small std::array?

2023-04-11 Thread stefano.d at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109471 --- Comment #4 from Stefano --- Created attachment 54829 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54829=edit source code

Re: Re: [PATCH] machine_mode type size: Extend enum size from 8-bit to 16-bit

2023-04-11 Thread Kito Cheng via Gcc-patches
Let me give more explanation why RISC-V vector need so many modes than AArch64. The following will use "RVV" as an abbreviation for "RISC-V Vector" instructions. There are two key points here: - RVV has a concept called LMUL - you can understand that as register grouping, we can group up to 8

[Bug tree-optimization/109471] Missing loop unrolling for small std::array?

2023-04-11 Thread stefano.d at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109471 --- Comment #3 from Stefano --- (In reply to Xi Ruoyao from comment #2) > The code seems available in the godbolt link but it uses std::array, not > std::vector. I'm sorry. I mean std::array of course. :-/

[Bug tree-optimization/109471] Missing loop unrolling for small std::vector?

2023-04-11 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109471 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/109471] Missing loop unrolling for small std::vector?

2023-04-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109471 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug tree-optimization/109469] [13 regression] ICE: internal compiler error: verify_flow_info failed (error: returns_twice call is not first in basic block 2)

2023-04-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109469 Richard Biener changed: What|Removed |Added Target Milestone|--- |13.0 Assignee|unassigned at

[Bug testsuite/109466] [13 regression] gfortran.dg/gomp/affinity-clause-1.f90 fails after r13-7120-g46fe32cb4d887d

2023-04-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109466 Richard Biener changed: What|Removed |Added Keywords||testsuite-fail Target Milestone|---

Fwd: [V6][PATCH 2/2] Update documentation to clarify a GCC extension

2023-04-11 Thread Qing Zhao via Gcc-patches
Hi, Joseph, This is the 2nd ping to the 6th version of the patch -:) Please let me know if you have any further comments on the patch, and whether it’s Okay to commit it to trunk? Thanks a lot for the help. Qing Begin forwarded message: From: Qing Zhao via Gcc-patches

[Bug tree-optimization/109442] Dead local copy of std::vector not removed from function

2023-04-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109442 --- Comment #3 from Jonathan Wakely --- Ah, maybe the problem is that the library code manually elides destroying the elements, precisely because it's a no-op. So we don't actually destroy the elements, which means the compiler might think

Fwd: [V6][PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-04-11 Thread Qing Zhao via Gcc-patches
Hi, Jakub, This is the 2nd ping to the 6th version of the patches -:) Please let me know if you have any further comments on this patch, and whether it’s Okay to commit it to trunk? Thanks a lot for the help. Qing Begin forwarded message: From: Qing Zhao via Gcc-patches

  1   2   3   >