[Bug tree-optimization/107919] Possibly false-positive "maybe-uninitialized" with GCC 12 on complex variant-variant-tuple-unique_ptr types

2022-11-29 Thread freddie_chopin at op dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107919 --- Comment #1 from Freddie Chopin --- More possibly imporant notes: 1. The warning appears only with -O1 or -O2, with 0, s, g or 3 the warning is gone. 2. Adding -fsanitize=undefined to compiler invocation makes the warning go away as well - no

[Bug c++/107138] [12/13 regression] std::variant triggers false-positive 'may be used uninitialized' warning

2022-11-29 Thread freddie_chopin at op dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug c++/107919] New: Possibly false-positive "maybe-uninitialized" with GCC 12 on complex variant-variant-tuple-unique_ptr types

2022-11-29 Thread freddie_chopin at op dot pl via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Following code gives no warning with GCC 11.3 and earlier versions: -- 8&l

[Bug other/86890] GCC 8.2.0 fails to build with isl 0.20

2018-08-08 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86890 --- Comment #2 from Freddie Chopin --- Prerequisites docs say "isl Library version 0.15 or later". Configure script also accepts 0.20 just fine. BTW - 0.19 builds and works OK.

[Bug other/86890] New: GCC 8.2.0 fails to build with isl 0.20

2018-08-08 Thread freddie_chopin at op dot pl
Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- When trying to build GCC 8.2.0 with isl 0.20, I see a lot (at least a few dozens) of errors about undeclared functions, like: -- >8 -- >8 -- >8 -- >8 -- >8 -- >8

[Bug libstdc++/85886] New: std::atomic<> doesn't have value_type and difference_type

2018-05-23 Thread freddie_chopin at op dot pl
ity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- According to https://en.cppreference.com/w/cpp/atomic/atomic std::atomic<> should contain value_type and difference_t

[Bug c++/85739] internal compiler error: in finish_member_declaration, at cp/semantics.c:3057

2018-05-11 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85739 Freddie Chopin changed: What|Removed |Added Attachment #44111|0 |1 is obsolete|

[Bug c++/85739] internal compiler error: in finish_member_declaration, at cp/semantics.c:3057

2018-05-11 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85739 --- Comment #1 from Freddie Chopin --- I'm currently in the process of reducing the test case with the wonderful tool that I've found yesterday - C-Reduce (; I hope that I'll be able to upload something short and generic (not requiring arm-none-e

[Bug c++/85739] New: internal compiler error: in finish_member_declaration, at cp/semantics.c:3057

2018-05-10 Thread freddie_chopin at op dot pl
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Created attachment 44111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44111&action=edit preprocessed sour

[Bug target/85606] New: Assembly file generated for ARM Cortex-M0 should not specify `.arch armv6-m` at all or use `.arch armv6s-m`

2018-05-02 Thread freddie_chopin at op dot pl
: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Target: arm-none-eabi This issue is inspired by following bug report for GAS

[Bug c++/85580] New: "conflicting C language linkage declaration" warning for variables with identical names in `extern "C"` functions

2018-04-30 Thread freddie_chopin at op dot pl
c Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Here's a minimal test case execut

[Bug c++/82461] [7/8 Regression] Temporary required for brace-initializing (non-literal-type) member variable

2018-01-17 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82461 --- Comment #2 from Freddie Chopin --- Any chance there is a patch for this problem that could be merged before 7.3?

[Bug c/83703] Loop termination condition ignored in -O3, works in -O2 or with smaller values

2018-01-06 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83703 --- Comment #6 from Freddie Chopin --- The runtime checks are no good in deeply embedded (like a MCU)... Anyway - would this behave the same if the values in `in[]` would NOT be known at compile time? For example provided by user for each run of

[Bug c/83703] Loop termination condition ignored in -O3, works in -O2 or with smaller values

2018-01-06 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83703 --- Comment #4 from Freddie Chopin --- Would it be possible to have a warning with -Wall -Wextra when something like that happens? I think this behaviour here is really strange and really unexpected. In "real" programs I guess there are tons of s

[Bug c/83703] Loop termination condition ignored in -O3, works in -O2 or with smaller values

2018-01-06 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83703 --- Comment #2 from Freddie Chopin --- Indeed, reducing the values in `in[]` makes the code behave properly. But anyway - how does this particular (minor) issue in the code affect a seemingly unrelated loop? After all, this loop's variable - `b1`

[Bug c/83703] New: Loop termination condition ignored in -O3, works in -O2 or with smaller values

