[Bug c/117197] ICE: 'verify_gimple' failed with vector_size

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 Richard Biener changed: What|Removed |Added Keywords||wrong-code CC|

[Bug middle-end/117195] WIDEN_SUM_EXPR/widen_[us]sum documentation is weak when the second oeprand is 2x the number of elements than other operand

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 --- Comment #4 from Richard Biener --- Note this tree code (and optab) is useful only for reductions since it is left unspecified which of the 2x number of input lanes are accumulated to which output lane (even accumulating _all_ input lanes to

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug target/117185] Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 --- Comment #5 from Richard Biener --- (In reply to John Paul Adrian Glaubitz from comment #4) > (In reply to John Paul Adrian Glaubitz from comment #3) > > (In reply to Richard Biener from comment #2) > > > I would suggest to change reload_in_p

[Bug c/117198] Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 --- Comment #2 from hanwei (K) --- However, if only the weak attribute is declared, warning of redundant redeclaration is generated regardless of the order, and the link:https://godbolt.org/z/e5aY7zYMh

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 Sam James changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c/117198] Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 --- Comment #3 from Andrew Pinski --- alias changes the name underneath and is not redundant .

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-10-18 Ever confirmed|0

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Andrew Pinski changed: What|Removed |Added Attachment #59379|0 |1 is obsolete|

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #10 from Andrew Pinski --- Created attachment 59379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59379&action=edit Reduced testcase `-O3 -flto -shared -fPIC -march=znver2` reproduces it with this testcase.

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Component|target

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #9 from Andrew Pinski --- ``` /home/apinski/upstream-gcc/bin/gcc -O3 -shared -fPIC -Wl,--whole-archive mceliece6688128f.i -Wl,--no-whole-archive -flto=auto -mtls-dialect=gnu2 -march=znver2 -fno-semantic-interposition ``` Is enough.

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #8 from Andrew Pinski --- ;; MEM [(void *)&reversal] = *.LC1; (insn 35 34 36 (set (reg:DI 667) (symbol_ref/f:DI ("*.LC11") [flags 0x2] )) "/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r1/work/libgcrypt-1.11.0/cipher/mceliece

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #7 from Andrew Pinski --- The function which seems to go wrong is butterflies_tr .

[Bug c/117197] ICE: 'verify_gimple' failed with vector_size

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Ever confirmed|0

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Also looked like it worked with r15-4403-ge020116db05635 unless I am doing > something wrong. I had to remove the -lgpg-error library from the link > commend tho

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #15

[Bug target/117200] [15 Regression] wrong code with vector compare / mask / shift at -O1

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117200 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/117200] New: [15 Regression] wrong code with vector compare / mask / shift at -O1

2024-10-17 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117200 Bug ID: 117200 Summary: [15 Regression] wrong code with vector compare / mask / shift at -O1 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: wrong-cod

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #5 from Andrew Pinski --- Also looked like it worked with r15-4403-ge020116db05635 unless I am doing something wrong. I had to remove the -lgpg-error library from the link commend though.

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #4 from Andrew Pinski --- Worked with r15-4331-g8c56d697b35d3d .

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #3 from Sam James --- 'x86_64-pc-linux-gnu-gcc-15 -O3 -shared -fPIC libgcrypt_la-visibility.i libgcrypt_la-misc.i libgcrypt_la-global.i libgcrypt_la-sexp.i libgcrypt_la-hwfeatures.i libgcrypt_la-stdmem.i libgcrypt_la-secmem.i libgcry

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Sam James changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2 fro

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #1 from Andrew Pinski --- I have not seen an undefined local symbol in a long time.

