[Bug modula2/108294] New: soname bump for modula2 runtime libraries

2023-01-05 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108294 Bug ID: 108294 Summary: soname bump for modula2 runtime libraries Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula

[Bug c/108295] New: Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 Bug ID: 108295 Summary: Free label positions shouldn't be available outside -std=c2x Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c/108296] New: __builtin_memcpy generating wrong code in some cases

2023-01-05 Thread nyh at math dot technion.ac.il via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108296 Bug ID: 108296 Summary: __builtin_memcpy generating wrong code in some cases Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #1 from Daniel Lundin --- Created attachment 54193 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54193&action=edit Correctly working true/false vs incorrectly free position of label

[Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall

2023-01-05 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108278 --- Comment #14 from David Binderman --- (In reply to Florian Weimer from comment #8) > I believe the revert in 455acc43518744b89d6a795bbba5045bd228060b should have > fixed this? It looks to me like it does. > I also brought up the initializat

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #2 from Andreas Schwab --- Free positioning of labels inside compound statements doesn't affect correctly written programs.

[Bug c/108296] __builtin_memcpy generating wrong code in some cases

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

[Bug middle-end/32667] block copy with exact overlap is expanded as memcpy

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667 Andrew Pinski changed: What|Removed |Added CC||nyh at math dot technion.ac.il --- Comme

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #3 from Daniel Lundin --- (In reply to Andreas Schwab from comment #2) > Free positioning of labels inside compound statements doesn't affect > correctly written programs. No but until C23, the compiler should report an error for in

[Bug libbacktrace/108297] New: libtool link b2test fails: Unrecognized argument: --build-id

2023-01-05 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108297 Bug ID: 108297 Summary: libtool link b2test fails: Unrecognized argument: --build-id Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-01-05 Status|UNCONFIRM

[Bug c/108296] __builtin_memcpy generating wrong code in some cases

2023-01-05 Thread nyh at math dot technion.ac.il via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108296 --- Comment #2 from Nadav Har'El --- Thanks. Interesting. So __builtin_memcpy() is simply not supposed to work correctly for overlapping areas? I now realize that according to memcpy(3) documentation, memcpy() is also not guaranteed to work corr

[Bug c/108298] New: Wrong optimization of volatile access from gcc 11 and beyond

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108298 Bug ID: 108298 Summary: Wrong optimization of volatile access from gcc 11 and beyond Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c/108298] Wrong optimization of volatile access from gcc 11 and beyond

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

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #5 from Daniel Lundin --- (In reply to Andrew Pinski from comment #4) > Try -pedantic-errors. Yes I already did and then the error appears. But that would imply that this is a non-standard GNU extension and not an upcoming standard

[Bug c/33053] adopt accesses through a volatile-casted pointer as a GNU C extension

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33053 Andrew Pinski changed: What|Removed |Added CC||daniel.lundin.mail at gmail dot co

[Bug middle-end/32667] block copy with exact overlap is expanded as memcpy

2023-01-05 Thread nyh at math dot technion.ac.il via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667 --- Comment #21 from Nadav Har'El --- This old problem has become a real problem in gcc 12 with a real effect on incorrect code generation, where code that copies an object was incorrectly "optimized" to use __builtin_memcpy() instead of __builti

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

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

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #7 from Daniel Lundin --- (In reply to Andrew Pinski from comment #6) > (In reply to Daniel Lundin from comment #5) > > (In reply to Andrew Pinski from comment #4) > > > Try -pedantic-errors. > > > > Yes I already did and then the e

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #8 from Andrew Pinski --- "When a base standard is specified, the compiler accepts all programs following that standard plus those using GNU extensions that do not contradict it." Wrong again. https://gcc.gnu.org/onlinedocs/gcc-12.2

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #9 from Daniel Lundin --- (In reply to Andrew Pinski from comment #8) > "When a base standard is specified, the compiler accepts all programs > following that standard plus those using GNU extensions that do not > contradict it." >

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #10 from Andrew Pinski --- By conflicting means rejection of correct code. Like for an example the use of the ident non reserved unix, etc.

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #11 from Jakub Jelinek --- (In reply to Daniel Lundin from comment #9) > In this case the GNU extension does contradict the ISO 9899:2018 standard. A > conforming compiler is required to issue a diagnostic (as per 5.1.1.3) upon > spo

