[Bug ipa/107931] [12/13 Regression] -Og causes always_inline to fail since r12-6677-gc952126870c92cf2

2022-12-01 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931 --- Comment #5 from Tomasz Konojacki --- To sum this thread up, there are undocumented rules that can cause a semantically identical program to be rejected by the compiler under certain optimisation levels (with an uninformative error message) a

[Bug c/107931] [12 Regression] -Og causes always_inline to fail

2022-11-29 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931 --- Comment #1 from Tomasz Konojacki --- (In reply to Tomasz Konojacki from comment #0) > The error below occurs only with -Od. Sorry, -Og. PS. It seems that moving the definition of fun4 to the first line makes the error disappear.

[Bug c/107931] New: [12 Regression] -Od causes always_inline to fail

2022-11-29 Thread me at xenu dot pl via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: me at xenu dot pl Target Milestone: --- The error below occurs only with -Od. The code is accepted if one of -O0, -O1, -O2, -O3 or -Os is used instead. This happens with GCC 12.1 and 12.2, it doesn't with 11.3.

[Bug c++/101537] New: -Wconversion false positive in ternary

2021-07-20 Thread me at xenu dot pl via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: me at xenu dot pl Target Milestone: --- The following code: int foo() { int aaa = 1; unsigned char bbb = 0; bbb |= aaa ? 1 : 0; return bbb; } Gives this warning: : In function 'foo': :4:12: warning:

[Bug c/53277] -Wconversion cannot handle compound expressions

2021-07-20 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53277 --- Comment #18 from Tomasz Konojacki --- Sorry, it still warns in C mode, but it doesn't in C++.

[Bug c++/93652] -Wconversion gives false warning with bitwise operations on reference types returned from function

2021-07-20 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93652 Tomasz Konojacki changed: What|Removed |Added CC||me at xenu dot pl --- Comment #1

[Bug c/53277] -Wconversion cannot handle compound expressions

2021-07-20 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53277 Tomasz Konojacki changed: What|Removed |Added CC||me at xenu dot pl --- Comment #17

[Bug c++/38522] -Wconversion does not handle complex bitwise expressions

2021-07-20 Thread me at xenu dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38522 Tomasz Konojacki changed: What|Removed |Added CC||me at xenu dot pl --- Comment #10

[Bug target/69616] optimization of 8 movb

2018-05-27 Thread me at xenu dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69616 Tomasz Konojacki changed: What|Removed |Added CC||me at xenu dot pl --- Comment #4

[Bug rtl-optimization/66152] suboptimal load bytes to stack

2018-05-27 Thread me at xenu dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66152 Tomasz Konojacki changed: What|Removed |Added CC||me at xenu dot pl --- Comment #3