[Bug lto/117199] New: [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Bug ID: 117199 Summary: [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text') Product: gcc Version: 1

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 Andrew Pinski changed: What|Removed |Added Known to fail||6.1.0 --- Comment #7 from Andrew Pinski

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 --- Comment #6 from Andrew Pinski --- Created attachment 59376 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59376&action=edit Reduced c++ testcase ` -O -fnon-call-exceptions`

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 --- Comment #5 from Zdenek Sojka --- Created attachment 59375 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59375&action=edit testcase using memcpy $ x86_64-pc-linux-gnu-gcc -O -fharden-control-flow-redundancy -fnon-call-exceptions testc

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 --- Comment #4 from Zdenek Sojka --- Created attachment 59374 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59374&action=edit testcase using memset $ x86_64-pc-linux-gnu-gcc -O -finstrument-functions -fnon-call-exceptions testcase2.c te

[Bug c/117198] Why are there differences using -Wredundant-decls, is bug or not?

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

[Bug c/117198] New: Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 Bug ID: 117198 Summary: Why are there differences using -Wredundant-decls, is bug or not? Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-10-17 Thread me at purplesyringa dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 Alisa Sireneva changed: What|Removed |Added CC||me at purplesyringa dot moe --- Commen

[Bug target/55212] [SH] Switch to LRA

2024-10-17 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #403 from Oleg Endo --- (In reply to Kazumoto Kojima from comment #402) > I've opened PR 117182 for a wrong fldi0/1 issue. Looks target + RA issue. > > FYI, with the patches in PR 116932, PR 117111 and PR 117182 on top of > devel/sh

[Bug target/117182] [SH] fldi0/1 generated in the wrong fp mode

2024-10-17 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117182 --- Comment #6 from Oleg Endo --- Thanks! I've added the patch to the stash https://github.com/olegendo/gcc/tree/devel/sh-lra

[Bug c/117197] New: ICE: 'verify_gimple' failed with vector_size

2024-10-17 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 Bug ID: 117197 Summary: ICE: 'verify_gimple' failed with vector_size Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread lili.cui at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #14 from cuilili --- (In reply to Uroš Bizjak from comment #12) > Created attachment 59373 [details] > Proposed patch > > Patch in testing. Sorry, I made a mistake here, thanks!

[Bug sanitizer/117196] Should no_sanitize_address attribute turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 --- Comment #2 from Andrew Pinski --- The documentation for GCC's no_sanitize_address attribute is at least clear that it does not disable it for hwasan: "when compiling with the -fsanitize=address option." https://gcc.gnu.org/onlinedocs/gcc-14

[Bug sanitizer/117196] Should no_sanitize_address attribute turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 --- Comment #1 from Andrew Pinski --- "I believe this is a compiler bug, as there doesn't seem to be a separate attribute to prevent instrumentation in this mode. " At least the above is not true. `__attribute__((no_sanitize("hwaddress")

[Bug sanitizer/117196] New: Should no_sanitize_address turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 Bug ID: 117196 Summary: Should no_sanitize_address turn off hwaddress too? Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c++/116506] [15 Regression] Destructors of temporary awaitables are executed too early

2024-10-17 Thread daklishch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116506 --- Comment #4 from Dan Klishch --- SerenityOS's on-host tests seem to work fine with the patch attached here (this was the original reproducer) and one from PR116914. Without the later, I hit ICE similar to one outlined in the gimplify_var_or_p

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 --- Comment #3 from Andrew Pinski --- (In reply to Zdenek Sojka from comment #2) > _BitInt() is not needed, this can be also triggered at least by memset() and > memcpy() with the memory operand having negative offset to address to a > variable.

[Bug middle-end/117195] WIDEN_SUM_EXPR documentation is weak when the second oeprand is 2x the number of elements than other operand

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug middle-end/117195] Invalid IR after vectorization

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 --- Comment #2 from Andrew Pinski --- The tree code represents the following obtab: @cindex @code{widen_ssum@var{m}3} instruction pattern @cindex @code{widen_usum@var{m}3} instruction pattern @item @samp{widen_ssum@var{m}3} @itemx @samp{widen_us

[Bug middle-end/117195] Invalid IR after vectorization

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 Andrew Pinski changed: What|Removed |Added Keywords||documentation, |

[Bug middle-end/117195] New: Invalid IR after vectorization

2024-10-17 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 Bug ID: 117195 Summary: Invalid IR after vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end

[Bug fortran/104826] [12/13/14/15 Regression] ICE in gimple_range_global, at value-query.cc:424 – with deferred-length character variable

2024-10-17 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104826 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug fortran/104827] [12/13/14/15 Regression] ICE in gfc_conv_array_constructor_expr, at fortran/trans-expr.cc:8329 since r12-4409-g724ee5a0093da443

2024-10-17 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104827 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug target/117194] [15 Regression] Wrong code on highway-1.2.0

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117194 --- Comment #2 from Andrew Pinski --- ;; vect_iftmp.29_100 = .BIT_ANDN ({ 1, 2, 3, 4, 5, 6, 7, 8 }, _68); (insn 33 32 34 (set (reg:V8QI 128) (mem/u/c:V8QI (symbol_ref/u:DI ("*.LC2") [flags 0x2]) [0 S8 A64])) -1 (expr_list:REG_EQUA

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comment #

