[Bug target/105122] [12 Regression] Testsuite failures since r12-7931 on i686-linux

2022-04-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105122 --- Comment #3 from Richard Biener --- PASS: gcc.dg/strlenopt-73.c (test for excess errors) gcc.dg/strlenopt-73.c: pattern found 4 times FAIL: gcc.dg/strlenopt-73.c scan-tree-dump-times optimized "strlen" 0 gcc.dg/strlenopt-73.c: pattern found 6

[Bug c++/105143] New: ICE when trying to emit a [[nodiscard]] warning

2022-04-03 Thread rl.alt.accnt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105143 Bug ID: 105143 Summary: ICE when trying to emit a [[nodiscard]] warning Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug ipa/104303] [12 regression] gnatmake is miscompiled by IPA/modref

2022-04-03 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104303 --- Comment #5 from Jan Hubicka --- So what modref see on calle is: void concat5_pkg1.make_failed (struct s) { struct string

[Bug tree-optimization/105142] [12 Regression] Wrong code with -O2 since r12-2591

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105142 --- Comment #2 from Jakub Jelinek --- long long int c = 3623214276426624192LL; unsigned short b; char a = 42; const long long &min(const long long &x, const long long &y) { return x < y ? x : y; } __attribute__((noipa)) void test() { b = min(a,

[Bug target/104987] [12 Regression] Recent change causing vrp13.c regressions on several targets

2022-04-03 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104987 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/104987] [12 Regression] Recent change causing vrp13.c regressions on several targets

2022-04-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104987 --- Comment #9 from CVS Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:0364465e3708249ece810ca5d65164552595538c commit r12-7974-g0364465e3708249ece810ca5d65164552595538c Author: Jeff Law Date: Sun Apr 3 1

[Bug tree-optimization/105142] [12 Regression] Wrong code with -O2 since r12-2591

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105142 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Summary|[12 Regression] Wr

[Bug tree-optimization/105142] New: [12 Regression] Wrong code with -O2

2022-04-03 Thread vsevolod.livinskiy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105142 Bug ID: 105142 Summary: [12 Regression] Wrong code with -O2 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimiz

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #7 from Jakub Jelinek --- To be precise, with pragma pack(1) c has alignof == 1, so it really depends on what is before it in the section. In the #c0 case, the diagnostic said 0x004040ca which means that ((uintptr_t) &c.b % 4) =

[Bug fortran/105138] [7,8,9,10,11,12,F95] Bogus error when function name does not shadow an intrinsic when RESULT clause is used

2022-04-03 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105138 --- Comment #10 from Steve Kargl --- On Sun, Apr 03, 2022 at 08:27:03PM +, anlauf at gcc dot gnu.org wrote: > --- Comment #9 from anlauf at gcc dot gnu.org --- > (In reply to kargl from comment #8) > > This patch fixes the error. The commen

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #6 from Andrew Pinski --- (In reply to Li Shaohua from comment #5) > No, I meant > > #pragma pack(1) > struct { > char a[3]; > int b; > } c; In this case, the global variable just happens to be aligned to 4 bytes. That is all.

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #5 from Li Shaohua --- No, I meant #pragma pack(1) struct { char a[3]; int b; } c;

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #4 from Jakub Jelinek --- Without pragma pack that is correct, the compiler inserts padding so that c.b is properly aligned.

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #3 from Li Shaohua --- Thanks for your explanation. struct { char a[3]; int b; } c; When I did this, the warning did not show up. Should it still be misaligned?

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

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

[Bug sanitizer/105141] #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 --- Comment #1 from Jakub Jelinek --- That warning is completely correct and the testcase wrong.

[Bug fortran/105138] [7,8,9,10,11,12,F95] Bogus error when function name does not shadow an intrinsic when RESULT clause is used

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

[Bug sanitizer/105141] New: #pragma pack(1) causes incorrect UBSAN warning

2022-04-03 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105141 Bug ID: 105141 Summary: #pragma pack(1) causes incorrect UBSAN warning Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: s

[Bug target/105123] [9/10 Regression] wrong code with -m32 -mtune=i686 and __builtin_shuffle()

2022-04-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105123 Jakub Jelinek changed: What|Removed |Added Summary|[9/10/11/12 Regression] |[9/10 Regression] wrong

[Bug target/105123] [9/10/11/12 Regression] wrong code with -m32 -mtune=i686 and __builtin_shuffle()

2022-04-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105123 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ecc6450668326e52d019b3c298f2c61734ee32c2 commit r11-9755-gecc6450668326e52d019b3c298f2c61734ee32c2 Author: Jakub Jelinek

[Bug target/105123] [9/10/11/12 Regression] wrong code with -m32 -mtune=i686 and __builtin_shuffle()

2022-04-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105123 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:e1a74058b784c845e84a0cf1997b54b984df483d commit r12-7973-ge1a74058b784c845e84a0cf1997b54b984df483d Author: Jakub Jelinek Date: S

[Bug target/104988] Zero register (R1) clobbered by __udivmodsi4 for AVR

2022-04-03 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104988 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRM

[Bug d/104878] untranslated string in diagnostic "%s %qs instantiated"

2022-04-03 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104878 Iain Buclaw changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug ipa/105140] New: [10/11/12 Regression] ICE: SIGSEGV in fold_convertible_p with conflicting function redeclaration

2022-04-03 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105140 Bug ID: 105140 Summary: [10/11/12 Regression] ICE: SIGSEGV in fold_convertible_p with conflicting function redeclaration Product: gcc Version: 12.0 S

[Bug target/100929] gcc fails to optimize less to min for SIMD code

2022-04-03 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100929 --- Comment #6 from Marc Glisse --- (blend is now lowered in gimple) For the integer case, the mix of vector(int) and vector(char) obfuscates things a bit, we have __m256i if_else_int (__m256i x, __m256i y) { vector(32) char _4; vector(32)

[Bug c++/103328] [11/12 Regression] ICE in remap_gimple_stmt with coroutines since r11-7419-g0f161cc8494cf728

2022-04-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103328 --- Comment #23 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:0847ad33b908af88bca1e6980d0b977316d05e18 commit r12-7971-g0847ad33b908af88bca1e6980d0b977316d05e18 Author: Benno Evers Date: Sa