[Bug tree-optimization/107852] [12/13 Regression] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.3 Summary|Spurious warni

[Bug tree-optimization/107852] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 --- Comment #3 from Richard Biener --- Most likely the diagnostic code is mis-interpreting pointer types.

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #13 from LIU Hao --- (In reply to Andrew Pinski from comment #11) > Yes but the inline-asm is just broken. Anyways this is not related to the > original issue reported here. It IS related. GCC should not warn about dereferencing a c

[Bug analyzer/106473] [12/13 Regression] -Wanalyzer-malloc-leak false positive regression when returning heap-allocation through nested pointers

2022-11-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106473 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/107854] compiler crash when using co_await inside ternary operator

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

[Bug c++/102217] co_awaiting a temporary produced by ternary operator crashes (double-free)

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102217 Andrew Pinski changed: What|Removed |Added CC||adr...@adi-ware.ch --- Comment #6 from

[Bug c++/107854] New: compiler crash when using co_await inside ternary operator

2022-11-23 Thread adrian--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107854 Bug ID: 107854 Summary: compiler crash when using co_await inside ternary operator Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Pr

[Bug analyzer/106473] [12/13 Regression] -Wanalyzer-malloc-leak false positive regression when returning heap-allocation through nested pointers

2022-11-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106473 --- Comment #2 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:ce917b0422c145779b83e005afd8433c0c86fb06 commit r13-4276-gce917b0422c145779b83e005afd8433c0c86fb06 Author: David Malcolm Date: W

[Bug target/107692] [13 regression] r13-3950-g071e428c24ee8c breaks many test cases

2022-11-23 Thread wwwhhhyyy333 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107692 --- Comment #12 from Hongyu Wang --- Fixed for GCC 13. Sorry for introducing this.

[Bug target/107692] [13 regression] r13-3950-g071e428c24ee8c breaks many test cases

2022-11-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107692 --- Comment #11 from CVS Commits --- The master branch has been updated by Hongyu Wang : https://gcc.gnu.org/g:8caf155a3d6e23e47bf55068ad23c23d4655a054 commit r13-4272-g8caf155a3d6e23e47bf55068ad23c23d4655a054 Author: Hongyu Wang Date: Sat

[Bug tree-optimization/107852] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/107853] [10/11/12/13 Regression] variadic template with a variadic template friend with a requires of fold expression

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107853 Andrew Pinski changed: What|Removed |Added Known to work||9.5.0 Keywords|

[Bug c++/107853] Cannot create friend function template with a requires uses the variadic pack

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107853 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-11-24 See Also|

[Bug c++/107853] New: Cannot create friend function template with variadic pack that depends on variadic pack

2022-11-23 Thread davidfromonline at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107853 Bug ID: 107853 Summary: Cannot create friend function template with variadic pack that depends on variadic pack Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/107852] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 --- Comment #1 from Andrew Pinski --- There might be other bugs which are very similar too ...

[Bug tree-optimization/107852] New: Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector

2022-11-23 Thread cuzdav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 Bug ID: 107852 Summary: Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug libstdc++/107850] [12/13 Regression] std::erase_if (map) forces predicate to takes a const value_type

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107850 Andrew Pinski changed: What|Removed |Added Summary|std::erase_if (map) forces |[12/13 Regression] |p

[Bug analyzer/107851] New: Issues with -Wanalyzer-allocation-size messages

2022-11-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107851 Bug ID: 107851 Summary: Issues with -Wanalyzer-allocation-size messages Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/107850] New: std::erase_if (map) forces predicate to takes a const value_type

2022-11-23 Thread chgros at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107850 Bug ID: 107850 Summary: std::erase_if (map) forces predicate to takes a const value_type Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug c/107831] Missed optimization: -fclash-stack-protection causes unnecessary code generation for dynamic stack allocations that are clearly less than a page

2022-11-23 Thread pskocik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107831 --- Comment #6 from Petr Skocik --- (In reply to Jakub Jelinek from comment #2) > (In reply to Petr Skocik from comment #1) > > Sidenote regarding the stack-allocating code for cases when the size is not > > known to be less than pagesize: the c

[Bug jit/107849] All SIMD instrinsics are missing

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107849 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/107839] spurious "may be used uninitialized" warning while all uses are under "if (c)"

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107839 Richard Biener changed: What|Removed |Added Keywords||diagnostic Last reconfirmed|