[Bug target/117194] [15 Regression] Wrong code on highway-1.2.0

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117194 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/117194] New: [15 Regression] Wrong code on highway-1.2.0

2024-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117194 Bug ID: 117194 Summary: [15 Regression] Wrong code on highway-1.2.0 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targ

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2024-10-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 Jerry DeLisle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/20585] [meta-bug] Fortran 2003 support

2024-10-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20585 Bug 20585 depends on bug 105361, which changed state. Bug 105361 Summary: Incorrect end-of-file condition for derived-type I/O https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 What|Removed |Added

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #11 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #9) > (In reply to Andrew Pinski from comment #6) > > > The andn is swapped. > Indeed: > > +(define_expand "andn3" > + [(set (match_operand:MMXMODEI 0 "register_oper

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > Yes but in this case the mask will 0 forcing it all to 0 . But the mask is > swapping around to -1 for some reason. Also if you are worried about that, you can

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #9 from Uroš Bizjak --- (In reply to Andrew Pinski from comment #6) > The andn is swapped. Indeed: +(define_expand "andn3" + [(set (match_operand:MMXMODEI 0 "register_operand") +(and:MMXMODEI + (not:MMXMODEI (matc

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #8 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #7) > (In reply to Andrew Pinski from comment #6) > > before is before r15-4397-g70f59d2a1c51bd > > - movq16(%rsp), %xmm2 > > + movq16(%rsp), %xmm1 >

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 --- Comment #3 from Jakub Jelinek --- Another option would be to revert r15-4402 and r15-4377 and reapply once this fix is tested and approved.

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #7 from Uroš Bizjak --- (In reply to Andrew Pinski from comment #6) > before is before r15-4397-g70f59d2a1c51bd > - movq16(%rsp), %xmm2 > + movq16(%rsp), %xmm1 Isn't this reading from uninitialized stack slot? m

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 --- Comment #2 from Jakub Jelinek --- Created attachment 59372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59372&action=edit gcc15-pr117190.patch Untested fix. As the ICE shows, I think we need to use bitsize_int instead of size_int (o

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #19 from GCC Commits --- The master branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:6604a05fa27bc21c3409e767552daca3fcf43964 commit r15-4419-g6604a05fa27bc21c3409e767552daca3fcf43964 Author: Jerry DeLisle Date:

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #6 from Andrew Pinski --- before is before r15-4397-g70f59d2a1c51bd --- before.s2024-10-17 20:17:06.172435278 + +++ after.s 2024-10-17 20:15:24.703424849 + @@ -15,21 +15,21 @@ main: movlc(%rip), %eax

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |target --- Comment #5 from Andrew Pinsk