[Bug c/108295] Free label positions shouldn't be available outside -std=c2x

2023-01-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108295 --- Comment #12 from Andrew Pinski --- (In reply to Andrew Pinski from comment #10) > By conflicting means rejection of correct code. Like for an example the use > of the ident non reserved unix, etc. The documentation even mentions that. You o

[Bug c/33053] adopt accesses through a volatile-casted pointer as a GNU C extension

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33053 --- Comment #5 from Daniel Lundin --- The intention of DR 476 (Sebor) https://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_476 was a clarification leading to a volatile lvalue access being a side effect, as opposed to an access of vola

[Bug c++/108299] New: toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread agriff at tin dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 Bug ID: 108299 Summary: toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced Product: gcc Versio

[Bug c++/108286] [GCC 12/13] OpenMP Target directive causes internal compiler error

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108286 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:29c3218618ef6177dc33871b26c8fbd9b21eabe1 commit r13-5006-g29c3218618ef6177dc33871b26c8fbd9b21eabe1 Author: Jakub Jelinek Date: T

[Bug c++/108286] [12 Regression] OpenMP Target directive causes internal compiler error

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108286 Jakub Jelinek changed: What|Removed |Added Summary|[GCC 12/13] OpenMP Target |[12 Regression] OpenMP

[Bug target/104921] aarch64: Assembler failure with vbfmlalbq_lane_f32 intrinsic

2023-01-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104921 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Co

[Bug target/104921] aarch64: Assembler failure with vbfmlalbq_lane_f32 intrinsic

2023-01-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104921 Alex Coplan changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug bootstrap/108300] New: `abort()` macro cause bootstrap failure on *-w64-mingw32

2023-01-05 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108300 Bug ID: 108300 Summary: `abort()` macro cause bootstrap failure on *-w64-mingw32 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Prio

[Bug c/108296] __builtin_memcpy generating wrong code in some cases

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108296 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c/108296] __builtin_memcpy generating wrong code in some cases

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108296 --- Comment #4 from Jakub Jelinek --- I think all of the above snippets have UB, whether using memcpy, __builtin_memcpy or overlapping structure assignment. It is all user error. If you need overlapping copies, always use memmove/__builtin_memm

[Bug bootstrap/108300] `abort()` macro cause bootstrap failure on *-w64-mingw32

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108300 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c/33053] adopt accesses through a volatile-casted pointer as a GNU C extension

2023-01-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33053 --- Comment #6 from Segher Boessenkool --- (In reply to Daniel Lundin from comment #5) > This ought to result in stricter optimizing behavior from gcc, not the other > way around. Well, GCC did implement this already. My request was that we sho

[Bug c/108298] Wrong optimization of volatile access from gcc 11 and beyond

2023-01-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108298 Segher Boessenkool changed: What|Removed |Added Resolution|DUPLICATE |--- Last reconfirmed|

[Bug c/108298] Wrong optimization of volatile access from gcc 11 and beyond

2023-01-05 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108298 --- Comment #3 from Daniel Lundin --- (In reply to Segher Boessenkool from comment #2) > This is not a dup of 33053 (see PR33053#c5 and PR33053#c6). Reopening, and > confirmed. There should be a read from memory: that is a side effect, it has

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #2 from Jakub Jelinek --- See https://eel.is/c++draft/basic.start.dynamic#7 for details.

[Bug libstdc++/108265] chrono::hh_mm_ss can't be constructed from unsigned durations

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108265 --- Comment #3 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ebb1f6d14c2fef2e4e4aab30525279524c8f9145 commit r12-9030-gebb1f6d14c2fef2e4e4aab30525279524c8f9145 Author: Jonathan Wake