2018-01-05 Thread freddie_chopin at op dot pl
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Example code: -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- #include #incl

[Bug c++/80593] New: GCC 7, aligned_storage and “dereferencing type-punned pointer will break strict-aliasing rules”

2017-05-02 Thread freddie_chopin at op dot pl
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- I've posted this info to the gcc mailing list. Richard Biener suggested opening a bug report, so he

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-27 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 --- Comment #9 from Freddie Chopin --- Patch above (applied to 7.0.1-RC-20170425) fixes the original issue which I reported - the project builds fine and works correctly. The warnings ("dereferencing type-punned pointer will break strict-aliasing

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 --- Comment #1 from Freddie Chopin --- Created attachment 41276 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41276&action=edit preprocessed source which causes the problem - minimal version OK, I've managed to narrow it down to a much sm

[Bug c++/80534] New: 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread freddie_chopin at op dot pl
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Target: arm-none-eabi Created attachment 41275 --> https://gcc.gnu.org/bugzilla/attachment.cgi

[Bug c++/80332] Warning is issued for deprecated "using" type alias of deprecated type

2017-04-19 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80332 --- Comment #2 from Freddie Chopin --- Same behaviour with gcc 7.0.1 20170409.

[Bug c++/80332] New: Warning is issued for deprecated "using" type alias of deprecated type

2017-04-05 Thread freddie_chopin at op dot pl
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- There is a base type with "__attribute__ ((deprecated))". If I create an alias with "typedef",

[Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types

2017-03-02 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results

2017-02-09 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79436 --- Comment #6 from Freddie Chopin --- > On a newer Intel (or AMD) machine, add -march=naitve and you will > see the same behavior. You are right, adding that switch causes the assert to appear... > VFMA is not just multiply and accumulate but

[Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results

2017-02-08 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79436 --- Comment #4 from Freddie Chopin --- Hello Andrew and thanks for your answer. Generally I don't care about the sequence of operations or the exact instructions that get generated, but in this case this default behaviour produces invalid result

[Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results

2017-02-08 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79436 --- Comment #2 from Freddie Chopin --- Created attachment 40701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40701&action=edit assembly dump of valid version

[Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results

2017-02-08 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79436 --- Comment #1 from Freddie Chopin --- Created attachment 40700 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40700&action=edit assembly dump of invalid version

[Bug target/79436] New: [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results

2017-02-08 Thread freddie_chopin at op dot pl
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Target: arm-none-eabi Created attachment 40699 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40699&

[Bug middle-end/78824] multiple add should in my opinion be optimized to multiplication

2016-12-16 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78824 --- Comment #5 from Freddie Chopin --- Sure, more data points show that this is most likely a problem in a target component, not in middle-end or c front-end.

[Bug middle-end/78824] multiple add should in my opinion be optimized to multiplication

2016-12-16 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78824 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug target/77904] [ARM Cortex-M0] Frame pointer thrashes registers if assembly statements with "sp" clobber are used

2016-12-10 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77904 --- Comment #9 from Freddie Chopin --- Any chance for merging the fix to gcc-6 branch before gcc 6.3 would be released?

[Bug target/77904] [ARM Cortex-M0] Frame pointer thrashes registers if assembly statements with "sp" clobber are used

2016-11-22 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77904 --- Comment #7 from Freddie Chopin --- Could this be also backported to the gcc-6 branch? I guess there will be 6.3 version (possibly before first 7.x version), so it would be nice to have this patch there (;

[Bug c++/77907] Add "const" to argument of constexpr constructor causes the object to be left in unconstructed state

2016-10-09 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77907 --- Comment #1 from Freddie Chopin --- Maybe it is important to add, that it doesn't matter whether SomeClass::someFunction() is const or not - it behaves identically in both cases.

[Bug c++/77907] New: Add "const" to argument of constexpr constructor causes the object to be left in unconstructed state

2016-10-09 Thread freddie_chopin at op dot pl
Status: UNCONFIRMED Severity: critical Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Target: x86_64-pc-linux-gnu, arm-none-eabi Failing test case: --- 8&

[Bug c/77904] New: [ARM Cortex-M0] Frame pointer thrashes registers if assembly statements with "sp" clobber are used

2016-10-08 Thread freddie_chopin at op dot pl
NCONFIRMED Severity: critical Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Target: arm-none-eabi In some very specific cases frame pointer can thrash c

[Bug c++/71113] Adding "const" to value in constexpr constructor places const object in .bss instead of .rodata

2016-05-14 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71113 --- Comment #1 from Freddie Chopin --- BTW, I've come to the code as above from a slightly different scenario - initially I tried using references, but it was failing (placed in RAM, not in flash) no matter what I did. Now I think that the two pr

[Bug c++/71113] New: Adding "const" to value in constexpr constructor places const object in .bss instead of .rodata

2016-05-14 Thread freddie_chopin at op dot pl
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl Target Milestone: --- Take a look at following test case: -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- &

[Bug c++/64514] [4.9/5 Regression] Error in template instantiation in GCC 4.9, works fine in GCC 4.8

2015-01-12 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64514 --- Comment #1 from Freddie Chopin --- The question at stackoverflow has an answer with much simpler test-case which also shows the problem. http://stackoverflow.com/a/27810002/157344 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 ---

[Bug c++/64514] New: Error in template instantiation in GCC 4.9, works fine in GCC 4.8

2015-01-06 Thread freddie_chopin at op dot pl
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freddie_chopin at op dot pl The test code below works perfectly fine with GCC 4.8 (and 4.7): --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- #i

[Bug libstdc++/55409] std::list not properly wrapping access to custom allocator through allocator_traits

2014-09-02 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55409 --- Comment #7 from Freddie Chopin --- Great (; Do you have some timeline? I'm not trying to rush you - I'm just working on a project in which this feature would be beneficial, so I'm wondering whether I should wait a bit (this particular require

[Bug libstdc++/55409] std::list not properly wrapping access to custom allocator through allocator_traits

2014-09-02 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55409 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug c++/54126] ICE on constexpr move ctor with const ref type instead of error

2013-02-12 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54126 --- Comment #4 from Freddie Chopin 2013-02-13 07:29:23 UTC --- Created attachment 29430 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29430 simple fail case I think I have an even simplier test case, I guess it's the same problem

[Bug c++/56291] [4.6/4.7/4.8 Regression] ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-12 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 --- Comment #9 from Freddie Chopin 2013-02-12 15:31:46 UTC --- (In reply to comment #8) > Perhaps because you are the reporter and reporter is always CCed on the PRs, > no > matter if on CC or not? If you remove me from the CC list I w

[Bug c++/56291] [4.6/4.7/4.8 Regression] ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-12 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug c++/56291] [4.6/4.7/4.8 Regression] ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-12 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 --- Comment #5 from Freddie Chopin 2013-02-12 09:07:37 UTC --- Yes, sorry about the fuzz with the testcase and thx for confirming.

[Bug c++/56291] ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-11 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 Freddie Chopin changed: What|Removed |Added CC||freddie_chopin at op dot pl

[Bug c++/56291] ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-11 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 --- Comment #2 from Freddie Chopin 2013-02-12 07:14:17 UTC --- Created attachment 29421 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29421 failing test case

[Bug c++/56291] New: ICE for C++11 in output_constructor_regular_field, at varasm.c:4821

2013-02-11 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56291 Bug #: 56291 Summary: ICE for C++11 in output_constructor_regular_field, at varasm.c:4821 Classification: Unclassified Product: gcc Version: 4.7.2 Status: U

[Bug rtl-optimization/55757] Suboptimal interrupt prologue/epilogue for ARMv7-M (Cortex-M3)

2012-12-20 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55757 --- Comment #6 from Freddie Chopin 2012-12-21 07:08:59 UTC --- (In reply to comment #4) > Former is better on code size, latter wins on performance. Hopefully this > explains everything. Indeed, it's clear now. Thank you for your time!

[Bug rtl-optimization/55757] Suboptimal interrupt prologue/epilogue for ARMv7-M (Cortex-M3)

2012-12-20 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55757 --- Comment #3 from Freddie Chopin 2012-12-20 17:07:47 UTC --- Indeed that's a trivial case, but other - useful - cases also show strange behavior which I cannot clearly explain, so while we're at it I'd be grateful for some explanation...

[Bug rtl-optimization/55757] Suboptimal interrupt prologue/epilogue for ARMv7-M (Cortex-M3)

2012-12-20 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55757 --- Comment #1 from Freddie Chopin 2012-12-20 15:23:25 UTC --- BTW - it seems that optimization settings don't make any difference here - the code below was compiled with -Os, on all other levels (1,2,3) the assembly looks like this: 00

[Bug rtl-optimization/55757] New: Suboptimal interrupt prologue/epilogue for ARMv7-M (Cortex-M3)

2012-12-20 Thread freddie_chopin at op dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55757 Bug #: 55757 Summary: Suboptimal interrupt prologue/epilogue for ARMv7-M (Cortex-M3) Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONF