[Bug c/108518] New: Format-overflow warning using `*.s` directive with null but zero-length string

2023-01-24 Thread aaron at aarongraham dot com via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com Target Milestone: --- https://godbolt.org/z/YGra91Woa #include int main() { // This causes a format-overflow warning

[Bug libstdc++/106802] New: Comparators in don't work with orderings in

2022-09-01 Thread aaron at aarongraham dot com via Gcc-bugs
: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com Target Milestone: --- gcc does not allow this to compile: std::less<>{}(std::strong_ordering::less, 0); Even though `std::strong_ordering::le

[Bug c++/100322] New: Switching from std=c++17 to std=c++20 causes performance regression in relationals

2021-04-28 Thread aaron at aarongraham dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com Target Milestone: --- Experiment here: https://godbolt.org/z/PT73cn5e5 #include using clk = std::chrono::steady_clock; bool

[Bug libstdc++/100259] New: ODR violations in

2021-04-25 Thread aaron at aarongraham dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com Target Milestone: --- Current implementation in has functions that violate ODR: std::experimental::net::ip::make_error_code std::experimental::net::ip::make_error_condition std::experimental::net::ip

[Bug c++/86143] New: ICE capturing constexpr chrono duration

2018-06-14 Thread aaron at aarongraham dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com Target Milestone: --- The following test, compiled via 'g++ -c test.cc': #include #include using namespace std::chrono_literals; extern void set_duration(std::chrono::nanoseconds); int

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_point

2018-01-26 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931 --- Comment #5 from Aaron Graham --- Created attachment 43261 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43261=edit Patch to check for overflow

[Bug libstdc++/887] libstdc++-v3 modulator setw does not work writing to a file

2015-07-07 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=887 --- Comment #9 from Aaron Graham aaron at aarongraham dot com --- Thanks. I had already patched our gcc so that gthreads cond always gets initialized with CLOCK_MONOTONIC, then I switched __clock_t in condition_variable to steady_clock

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_pointsteady_clock

2015-05-09 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931 --- Comment #4 from Aaron Graham aaron at aarongraham dot com --- See bug 41861 for discussion of steady_clock wrt condition_variable.

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_pointsteady_clock

2015-05-09 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931 Aaron Graham aaron at aarongraham dot com changed: What|Removed |Added CC||aaron

[Bug libstdc++/63829] _Lock_policy used in thread.cc can cause incompatibilities with binaries using different -mcpu

2014-12-05 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63829 Aaron Graham aaron at aarongraham dot com changed: What|Removed |Added Component|c++ |libstdc

[Bug c++/63829] New: Crash in__tls_init when -mcpu=arm1176jzf-s is used

2014-11-11 Thread aaron at aarongraham dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aaron at aarongraham dot com ARM processor, Raspberry Pi Offending code: #include memory thread_local std::unique_ptrint tls_test; struct foo { foo() { tls_test.reset(new int(42)); } } const foo_instance

[Bug c++/63829] Crash in__tls_init when -mcpu=arm1176jzf-s is used

2014-11-11 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63829 --- Comment #1 from Aaron Graham aaron at aarongraham dot com --- Created attachment 33945 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33945action=edit Disassembly of crashing result.

[Bug c++/63829] Crash in__tls_init when -mcpu=arm1176jzf-s is used

2014-11-11 Thread aaron at aarongraham dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63829 --- Comment #2 from Aaron Graham aaron at aarongraham dot com --- Created attachment 33946 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33946action=edit Disassembly of good result.

[Bug libstdc++/41861] [C++0x] condition_variable does not use monotonic_clock

2009-11-09 Thread aaron at aarongraham dot com
--- Comment #6 from aaron at aarongraham dot com 2009-11-10 04:38 --- So it appears that the problem is gthreads. The monotonic_clock support is purely superficial in gcc until gthreads supports such a concept. Developers will need to create their own clock and modify the standard

[Bug target/28808] Alignment problem in __gthread_once_t in vxWorks

2009-10-29 Thread aaron at aarongraham dot com
--- Comment #3 from aaron at aarongraham dot com 2009-10-29 15:53 --- It appears that this one is fixed as of SVN revision 146566: http://gcc.gnu.org/viewcvs/trunk/gcc/gthr-vxworks.h?view=log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28808