[Bug tree-optimization/107838] spurious "may be used uninitialized" warning on variable initialized at the first iteration of a loop

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107838 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug tree-optimization/107835] [13 Regression] ICE in build2, at tree.cc:5020 since r13-254-gdd3c7873a61019e9

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107835 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug tree-optimization/107833] [12/13 Regression] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833 Richard Biener changed: What|Removed |Added Summary|wrong code at -Os and above |[12/13 Regression] wrong

[Bug target/107830] [13 Regression] ICE in gen_aarch64_bitmask_udiv3, at ./insn-opinit.h:813

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

[Bug tree-optimization/107823] [13 Regression] Dead Code Elimination Regression at -Os (trunk vs. 12.2.0)

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107823 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug testsuite/107809] gcc.dg/vect/vect-recurr-1.c etc. FAIL

2022-11-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107809 Richard Biener changed: What|Removed |Added Component|tree-optimization |testsuite Status|UNCONFIRM

[Bug tree-optimization/107833] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833 --- Comment #5 from Martin Liška --- > /me hides in shame :DD

[Bug jit/107849] New: All SIMD instrinsics are missing

2022-11-23 Thread andreas_roever at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107849 Bug ID: 107849 Summary: All SIMD instrinsics are missing Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit

[Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 CC|

[Bug analyzer/100705] RFE: warn about dead store

2022-11-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100705 --- Comment #3 from David Malcolm --- See also: PR 80066

[Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 --- Comment #4 from Andrew Pinski --- #0 warning_at (location=0, opt=765, gmsgid=0x30ecaf8 "result of %qE requires %u bits to represent, but %qT only has %u bits") at /home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic.cc:1845 #1 0x0

[Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

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

[Bug target/107846] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 --- Comment #2 from Andrew Pinski --- (In reply to David Faust from comment #1) > I think this is a bug in the test itself (or with these macros from libbpf). No I think there might be a bug in GCC though I have to double check. cc1: error: res

[Bug target/107848] libbpf: ELF relo #0 in section #7 has unexpected type 12

2022-11-23 Thread jose.marchesi at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107848 --- Comment #2 from Jose E. Marchesi --- This is likely due to the fact they added new BPF relocations: https://reviews.llvm.org/D102712 Or course not bothering telling us.

[Bug target/107848] libbpf: ELF relo #0 in section #7 has unexpected type 12

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107848 --- Comment #1 from James Hilliard --- Working LLVM BTF Dump: $ /home/buildroot/bpf-next/tools/testing/selftests/bpf/tools/sbin/bpftool --debug btf dump file /home/buildroot/bpf-next/tools/testing/selftests/bpf/bpf_dctcp_release.bpf.o format raw

[Bug target/107848] New: libbpf: ELF relo #0 in section #7 has unexpected type 12

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107848 Bug ID: 107848 Summary: libbpf: ELF relo #0 in section #7 has unexpected type 12 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Prio

[Bug fortran/107577] [13 Regression] ICE in find_array_spec, at fortran/resolve.cc:5008 since r13-1757-gf838d15641d256e2

2022-11-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107577 --- Comment #4 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:2eaa0cc45e8eae0fc4a440d28c602964bcb1014d commit r13-4269-g2eaa0cc45e8eae0fc4a440d28c602964bcb1014d Author: Steve Kargl Date: Tue

[Bug target/107846] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

2022-11-23 Thread david.faust at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 --- Comment #1 from David Faust --- I think this is a bug in the test itself (or with these macros from libbpf). libbpf/src/bpf_endian.h #define ___bpf_mvb(x, b, n, m) ((__u##b)(x) << (b-(n+1)*8) >> (b-8) << (m*8)) #define ___bpf_swab16(x) ((_

[Bug middle-end/107845] __builtin_init_trampoline ICEs on invalid arguments

2022-11-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107845 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Last reco

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread konrad at silmor dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #12 from Konrad Rosenbaum --- It would be super helpful if the AVR target (and all its sub-architectures) could have the min-pagesize=0 option(*) set implicitly. This architecture has ONLY firmware - firmware is not special in that a

[Bug c/107127] [11/12 Regression] Long compile times on code with C complex since r11-3299-gcba079f354a55363

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107127 Jakub Jelinek changed: What|Removed |Added Summary|[11/12/13 Regression] Long |[11/12 Regression] Long

[Bug c/107127] [11/12/13 Regression] Long compile times on code with C complex since r11-3299-gcba079f354a55363

2022-11-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107127 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:8a0fce6a51915c29584427fd376b40073c328090 commit r13-4268-g8a0fce6a51915c29584427fd376b40073c328090 Author: Jakub Jelinek Date: W

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #11 from Andrew Pinski --- (In reply to LIU Hao from comment #10) > (In reply to Andrew Pinski from comment #8) > > That inline-asm is not correct and GCC does not understand segments if you > > don't use named address space feature.

[Bug libstdc++/104875] libstdc++-v3/src/c++11/codecvt.cc:312:24: warning: left shift count >= width of type

2022-11-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104875 --- Comment #4 from Jonathan Wakely --- Only for gcc-12 and trunk.

[Bug tree-optimization/107837] [10/11/12/13 Regression] Missed optimization: Using memcpy to load a struct unnecessary uses stack space

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107837 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #10 from LIU Hao --- (In reply to Andrew Pinski from comment #8) > That inline-asm is not correct and GCC does not understand segments if you > don't use named address space feature. > Named address space is not supported unless a

[Bug libstdc++/104875] libstdc++-v3/src/c++11/codecvt.cc:312:24: warning: left shift count >= width of type

2022-11-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104875 --- Comment #3 from Georg-Johann Lay --- Is this fixed now?

[Bug c/107831] Missed optimization: -fclash-stack-protection causes unnecessary code generation for dynamic stack allocations that are clearly less than a page

2022-11-23 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107831 --- Comment #5 from Jeffrey A. Law --- Right. You also have to know the distance from the last probe (possibly an implicit one) to the start of the alloca space before you can contemplate eliding the probes in alloca space. There's a hook we c

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #9 from Andrew Pinski --- (In reply to rudi from comment #5) > Compiling atf with gcc-12.1.0 for the NXP iMX8 target results in the same > error. > > CFLAGS=+“ --param=min-pagesize=0” allows the build to complete. Yes ATF needs to

[Bug target/106307] error when I do a test on a pointer on Arduino 1.8.19

2022-11-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106307 --- Comment #1 from Georg-Johann Lay --- We'd need at least a test case so we can reproduce th issue. Thanks.

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/107847] New: error: integer overflow in expression in bpf-next test_xdp_vlan.c

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107847 Bug ID: 107847 Summary: error: integer overflow in expression in bpf-next test_xdp_vlan.c Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug target/107842] [avr] Set --param=min-pagesize=0 in the backend

2022-11-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107842 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFI

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

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

[Bug target/107846] New: error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 Bug ID: 107846 Summary: error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug c/107845] New: __builtin_init_trampoline ICEs on invalid arguments

2022-11-23 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107845 Bug ID: 107845 Summary: __builtin_init_trampoline ICEs on invalid arguments Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug target/107844] New: error: argument is not a field access for __builtin_preserve_field_info

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 Bug ID: 107844 Summary: error: argument is not a field access for __builtin_preserve_field_info Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c/107831] Missed optimization: -fclash-stack-protection causes unnecessary code generation for dynamic stack allocations that are clearly less than a page

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107831 --- Comment #4 from Jakub Jelinek --- Say for void bar (char *); void foo (int x, int y) { __attribute__((assume (x < 64))); for (int i = 0; i < y; ++i) bar (__builtin_alloca (x)); } all the alloca calls are known to be small, yet they c

[Bug target/107843] New: error: incompatible type for argument in ___bpf_ctx_cast2

2022-11-23 Thread james.hilliard1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107843 Bug ID: 107843 Summary: error: incompatible type for argument in ___bpf_ctx_cast2 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Pri

[Bug target/107842] New: [avr] Set --param=min-pagesize=0 in the backend

2022-11-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107842 Bug ID: 107842 Summary: [avr] Set --param=min-pagesize=0 in the backend Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug middle-end/107840] ICE when compiling cursed setjmp/longjmp nested function calls and non-local jumps

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107840 --- Comment #3 from Andrew Pinski --- With the testcase that does not use C23 features (which was only implemented in GCC 13), we can get the ICE happening all the way back to at least GCC 6 with -fchecking. GCC 5 didn't have -fchecking so I can

[Bug middle-end/107840] ICE when compiling cursed setjmp/longjmp nested function calls and non-local jumps

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107840 --- Comment #2 from Andrew Pinski --- Created attachment 53955 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53955&action=edit testcase not using C23 features