[Bug tree-optimization/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Component|target |tree-optimization --- Comment #4 from A

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Summary|[15 Regression] wrong code |[15 Regression] wrong code

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-10-17 Ever confirmed|0

[Bug middle-end/56183] [meta-bug][avr] Problems with register allocation

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 116779, which changed state. Bug 116779 Summary: [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 What|Removed

[Bug rtl-optimization/117191] [avr][dse2][lra] wrong dead store elimination

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117191 --- Comment #3 from Georg-Johann Lay --- *** Bug 116779 has been marked as a duplicate of this bug. ***

[Bug target/113934] Switch avr to LRA

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 Bug 113934 depends on bug 116779, which changed state. Bug 116779 Summary: [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 What|Removed

[Bug rtl-optimization/116779] [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #15 from andi at firstfloor dot org --- An upper limit has the problem that very large switches may never get the bitmasks or the jump clusters. Would be good to have a heuristic that still works for them. Bit clustering always wor

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #14 from andi at firstfloor dot org --- On 2024-10-17 05:59, rguenther at suse dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 > > --- Comment #13 from rguenther at suse dot de de> --- > On Thu, 17 Oct 2024, phee

[Bug fortran/117188] ICE when OUT variable dimension is defined by a IN variable member

2024-10-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117188 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/117193] Missing (a < b) < (b < a) transformation at gimple level

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117193 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-10-17 Ever confirmed|0

[Bug tree-optimization/117193] New: Missing (a < b) < (b < a) transformation at gimple level

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117193 Bug ID: 117193 Summary: Missing (a < b) < (b < a) transformation at gimple level Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization

[Bug fortran/117188] ICE when OUT variable dimension is defined by a IN variable member

2024-10-17 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117188 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug testsuite/117183] gcc.dg/c23-constexpr-2a.c: comment mismatch with dg-do

2024-10-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117183 Joseph S. Myers changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #1 from Andrew Pinski --- I am thinking r15-4397-g70f59d2a1c51bd .

[Bug tree-optimization/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Summary|wrong code at -O3 with |[15 Regression] wrong code

[Bug tree-optimization/117192] New: wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu

2024-10-17 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Bug ID: 117192 Summary: wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/116725] operand size mismatch for vfpclasssd and vfpclassss when using -masm=intel for AVX512 builtins

2024-10-17 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116725 Antoni changed: What|Removed |Added Attachment #59199|0 |1 is obsolete|

[Bug rtl-optimization/117191] [avr][dse2][lra] wrong dead store elimination

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117191 --- Comment #2 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:71386491ff601fba3566376d90dfdc0530df2680 commit r15-4418-g71386491ff601fba3566376d90dfdc0530df2680 Author: Georg-Johann Lay Dat

[Bug target/113934] Switch avr to LRA

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 Bug 113934 depends on bug 117189, which changed state. Bug 117189 Summary: [avr][lra] DSE removing instruction that is not dead https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117189 What|Removed |Added --

[Bug rtl-optimization/117191] [avr][dse2][lra] wrong dead store elimination

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117191 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #

[Bug rtl-optimization/117189] [avr][lra] DSE removing instruction that is not dead

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117189 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/117186] [12/13/14/15 Regression] aarch64 wrong code for (a < b) < (b < a)

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186 Andrew Pinski changed: What|Removed |Added Known to work|9.5.0 | --- Comment #3 from Andrew Pinski ---

[Bug rtl-optimization/117191] New: [avr][dse2][lra] wrong dead store elimination

2024-10-17 Thread denisc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117191 Bug ID: 117191 Summary: [avr][dse2][lra] wrong dead store elimination Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: testsuite-fail, wrong-code Severity: norma

[Bug rtl-optimization/117186] [12/13/14/15 Regression] aarch64 wrong code for (a < b) < (b < a)

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186 --- Comment #2 from Andrew Pinski --- x86_64 works on this combine: ``` Trying 10, 8 -> 11: 10: r106:QI=flags:CCGC>0 REG_DEAD flags:CCGC 8: r104:QI=flags:CCGC<0 11: flags:CC=cmp(r104:QI,r106:QI) REG_DEAD r106:QI REG_D

[Bug rtl-optimization/117186] [12/13/14/15 Regression] aarch64 wrong code for (a < b) < (b < a)

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-10-17 Ever confirmed|0

[Bug c++/117054] [14/15 Regression] checking ICE on generic lambda inside a template containing constexpr-if containing instantiation of template with a NTTP defaulted to a lambda

2024-10-17 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117054 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/117054] [14/15 Regression] checking ICE on generic lambda inside a template containing constexpr-if containing instantiation of template with a NTTP defaulted to a lambda

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117054 --- Comment #4 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c468a0051a5ff3f91498d955edb8f684d27afe0d commit r14-10801-gc468a0051a5ff3f91498d955edb8f684d27afe0d Author: Patrick Palka

[Bug target/117186] [12/13/14/15 Regression] aarch64 wrong code for (a < b) < (b < a)

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186 Andrew Pinski changed: What|Removed |Added Summary|aarch64 wrong code for (a < |[12/13/14/15 Regression]

[Bug rtl-optimization/117189] [avr] DSE removing instruction that is not dead

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117189 --- Comment #1 from Georg-Johann Lay --- For example, run the following command in $builddir/gcc (using AVRtest): $ make -k check-gcc RUNTESTFLAGS="--target_board=atmega128-sim --tool_opts='-mlra' avr-torture.exp=pr117189.c" [...] Target is avr

[Bug middle-end/77608] missing protection on trivially detectable runtime buffer overflow

2024-10-17 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77608 Siddhesh Poyarekar changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #10 from Siddhe

[Bug libstdc++/115854] Copy-initialization or implicit conversion is used when creating an allocator whose type is obtained by rebind

2024-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115854 Jonathan Wakely changed: What|Removed |Added Target Milestone|14.3|13.4 --- Comment #8 from Jonathan Wak

[Bug libstdc++/117094] ranges::fill misses std::move for output_iterator

2024-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117094 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/116549] std::disable_sized_sentinel_for is missing specialisation for std::move_iterator

2024-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116549 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 --- Comment #1 from Sergei Trofimovich --- In case the minimal example is too mangled original code looks this way: - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/font.h#n74 - https://git.kernel.org/pub/

  1   2   >