[Bug libstdc++/108265] chrono::hh_mm_ss can't be constructed from unsigned durations

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108265 --- Comment #4 from Jonathan Wakely --- and for 12.3

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #2 from Jonathan Wakely --- This is a pre-existing problem that std::to_chars for floating-point types doesn't work on these targets. Until I started to use std::format in std/c++20/tzdb.cc the library wasn't using that, so the missi

[Bug target/108293] Incorrect assembly emitted for float for BPF target

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

[Bug bootstrap/108300] `abort()` macro cause bootstrap failure on *-w64-mingw32

2023-01-05 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108300 --- Comment #2 from LIU Hao --- (In reply to Jonathan Wakely from comment #1) > (In reply to LIU Hao from comment #0) > > 791 | #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__) > > The C++ standard says this is undefined. > > W

[Bug target/108293] Incorrect assembly emitted for float for BPF target

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108293 --- Comment #2 from Jakub Jelinek --- Another thing is that at least for all SFmode constant one could use mov instead of lddw.

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

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

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/108301] New: GCC Static Analyzer evaluates "__analyzer_eval((!(((0 != b[0]) == p_9) && p_9)))" to be TRUE in the true branch of "if ((((0 != b[0]) == p_9) && p_9))"

2023-01-05 Thread geoffreydgr at icloud dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108301 Bug ID: 108301 Summary: GCC Static Analyzer evaluates "__analyzer_eval((!(((0 != b[0]) == p_9) && p_9)))" to be TRUE in the true branch of "if 0 != b[0]) == p_9) && p_9))"

[Bug demangler/107884] H8/300: cp-demangle.c fix warning related demangle.h

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107884 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-01-05 Status|UNCONFI

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #3 from Jonathan Wakely --- I have a workaround for this, but bootstrap still fails for me at: /tmp/ccC7KXoL.s: Assembler messages: /tmp/ccC7KXoL.s:82719: Error: value of 0001254e too large for field of 2 bytes at 0002 make[6]:

