[Bug tree-optimization/111730] erroneous alloc-size-larger-than warning with -O1

2023-10-08 Thread xavier.cooney03 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730 --- Comment #4 from Xavier Cooney --- I see, thanks for looking into this. The unreduced test case (which was from a student confused about the error message) was still passing a value to `malloc` which from the context which gcc could see

[no subject]

2023-10-08 Thread ขวัญจิรา ศิลปการสกุล via Gcc-bugs
สินเชื่อเพื่อธุรกิจสำหรับ บริษัท หจก. โรงงานอุตสาหกรรมหรือธุรกิจขนาดย่อม ทั่วประเทศ ✏️ อนุมัติวงเงินสูงสุด 10 ล้านบาท ด้วยอัตราดอกเบี้ย 1% สนใจรายละเอียดเพิ่มเติมติดต่อ คุณ สรวิชญ์ 0657652873 LINE ID sinsub01

[Bug libgcc/111731] [13/14 regression] gcc_assert is hit at libgcc/unwind-dw2-fde.c#L291

2023-10-08 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111731 --- Comment #2 from Hongtao.liu --- The original project is too complex for me to come up with a reproduction case, I can help with gdb if additional information is needed.

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 --- Comment #6 from Andrew Pinski --- (In reply to Nick Krempel from comment #0) > T{1, 2} + 1; > Ditto. That is what clang's issue: https://github.com/llvm/llvm-project/issues/54016 is about even.

[Bug libgcc/111731] [13/14 regression] gcc_assert is hit at libgcc/unwind-dw2-fde.c#L291

2023-10-08 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111731 --- Comment #1 from Hongtao.liu --- GCC11.3 is ok, GCC13.2 and later have the issue, I didn't verify GCC12.

[Bug libgcc/111731] New: [13/14 regression] gcc_assert is hit at libgcc/unwind-dw2-fde.c#L291

2023-10-08 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111731 Bug ID: 111731 Summary: [13/14 regression] gcc_assert is hit at libgcc/unwind-dw2-fde.c#L291 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/111730] erroneous alloc-size-larger-than warning with -O1

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730 --- Comment #3 from Andrew Pinski --- Note you can reproduce the same warning with ( -O2 -fno-code-hoisting -fno-tree-loop-im -fno-tree-pre): ``` // #include typedef long unsigned int size_t; extern void *malloc (size_t size) __attribute__

[Bug tree-optimization/111730] erroneous alloc-size-larger-than warning with -O1

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730 --- Comment #2 from Andrew Pinski --- The difference between -O1 and -O2 is -O2 removes the empty loops.

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2023-10-08 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #5 from

[Bug c/111730] erroneous alloc-size-larger-than warning with -O1

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730 --- Comment #1 from Andrew Pinski --- You might want to add a check that x is not negative and I suspect that will fix the warning.

[Bug c/111730] New: erroneous alloc-size-larger-than warning with -O1

2023-10-08 Thread xavier.cooney03 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730 Bug ID: 111730 Summary: erroneous alloc-size-larger-than warning with -O1 Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/111621] [RISC-V] Bad register allocation in vadd.vi may cause operational error

2023-10-08 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111621 JuzheZhong changed: What|Removed |Added CC||juzhe.zhong at rivai dot ai --- Comment

[Bug libstdc++/86130] Expect SIGSEGV but program just silently exits

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130 --- Comment #21 from Jeremy R. --- Another option might be just do nothing and don't set the badbit, just pretend it's an empty string. This shouldn't break existing programs and would at least be something a programmer could more easily track

[Bug driver/111700] ICE: SIGSEGV in needs_read_p (input.cc:598) with -fdiagnostics-format=sarif-file or -fdiagnostics-format=sarif-stderr on pre-processed input

2023-10-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111700 --- Comment #3 from David Malcolm --- Should be fixed on trunk by the above patch. Keeping open to track backporting the fix to gcc 13.

[Bug analyzer/111155] RFE: better diagrams for string operations

2023-10-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55 --- Comment #1 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:b365e9d57ad445c5491737e230bc94213a139de7 commit r14-4477-gb365e9d57ad445c5491737e230bc94213a139de7 Author: David Malcolm Date:

[Bug driver/111700] ICE: SIGSEGV in needs_read_p (input.cc:598) with -fdiagnostics-format=sarif-file or -fdiagnostics-format=sarif-stderr on pre-processed input

2023-10-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111700 --- Comment #2 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:94caa6a6b4bd73b6c2bf3ab5e43ca42c5da4287a commit r14-4474-g94caa6a6b4bd73b6c2bf3ab5e43ca42c5da4287a Author: David Malcolm Date:

