[Bug ipa/115135] [12/13/14/15 regression] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-21 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #9 from Carlos Alberto Lopez Perez --- (In reply to Sam James from comment #8) > (godbolt is great for this, btw) good idea. I tried it but for target ARM64 it doesn't allow to execute the code, only see the generated assembly. And

[Bug ipa/115135] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-21 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #7 from Carlos Alberto Lopez Perez --- Well, I just tested with gcc-11 now and that one works. So the failure was introduced between 11 and 12. $ g++-11 --version g++-11 (Debian 11.3.0-12) 11.3.0 Copyright (C) 2021 Free Software Fou

[Bug ipa/115135] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-21 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #6 from Carlos Alberto Lopez Perez --- (In reply to Sam James from comment #5) > (In reply to Carlos Alberto Lopez Perez from comment #2) > > -fno-ipa-modref helps! passing this flag makes the compiled program is > > correct :) > >

[Bug middle-end/115135] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-20 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #4 from Carlos Alberto Lopez Perez --- FYI: Another way to workaround the issue and make the test pass is to tell GCC to not in-line the function doTest(). --- a/test.cpp 2024-05-17 03:15:07.275473492 + +++ b/test.cpp 2024-05-

[Bug middle-end/115135] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-20 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #3 from Carlos Alberto Lopez Perez --- Note: I just tested to build GCC from master branch (version 15.0.0 20240520: commit e14c673ea9ab2eca5de4db91b478f0b5297ef321) and the issue is still reproducible with it.

[Bug middle-end/115135] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-17 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 --- Comment #2 from Carlos Alberto Lopez Perez --- (In reply to Andrew Pinski from comment #1) > Does either -fno-ivopts or -fno-ipa-modref help? -fno-ivopts does not help -fno-ipa-modref helps! passing this flag makes the compiled program is

[Bug target/115135] New: [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants

2024-05-17 Thread clopez at igalia dot com via Gcc-bugs
Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: clopez at igalia dot com Target Milestone: --- Created attachment 58225 --> https://gcc.gnu.

[Bug c++/114997] ICE with -std=c++20: unexpected expression ‘static_cast('\"')’ of kind static_cast_expr

2024-05-08 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114997 --- Comment #2 from Carlos Alberto Lopez Perez --- On WebKit we finally work-arounded the problem by replacing `constexpr` with `const` at commit https://github.com/WebKit/WebKit/commit/1ee00a2309c03ed119e8591022ba14f936440d71

[Bug c++/114997] ICE with -std=c++20: unexpected expression ‘static_cast('\"')’ of kind static_cast_expr

2024-05-08 Thread clopez at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114997 --- Comment #1 from Carlos Alberto Lopez Perez --- The original cpp file that causes the issue can be found here: https://raw.githubusercontent.com/WebKit/WebKit/4855c7a1dc4214523c0b3d0c430215456ed7a0a9/Source/JavaScriptCore/runtime/JSONObject.c

[Bug c++/114997] New: ICE with -std=c++20: unexpected expression ‘static_cast('\"')’ of kind static_cast_expr

2024-05-08 Thread clopez at igalia dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: clopez at igalia dot com Target Milestone: --- Created attachment 58137 --> https://gcc.gnu.org/bugzilla/attachment.c

[Bug demangler/68159] Demangler crash (GDB PR 19190)

2017-09-05 Thread clopez at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 --- Comment #15 from Carlos Alberto Lopez Perez --- (In reply to H.J. Lu from comment #11) > *** Bug 68383 has been marked as a duplicate of this bug. *** Bug 68383 was fixed by r245978 So, this one is also fixed right ?

[Bug c++/68159] Demangler crash (GDB PR 19190)

2016-08-01 Thread clopez at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 --- Comment #13 from Carlos Alberto Lopez Perez --- (In reply to H.J. Lu from comment #12) > Created attachment 39042 [details] > A patch to avoid stack oveflow This fixes the issue with the previous test case. However, this other one (obtained

[Bug c++/68159] Demangler crash (GDB PR 19190)

2016-08-01 Thread clopez at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 --- Comment #10 from Carlos Alberto Lopez Perez --- It seems c++filt also crashes with the very same test case: $ echo '_ZSt7forwardIRKZN5Write14DataMapGrammarISt20back_insert_iteratorISsEEC4EvEUlRT_E_EOS5_RNSt16remove_referenceIS5_E4typeE'|c++f

[Bug c++/68159] Demangler crash (GDB PR 19190)

2016-07-29 Thread clopez at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 Carlos Alberto Lopez Perez changed: What|Removed |Added CC||clopez at igalia dot com