[Bug c/107831] Missed optimization: -fclash-stack-protection causes unnecessary code generation for dynamic stack allocations that are clearly less than a page

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107831 Jakub Jelinek changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #3 f

[Bug c/107831] Missed optimization: -fclash-stack-protection causes unnecessary code generation for dynamic stack allocations that are clearly less than a page

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107831 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug target/107841] Incorrect generation of the function's epilogue code when there is a _builtin_alloca call.

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107841 --- Comment #1 from Andrew Pinski --- Patches are submitted to gcc-patches@ after reading https://gcc.gnu.org/contribute.html

[Bug middle-end/107840] ICE when compiling cursed setjmp/longjmp nested function calls and non-local jumps

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107840 --- Comment #1 from Andrew Pinski --- I don't think it is directly __builtin_call_with_static_chain but rather the non-local jump causing issues.

[Bug c/107841] New: Incorrect generation of the function's epilogue code when there is a _builtin_alloca call.

2022-11-23 Thread avo2000 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107841 Bug ID: 107841 Summary: Incorrect generation of the function's epilogue code when there is a _builtin_alloca call. Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug middle-end/107317] [10/11/12/13 Regression] ICE in emit_redzone_byte, at asan.cc:1508

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107317 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/80548] -Wmaybe-uninitialized false positive when an assignment is added

2022-11-23 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80548 --- Comment #12 from Vincent Lefèvre --- (In reply to Jeffrey A. Law from comment #11) > As I said in my previous comment, the best way forward is to get those two > new instances filed as distinct bugs in BZ. See PR107838 and PR107839.

[Bug tree-optimization/106155] [12/13 Regression] spurious "may be used uninitialized" warning

2022-11-23 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106155 --- Comment #10 from Vincent Lefèvre --- A similar bug (all uses of the variable are under some condition) with a simpler testcase I've just reported: PR107839.

[Bug c/107840] New: ICE when compiling cursed setjmp/longjmp that uses __builtin_call_with_static_chain

2022-11-23 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107840 Bug ID: 107840 Summary: ICE when compiling cursed setjmp/longjmp that uses __builtin_call_with_static_chain Product: gcc Version: 13.0 Status: UNCONFIRMED Seve

[Bug tree-optimization/107839] New: spurious "may be used uninitialized" warning while all uses are under "if (c)"

2022-11-23 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107839 Bug ID: 107839 Summary: spurious "may be used uninitialized" warning while all uses are under "if (c)" Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/107838] New: spurious "may be used uninitialized" warning on variable initialized at the first iteration of a loop

2022-11-23 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107838 Bug ID: 107838 Summary: spurious "may be used uninitialized" warning on variable initialized at the first iteration of a loop Product: gcc Version: 13.0 Status: UNCONFIR

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 --- Comment #9 from Jakub Jelinek --- Created attachment 53953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53953&action=edit gcc13-pr107815.patch Untested workaround. I've left out Darwin there for now, because I think it just doesn't

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2022-11-23 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from Jakub Jelinek --- > The 1e+202L * __DBL_MAX__ number is: > 17976931348623157081452742373170433637802939014881326705103053961532744011074502529640673538215420988836

[Bug c/107836] x86_64 inline functions -O2/-O3 optimization error

2022-11-23 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107836 Andreas Schwab changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 --- Comment #7 from Jakub Jelinek --- Ah, we even have PR98384 for that. So either we add // { dg-xfail-run-if "Non-conforming printf (see PR98384)" { *-*-solaris* *-*-darwin* } } to the test and thus xfail it all, or just ifdef out the max case

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2022-11-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 --- Comment #6 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #5) > Jonathan, shall we just #ifdef out the > std::numeric_limits::max() > test in that test for Solaris and maybe HP-UX if it suffers from the same > bug? Yes, I

[Bug tree-optimization/107837] New: Missed optimization: Using memcpy to load a struct unnecessary uses stack space

2022-11-23 Thread chfast at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107837 Bug ID: 107837 Summary: Missed optimization: Using memcpy to load a struct unnecessary uses stack space Product: gcc Version: 13.0 Status: UNCONFIRMED Severity

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 Jakub Jelinek changed: What|Removed |Added CC||ppalka at gcc dot gnu.org,

