[Bug middle-end/114289] Non-optimal assembly for accessing bit-fields in packed structs

2024-03-08 Thread dan at stahlke dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114289 --- Comment #3 from Dan Stahlke --- Variants that generate more reasonable results: struct foo { int x:32; } __attribute__((packed)); struct foo { int x:16; } __attribute__((packed)); struct foo { int x:31; }; struct foo {

[Bug tree-optimization/114289] Non-optimal assembly for accessing bit-fields in packed structs

2024-03-08 Thread dan at stahlke dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114289 Dan Stahlke changed: What|Removed |Added Target|x86_64-linux-gnu| Keywords|missed-optimization

[Bug tree-optimization/114289] New: Non-optimal assembly for accessing bit-fields in packed structs

2024-03-08 Thread dan at stahlke dot org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org Target Milestone: --- // gcc -O3 -g -Wall -march=haswell -mavx2 // https://godbolt.org/z/Yfb9dnYx4 struct foo { int x:31; } __attribute__

[Bug tree-optimization/105329] [12/13 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6

2022-09-30 Thread dan at stahlke dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 --- Comment #25 from Dan Stahlke --- The test case I just posted appears in the bug 105651 discussion. So maybe or maybe not related to the present discussion.

[Bug tree-optimization/105329] [12/13 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6

2022-09-30 Thread dan at stahlke dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 Dan Stahlke changed: What|Removed |Added CC||dan at stahlke dot org --- Comment #24

[Bug c++/106893] New: auto deduces wrong type for function pointer

2022-09-08 Thread dan at stahlke dot org via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org Target Milestone: --- This works in 11.3.0 but not in 12.2.0. struct IntegerCoordinate { int x() const; int y() const; }; template struct CoordTraits { static auto GetX(T const

[Bug c++/102970] New: stable_sort uninitialized value with -funroll-loops -fno-tree-vectorize

2021-10-27 Thread dan at stahlke dot org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org Target Milestone: --- Created attachment 51682 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51682=edit demonstration source code The attac

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2020-01-16 Thread dan at stahlke dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #28 from Dan Stahlke --- Thank you. That makes sense. I had asked about it here: https://stackoverflow.com/questions/59690019 I was directed to this thread, and linked back to the SO thread you provided.

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2020-01-15 Thread dan at stahlke dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 Dan Stahlke changed: What|Removed |Added CC||dan at stahlke dot org --- Comment #22

[Bug c++/90998] [9/10 Regression] ICE (segfalut) in gcc/cp/call.c compare_ics() with -std=c++17

2019-10-11 Thread dan at stahlke dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998 Dan Stahlke changed: What|Removed |Added CC||dan at stahlke dot org --- Comment #3

[Bug libstdc++/89763] New: Making iterator's operator== breaks existing code

2019-03-18 Thread dan at stahlke dot org
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org Target Milestone: --- gcc 9 has made operator== and operator!= free functions for std::map (and probably other) iterators. Probably this is considered an implementation detail

[Bug lto/89762] New: Mixing optimization levels with ostream gives lto1: internal compiler error: in get_odr_type, at ipa-devirt.c:2098

2019-03-18 Thread dan at stahlke dot org
: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org CC: marxin at gcc dot gnu.org Target Milestone: --- === A.cpp #include std

[Bug libstdc++/89629] New: std::hash segfault for long strings

2019-03-07 Thread dan at stahlke dot org
++ Assignee: unassigned at gcc dot gnu.org Reporter: dan at stahlke dot org Target Milestone: --- _Hash_bytes crashes when len is 2^31 or greater. The length is converted to int at hash_bytes.cc line 142, resulting in a negative number if the length doesn't fit in an int variable

[Bug libstdc++/58038] std::this_thread::sleep_until can cause inifinite sleep

2014-09-15 Thread dan at stahlke dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58038 Dan Stahlke dan at stahlke dot org changed: What|Removed |Added CC||dan at stahlke dot