[Bug fortran/52347] -Wno-tabs -Wall -Wno-tabs still warns about tabs

2013-06-14 Thread Simon.Richter at hogyros dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52347 Simon Richter Simon.Richter at hogyros dot de changed: What|Removed |Added CC

[Bug fortran/52347] -Wno-tabs -Wall -Wno-tabs still warns about tabs

2013-06-14 Thread Simon.Richter at hogyros dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52347 --- Comment #4 from Simon Richter Simon.Richter at hogyros dot de --- Testcase is simple: $ cat tt.cpp void bar(int baz) { } $ g++-4.7 -c -W -Wall -Werror -Wno-unused tt.cpp $ g++-4.8 -c -W -Wall -Werror -Wno-unused tt.cpp tt.cpp:1:6: error

[Bug tree-optimization/67886] New: Incomplete optimization for virtual function call into freshly constructed object

2015-10-07 Thread Simon.Richter at hogyros dot de
Severity: minor Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- This is a bit of a corner/academic case, but came up in a Stack Overflow discussion: struct Base

[Bug tree-optimization/81427] New: Bad optimization for fibonacci function on PowerPC

2017-07-13 Thread Simon.Richter at hogyros dot de
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- Created attachment 41742 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41742=edit Generated assembler code Compiling the code #incl

[Bug c++/86351] New: Array references as arguments to ternary operator

2018-06-28 Thread Simon.Richter at hogyros dot de
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- The code char const array1[2] = { 'a', 'b' }; char const array2[2] = { 'c', 'd' }; char foo(bool b) { char const ()[2] = b ? array1 : array2

[Bug c++/87634] New: CSE for dynamic_cast

2018-10-17 Thread Simon.Richter at hogyros dot de
: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- With the code struct A { virtual void foo() = 0; }; struct B : A { virtual void foo() {} void bar() const; }; void test(A *a) { if(auto b = dynamic_cast

[Bug c++/87634] CSE for dynamic_cast

2018-10-18 Thread Simon.Richter at hogyros dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87634 --- Comment #2 from Simon Richter --- Well, I tried really hard to make a case that makes the second dynamic_cast return null after the first returned non-null. The most promising candidate uses a direct destructor call and placement new on a

[Bug c++/88176] New: Overload resolution chooses template non-member operator over non-template member operator

2018-11-23 Thread Simon.Richter at hogyros dot de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- Similar to #78291: struct foo { foo operator+(foo const ) const { throw

[Bug c++/89563] New: decltype resolution doesn't terminate recursion

2019-03-02 Thread Simon.Richter at hogyros dot de
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- Similar to #88176: struct one {}; struct two { two() { } two(one const &) { } operator one() const { return one{}; }

[Bug c++/89564] New: decltype resolution ignores SFINAE

2019-03-02 Thread Simon.Richter at hogyros dot de
++ Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- Similar to #89563, but even more minimal: #include struct one {}; struct two { two() { } two(one const &) { } operator one() const { return

[Bug preprocessor/89142] New: Allow poisoning identifier from the command line

2019-01-31 Thread Simon.Richter at hogyros dot de
Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- I'm currently refactoring a program that uses a preprocessor symbol in various places, and I'd like to generate errors for all uses. There is no common

[Bug target/111704] New: ICE in extract_insn, at recog.cc:2791 on aarch64-linux-gnu during RTL pass: cprop_hardreg

2023-10-05 Thread Simon.Richter at hogyros dot de via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- While [building GHDL 3.0.0]() on Debian, using gcc 12 as a base, we get an ICE: aarch64-linux-gnu

[Bug rtl-optimization/109930] transform atomic exchange to unconditional store when old value is unused?

2023-05-31 Thread Simon.Richter at hogyros dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109930 --- Comment #5 from Simon Richter --- > Btw if you know the old state then there is presumably no concurrent access > here and so you don't need atomic, let alone sequential consistency. I know it in some, but not all cases. Basically, what

[Bug rtl-optimization/109930] transform atomic exchange to unconditional store when old value is unused?

2023-05-22 Thread Simon.Richter at hogyros dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109930 --- Comment #3 from Simon Richter --- I was looking at ARMv7 initially. If I understood the implementation correctly, this can be a generic optimization.

[Bug rtl-optimization/109930] New: transform atomic exchange to unconditional store when old value is unused?

2023-05-22 Thread Simon.Richter at hogyros dot de via Gcc-bugs
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- I'm not sure if that is a valid substitution, but... I have a state machine that has a few transitions

[Bug target/113980] New: risc-v: unnecessary sign-extend after lw, and more

2024-02-18 Thread Simon.Richter at hogyros dot de via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- On RISC-V with -O3, #include extern uint32_t volatile d; extern uint8_t volatile o; void f() { uint32_t t; while((t = d) & 0x8000) ;

[Bug target/113981] New: risc-v: non-void C++ function with no return statement has no ret

2024-02-18 Thread Simon.Richter at hogyros dot de via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- On RISC-V with -O3, the C++ program int f() {} emits a completely empty function. It correctly warns about the missing

[Bug c++/114675] New: warning for "reference to not fully constructed object"

2024-04-10 Thread Simon.Richter at hogyros dot de via Gcc-bugs
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Simon.Richter at hogyros dot de Target Milestone: --- We have an object that contains several sub-objects that should reference each other through interface pointers. I'd like to