[Bug modula2/105392] SEGV compiling gm2-libs-pim/BitBlockOps.mod on SPARC

2022-11-23 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105392 Gaius Mulley changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/107836] x86_64 inline functions -O2/-O3 optimization error

2022-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107836 Andrew Pinski changed: What|Removed |Added Keywords||inline-asm --- Comment #1 from Andrew P

[Bug tree-optimization/107833] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833 --- Comment #4 from Aldy Hernandez --- (In reply to Martin Liška from comment #3) > > Isn't there an uninitialized read from "i" here? > > Yes ... > > > At least on the second > > time through the outer loop, if (a < h) is true since 1 < 0. >

[Bug c/107836] New: x86_64 inline functions -O2/-O3 optimization error

2022-11-23 Thread czx211355007 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107836 Bug ID: 107836 Summary: x86_64 inline functions -O2/-O3 optimization error Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug modula2/105392] SEGV compiling gm2-libs-pim/BitBlockOps.mod on SPARC

2022-11-23 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105392 --- Comment #3 from Gaius Mulley --- Many thanks! I've changed all definition modules in gcc/m2/gm2-gcc for consistency.

[Bug c++/107834] #pragma GCC diagnostic ignored "-Wno-psabi" doe not work

2022-11-23 Thread shihyente at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107834 SHIH YEN-TE changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug tree-optimization/107833] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833 --- Comment #3 from Martin Liška --- > Isn't there an uninitialized read from "i" here? Yes ... > At least on the second > time through the outer loop, if (a < h) is true since 1 < 0. > > > c = *f; > > } > > for (h = 0; h <

[Bug tree-optimization/107833] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
/software/local/gcc-trunk > --enable-sanitizers --enable-languages=c,c++ --disable-werror > --enable-multilib --with-system-zlib > Thread model: posix > Supported LTO compression algorithms: zlib > gcc version 13.0.0 20221123 (experimental) [master r13-4262-g1cac00d0138] > (GCC)

[Bug tree-optimization/107835] [13 Regression] ICE in build2, at tree.cc:5020 since r13-254-gdd3c7873a61019e9

2022-11-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107835 Martin Liška changed: What|Removed |Added Last reconfirmed||2022-11-23 Ever confirmed|0

[Bug tree-optimization/107835] New: [13 Regression] ICE in build2, at tree.cc:5020 since r13-254-gdd3c7873a61019e9

2022-11-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107835 Bug ID: 107835 Summary: [13 Regression] ICE in build2, at tree.cc:5020 since r13-254-gdd3c7873a61019e9 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords:

[Bug bootstrap/107722] [13 Regression] Bootstrap failure for some locales starting with r13-4070

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107722 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug bootstrap/107722] [13 Regression] Bootstrap failure for some locales starting with r13-4070

2022-11-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107722 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:d601708870ad8dc3ef935e440bf03394891d42e2 commit r13-4265-gd601708870ad8dc3ef935e440bf03394891d42e2 Author: Jakub Jelinek Date: W

[Bug modula2/107233] gm2 build hardcodes python3

2022-11-23 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107233 --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #3 from Gaius Mulley --- > ok, thanks for the suggestion. I've changed gcc/configure.ac to use > AM_PATH_PYTHON and AM_CONDITIONAL: > > # Python3? > AM_PATH_PYTHON(,, [:]

[Bug bootstrap/107722] [13 Regression] Bootstrap failure for some locales starting with r13-4070

2022-11-23 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107722 Lewis Hyatt changed: What|Removed |Added CC||lhyatt at gcc dot gnu.org --- Comment #5

[Bug c++/107834] #pragma GCC diagnostic ignored "-Wno-psabi" doe not work

2022-11-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107834 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/107304] internal compiler error: in convert_move, at expr.cc:220 with -march=tigerlake

2022-11-23 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107304 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org --- Comment #29 fro

[Bug c++/107834] New: #pragma GCC diagnostic ignored "-Wno-psabi" doe not work

2022-11-23 Thread shihyente at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107834 Bug ID: 107834 Summary: #pragma GCC diagnostic ignored "-Wno-psabi" doe not work Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Pr

[Bug tree-optimization/107833] wrong code at -Os and above on x86_64-linux-gnu since r12-5138-ge82c382971664d6f

2022-11-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833 Martin Liška changed: What|Removed |Added Last reconfirmed||2022-11-23 Target Milestone|---

  1   2   >