[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask

2023-01-05 Thread pkubaj at anongoth dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #21 from Piotr Kubaj --- I'm not sure whether it will help, but the issue only affects building 32-bit multilib libraries on powerpc64. That is, building a full 32-bit gcc for powerpc works just fine.

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #2 from Jakub Jelinek --- The assembly difference is - movl$1, x+20(%rip) + movl$-6, x+20(%rip) Now, that is the correct value to be stored into x[5] by the __builtin_sub_overflow (0, 6, &x[5]); statement, but eac

[Bug libstdc++/108290] QoI: bind_front captureless lambda is too big

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108290 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.0 Status|NEW

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-01-05 Ever confirmed|0

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #1 from Jonathan Wakely --- I've tried to reproduce this, but it depends on the addresses of the _Safe_iterator objects that get created, because they'll use different mutexes unless their addresses collide in the hash function. Wou

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread agriff at tin dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #3 from Andrea Griffini --- Thread storage duration is different from static storage duration. The text I found on the topic is different from the one you are linking, but even in this version (that is indeed more permissive) it's e

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigne

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #3 from Jonathan Wakely --- This was my reproducer, although it doesn't deadlock without the hack to use a single mutex for all objects. #define _GLIBCXX_DEBUG 1 #include int main() { std::vector v{1,2,3}; auto i = v.begin();

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #4 from Jakub Jelinek --- flag2 doesn't have dynamic initialization, if you add dynamic initialization to it, you'll see that flag is constructed before flag2 and that happens before it is referenced in the current thread (after the

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread agriff at tin dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #5 from Andrea Griffini --- So you are saying that the standard forgot to add "that requires dynamic initialization" and that this is the intention?

[Bug c/108298] Wrong optimization of volatile access from gcc 11 and beyond

2023-01-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108298 --- Comment #4 from Segher Boessenkool --- But please use PR33053 for that, or open a new PR? Let's keep this one for just this actual bug :-)

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 Jakub Jelinek changed: What|Removed |Added CC||sayle at gcc dot gnu.org --- Comment #3

[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask

2023-01-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 Segher Boessenkool changed: What|Removed |Added Last reconfirmed||2023-01-05 Ever confirmed|0

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c++/108302] New: void fn (uint8_t auto... args); leads to internal compiler error: Segmentation fault

2023-01-05 Thread lyubomir.filipov at amusnet dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108302 Bug ID: 108302 Summary: void fn (uint8_t auto... args); leads to internal compiler error: Segmentation fault Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #7 from Jonathan Wakely --- Comment 0 seems wrong to me, there is no requirement that flag is initialized if not odr-used, and if it is initialized, it doesn't have to happen before the printf statement. I agree that the standard sa

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #8 from Jonathan Wakely --- FWIW the current wording in the standard was introduced by https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0250r3.html

[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced

2023-01-05 Thread agriff at tin dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299 --- Comment #9 from Andrea Griffini --- I agree that comment 0 is wrong and was based on a text that I thought was taken from the standard but apparently was not (cppreference.com). Sorry for the noise. I think that if the dynamic initializatio

[Bug ipa/108130] [13 Regression] LTO compile time hog seen on bootstrap-lto config since r13-4684-g7450b25566b7a7

2023-01-05 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108130 Martin Jambor changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212 --- Comment #1 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:80ff207da6d8784e227eb93f75c4ac5a300c8420 commit r13-5034-g80ff207da6d8784e227eb93f75c4ac5a300c8420 Author: Jonathan Wakely Date:

[Bug libstdc++/108290] QoI: bind_front captureless lambda is too big

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108290 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:e2eab3c4edb6aa9a93f982c4554cd756000934ca commit r13-5033-ge2eab3c4edb6aa9a93f982c4554cd756000934ca Author: Jonathan Wakely Date:

[Bug libstdc++/108290] QoI: bind_front captureless lambda is too big

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108290 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/103784] suboptimal code for returning bool value on target ppc

2023-01-05 Thread jskumari at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784 --- Comment #8 from Surya Kumari Jangala --- Using -O3 with gcc13, I got (with the test in comment 2): For P8: cmpwi 0,3,2 bgt 0,.L3 subfic 4,4,9 srdi 3,4,63 xori 3,3,0x1 rldicl 3,3,0,63 b

[Bug target/108293] Incorrect assembly emitted for float for BPF target

2023-01-05 Thread jemarch at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108293 --- Comment #3 from Jose E. Marchesi --- (In reply to Jakub Jelinek from comment #2) > Another thing is that at least for all SFmode constant one could use mov > instead of lddw. For this I guess we could expand the "I" constraint to cover cons

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=znver3 since r13-4685-g4834e9360f7bf4

2023-01-05 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110 --- Comment #16 from Martin Jambor --- I have posted the sorting patch to the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609459.html

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread simon.marchi at polymtl dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #4 from Simon Marchi --- Thanks for looking into this so quickly. I'll try to test the patch against my use case, but I might need some guidance. I know how to build gcc and install it in some non-default prefix. But then, do I ne

[Bug modula2/107631] many tests don't link on Mac OS X 10.7

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107631 --- Comment #4 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:4413365616e8c6024d1ff4e23309e5012ee33b9f commit r13-5035-g4413365616e8c6024d1ff4e23309e5012ee33b9f Author: Iain Sandoe Date: Wed

[Bug modula2/107631] many tests don't link on Mac OS X 10.7

2023-01-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107631 Iain Sandoe changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug modula2/108182] gm2 driver mishandles target and multilib options

2023-01-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108182 --- Comment #5 from Iain Sandoe --- (In reply to Gaius Mulley from comment #4) > Created attachment 54184 [details] > Potential fix for target multilib_dir handling -m and -f. > > Work in progress. 1. (I think) the string you need is "multilib

[Bug c/108298] Wrong optimization of volatile access from gcc 11 and beyond

