[Bug driver/118975] -undef is passed to the linker

2025-02-21 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118975 --- Comment #1 from Nate Eldredge --- I should have said, credit to StackOverflow user anol for finding this. https://stackoverflow.com/questions/79457581/gcc-undef-leads-to-cannot-find-entry-symbol-start-defaulting-to-x/79457825#79457825

[Bug driver/118975] New: -undef is passed to the linker

2025-02-21 Thread nate at thatsmathematics dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- When the `-undef` option is given to gcc for a command that involves linking, the option is passed to the linker as well as the compiler. This makes no sense as `-undef` should

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q (or without -quiet passed to cc1plus)

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #6 from Nate Eldredge --- After some brief digging, it seems like the problem is that `cxx_printable_name_internal` can be called recursively by `lang_decl_name' (via `announce_function'). This is bad because, with its static ring b

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #5 from Nate Eldredge --- Oh, it's actually triggered by the compilation of a-foo.ii itself, but the gcm.cache has to have previously been created. The gcm.cache is too large to post as an attachment, but I can share it another way

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #4 from Nate Eldredge --- Note for testing that the compiler doesn't crash when compiling only bits/std.cc, or when a-std.ii and a-foo.ii are concatenated into a single file. It seems to be important that they are passed as separate

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #3 from Nate Eldredge --- Created attachment 60527 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60527&action=edit stderr output from compilation

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #2 from Nate Eldredge --- Created attachment 60526 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60526&action=edit Preprocessor output for std.cc

[Bug c++/118927] "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118927 --- Comment #1 from Nate Eldredge --- Created attachment 60525 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60525&action=edit Preprocessor output for foo.cc

[Bug c++/118927] New: "double free detected in tcache 2" with import std and -Q

2025-02-18 Thread nate at thatsmathematics dot com via Gcc-bugs
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- Created attachment 60523 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60523&action=edit Main source file foo.cc

[Bug tree-optimization/117742] New: Inefficient code for __builtin_clear_padding

2024-11-22 Thread nate at thatsmathematics dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- With all versions of `gcc -O3` on godbolt, the following C++ code struct A { char c; int l; }; A clear_padding(A x) { __builtin_clear_padding

[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2023-12-11 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 --- Comment #7 from Nate Eldredge --- @Jonathan: Done, https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640119.html (sorry, may not be linked to original threads).

[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2023-12-10 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 --- Comment #5 from Nate Eldredge --- Oh wait, disregard that last, I realized that I only applied one of the two patches. Let me try again.

[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2023-12-10 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 --- Comment #4 from Nate Eldredge --- @Jonathan: I think that patch set is on the right track, but it has some other serious bugs. For one, __atomic_wait_address calls __detail::__wait_impl with __args._M_old uninitialized (g++ -O3 -Wall catche

[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2023-12-09 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 --- Comment #2 from Nate Eldredge --- This bug is still present. Tested and reproduced with g++ 13.1.0 (Ubuntu package), and by inspection of the source code, it's still in the trunk as well. Encountered on StackOverflow: https://stackoverflow

[Bug target/110780] New: aarch64 NEON redundant displaced ld3

2023-07-23 Thread nate at thatsmathematics dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- Compile the following with gcc 14.0.0 20230723 on aarch64 with -O3: #include void CSI2toBE12(uint8_t* pCSI2, uint8_t* pBE, uint8_t* pCSI2LineEnd) { while (pCSI2

[Bug target/30527] Use of input/output operands in __asm__ templates not fully documented

2023-01-21 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30527 Nate Eldredge changed: What|Removed |Added CC||nate at thatsmathematics dot com

[Bug target/104110] New: AArch64 unnecessary use of call-preserved register

2022-01-18 Thread nate at thatsmathematics dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- gcc misses an optimization (or in some sense deoptimizes) by using a call-preserved register to save a trivial constant across a function call. Source code

[Bug target/104039] New: AArch64 Redundant instruction moving general to vector register

2022-01-14 Thread nate at thatsmathematics dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- Compiling the following code on AArch64 with -O2 or -O3: typedef unsigned long u64x2 __attribute__((vector_size(16))); u64x2

[Bug other/97473] Spilled function parameters not aligned properly on multiple non-x86 targets

2020-10-18 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97473 --- Comment #2 from Nate Eldredge --- Possibly related to bug 84877 ?

[Bug other/97473] New: Spilled function parameters not aligned properly on multiple non-x86 targets

2020-10-17 Thread nate at thatsmathematics dot com via Gcc-bugs
: wrong-code Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- Created attachment 49394 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49

[Bug c/94196] Multiple issues with attributes

2020-04-19 Thread nate at thatsmathematics dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94196 Nate Eldredge changed: What|Removed |Added CC||nate at thatsmathematics dot com

[Bug tree-optimization/94015] [10 Regression] Another assignment incorrectly omitted by -foptimize-strlen

2020-03-03 Thread nate at thatsmathematics dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94015 --- Comment #4 from Nate Eldredge --- Comment on attachment 47959 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47959 gcc10-pr94015.patch I'm not qualified to opine on the proposed fix, but just wanted to note that, as I mentioned above,

[Bug tree-optimization/94015] New: [10 Regression] Another assignment incorrectly omitted by -foptimize-strlen

2020-03-03 Thread nate at thatsmathematics dot com
: wrong-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com CC: dmalcolm at gcc dot gnu.org, jakub at gcc dot gnu.org, law at

[Bug tree-optimization/93982] New: Assignment incorrectly omitted by -foptimize-strlen

2020-02-29 Thread nate at thatsmathematics dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nate at thatsmathematics dot com Target Milestone: --- Created attachment 47937 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47937&action=edit Reduced testcase