[Bug c++/111728] C++ 20 coroutine segmentation fault in generic lambda

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

[Bug tree-optimization/111668] [12/13 Regression] vrp2 (match and simplify) introduces invalid wide signed Boolean values

2023-10-08 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111668 --- Comment #8 from Krister Walfridsson --- I still see negation of a wide signed Boolean in the IR for this function. But now it is forwprop4 that changes _38 = (signed int) _16; _43 = -_38; _66 = () _43; to _56 = () _16; _66 =

[Bug fortran/67740] Wrong association status of allocatable character pointer in derived types

2023-10-08 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740 --- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to Paul Thomas from comment #8) > Created attachment 56073 [details] > "Fix" for this PR > > Hi Harald, > > You are touching the right place. However, this should be happening in >

[Bug libstdc++/86130] Expect SIGSEGV but program just silently exits

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130 --- Comment #20 from Jeremy R. --- Silently ruining the behavior of the rest of a program and leaving the programmer to pull their hair out over what on earth is happening seems very un-ideal behavior. This is a very easy mistake to make and

[Bug c/111708] Calling external global function instead of local static function.

2023-10-08 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111708 --- Comment #7 from Martin Uecker --- Created attachment 56075 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56075=edit patch adding error external / internal mismatch of functions Untested patch.

[Bug libstdc++/111729] Design considerations for operator<<(basic_ostream&, const charT*)

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111729 --- Comment #2 from Jeremy R. --- Thank you for the quick response

[Bug libstdc++/86130] Expect SIGSEGV but program just silently exits

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130 Andrew Pinski changed: What|Removed |Added CC||llvm at rifkin dot dev --- Comment #19

[Bug libstdc++/111729] Design considerations for operator<<(basic_ostream&, const charT*)

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

[Bug libstdc++/111729] New: Design considerations for operator<<(basic_ostream&, const charT*)

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111729 Bug ID: 111729 Summary: Design considerations for operator<<(basic_ostream&, const charT*) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/111728] C++ 20 coroutine segmentation fault in generic lambda

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111728 --- Comment #1 from Andrew Pinski --- [apinski@xeond2 upstream-gcc-git]$ ~/upstream-gcc/bin/gcc main.cpp.ii -std=gnu++20 /home/yunus/Projects/terraqtt/examples/main.cpp: In instantiation of

[Bug c++/111728] New: C++ 20 coroutine segmentation fault in generic lambda

2023-10-08 Thread yunus at ayar dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111728 Bug ID: 111728 Summary: C++ 20 coroutine segmentation fault in generic lambda Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/111727] [14 Regression] wrong code at -O3 on x86_64-linux-gnu

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111727 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Version|unknown

[Bug tree-optimization/111727] New: wrong code at -O3 on x86_64-linux-gnu

2023-10-08 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231008 (experimental) (GCC) [509] % [509] % gcctk -O2 small.c; ./a.out [510] % [510] % gcctk -O3 small.c [511] % ./a.out Aborted [512

[Bug libstdc++/111726] lgamma usage in std::poisson_distribution could cause a Data race

2023-10-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111726 Andrew Pinski changed: What|Removed |Added Summary|Data race in|lgamma usage in

[Bug target/111425] ia64: ICE in net/ipv4/fib_semantics.c:1621:1: internal compiler error: Segmentation fault

2023-10-08 Thread frank.scheiner at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111425 --- Comment #7 from Frank Scheiner --- Hi again, this problem was bisected by me and I identified the following commit as first bad commit:

[Bug libstdc++/111726] New: Data race in std::poisson_distribution

2023-10-08 Thread rugasikrisztian at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111726 Bug ID: 111726 Summary: Data race in std::poisson_distribution Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/111403] LoongArch: Wrong code with -O -mlasx -fopenmp-simd

2023-10-08 Thread guojie at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111403 Guo Jie changed: What|Removed |Added CC||guojie at loongson dot cn --- Comment #2

[Bug fortran/67740] Wrong association status of allocatable character pointer in derived types

2023-10-08 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org --- Comment #8

[Bug c/111708] Calling external global function instead of local static function.

2023-10-08 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111708 Martin Uecker changed: What|Removed |Added CC||muecker at gwdg dot de --- Comment #6

[Bug target/111725] New: Missed one vsetvl

2023-10-08 Thread lehua.ding at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111725 Bug ID: 111725 Summary: Missed one vsetvl Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee:

[Bug tree-optimization/111724] New: [Regression] Missed optimizations probably because of too early arithmetic optimization

2023-10-08 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111724 Bug ID: 111724 Summary: [Regression] Missed optimizations probably because of too early arithmetic optimization Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2023-10-08 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com ---