2023-01-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108298 --- Comment #5 from Segher Boessenkool --- This is not x86-specific. Like on powerpc64 we get addi 3,3,3 # 11 [c=4 l=4] *addsi3/1 extsw 3,3# 17 [c=4 l=4] extendsidi2/1 blr # 25 [c=4 l=

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 Roger Sayle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |roger at nextmovesoftware dot com

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #5 from Jakub Jelinek --- Though, it seems the REG_EQUAL note is also wrong on the cmov10.c testcase which went with the commit (again, exact opposite). Seems we have multiple cases where this REG_EQUAL note is newly added. One is x

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #5 from Jonathan Wakely --- The patch doesn't change libstdc++.so, it only changes the headers. You don't even need to rebuild GCC. You could just put a patched copy of safe_iterator.h in /tmp/x/debug and then compile with -I/tmp/x

[Bug c++/108303] New: lookup failes with requires clause on non-template friend function of a class template

2023-01-05 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108303 Bug ID: 108303 Summary: lookup failes with requires clause on non-template friend function of a class template Product: gcc Version: 13.0 Status: UNCONFIRMED S

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #6 from Jakub Jelinek --- So I wonder about: --- gcc/config/i386/i386-expand.cc.jj 2023-01-04 10:45:49.978883731 +0100 +++ gcc/config/i386/i386-expand.cc 2023-01-05 18:22:40.228518935 +0100 @@ -3271,10 +3271,12 @@ ix86_expand_

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #7 from Jakub Jelinek --- Or for now don't add any REG_EQUAL note if op0 has scalar floating point mode...

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread simon.marchi at polymtl dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #6 from Simon Marchi --- Because some code trying to acquire the lock (see frame #7 in my backtrace) is in debug.cc, I thought it would maybe need to be changed too? But I don't really understand any of this.

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #7 from Jonathan Wakely --- __gnu_debug::_Safe_iterator_base::_M_detach in debug.cc isn't affected by the patch though. The fix is to the post-inc and post-dec members, so only the code that calls those needs to be recompiled.

[Bug c++/108303] lookup failes with requires clause on non-template friend function of a class template

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108303 Jonathan Wakely changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug libstdc++/108288] Deadlock when using -fno-elide-constructor + -D_GLIBCXX_DEBUG=1 + -std=c++11

2023-01-05 Thread simon.marchi at polymtl dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288 --- Comment #8 from Simon Marchi --- I tested with just patching my /usr/include, and it looks like it works fine, I'm able to run a program under my GDB. Removing the fix, I get back the hang.

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #8 from Roger Sayle --- Created attachment 54195 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54195&action=edit Roger's proposed patch Here's my proposed patch (or something close to it, it's still bootstrapping and regressi

[Bug libstdc++/108304] New: FAIL: 20_util/from_chars/4.cc execution test

2023-01-05 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108304 Bug ID: 108304 Summary: FAIL: 20_util/from_chars/4.cc execution test Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lib

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #9 from Roger Sayle --- Another way to avoid the SCALAR_FLOAT_MODE_P problem is: /* Add a REG_EQUAL note to allow condition to be shared. */ rtx note = gen_rtx_fmt_ee (orig_code, mode, op0, op1); /* TMP

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #10 from Jakub Jelinek --- (In reply to Roger Sayle from comment #8) > Created attachment 54195 [details] > Roger's proposed patch > > Here's my proposed patch (or something close to it, it's still bootstrapping > and regression tes

[Bug c++/108275] pointer to member field is not checked for accessibility inside a template argument

2023-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108275 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:12b0d35ec52375da5652d2b8da74083ab700b9d7 commit r13-5037-g12b0d35ec52375da5652d2b8da74083ab700b9d7 Author: Patrick Palka Date: T

[Bug libbacktrace/108297] libtool link b2test fails: Unrecognized argument: --build-id

2023-01-05 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108297 Ian Lance Taylor changed: What|Removed |Added CC||ian at airs dot com --- Comment #1 f

[Bug c++/108275] pointer to member field is not checked for accessibility inside a template argument

2023-01-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108275 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Tar

[Bug rtl-optimization/108292] [13 Regression] wrong code with vector compare & mask at -O1 and above

2023-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108292 --- Comment #11 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #10) > (In reply to Roger Sayle from comment #8) > > Here's my proposed patch (or something close to it, it's still bootstrapping > > and regression testing). The goal

  1   2   >