[Bug c++/97952] Poor optimization of closure-like construct in C++ as compared to C

2020-11-23 Thread eric-gcc at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97952 --- Comment #1 from eric-gcc at omnifarious dot org --- Because you might not like Godbolt links, here is the C code: //---cut here--- /*** core string search routine ***/ typedef char *String; typedef

[Bug c++/97952] New: Poor optimization of closure-like construct in C++ as compared to C

2020-11-23 Thread eric-gcc at omnifarious dot org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric-gcc at omnifarious dot org Target Milestone: --- This code generates about 400+ lines of assembly: https://gcc.godbolt.org/z/s9s9Mx and this essentially equivalent C code

[Bug c++/50087] [C++0x] Weird optimization anomaly with constexpr

2011-09-13 Thread eric-gcc at omnifarious dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087 --- Comment #7 from eric-gcc at omnifarious dot org 2011-09-13 22:15:16 UTC --- (In reply to comment #6) > (In reply to comment #5) > > I still think it's a missed optimization opportunity. > > Yes, it definitely is. I'm

[Bug c++/50087] Weird optimization anomoly with constexpr

2011-08-15 Thread eric-gcc at omnifarious dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087 --- Comment #1 from eric-gcc at omnifarious dot org 2011-08-15 12:49:16 UTC --- Created attachment 25015 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25015 The function 'runs_too_long' takes basically forever

[Bug c++/50087] New: Weird optimization anomoly with constexpr

2011-08-15 Thread eric-gcc at omnifarious dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087 Bug #: 50087 Summary: Weird optimization anomoly with constexpr Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority

[Bug c++/46827] Heavy use of namespaces leads to cluttered and difficult to read header files

2010-12-06 Thread eric-gcc at omnifarious dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46827 --- Comment #2 from eric-gcc at omnifarious dot org 2010-12-06 20:19:51 UTC --- (In reply to comment #1) > I think you should proposal this to the C++ standards committee instead of > posting a full request here. I don't know how to d

[Bug c++/46827] New: Heavy use of namespaces leads to cluttered and difficult to read header files

2010-12-06 Thread eric-gcc at omnifarious dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46827 Summary: Heavy use of namespaces leads to cluttered and difficult to read header files Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Prio

[Bug tree-optimization/14703] Inadequate optimization of inline templated functions

2006-03-02 Thread eric-gcc at omnifarious dot org
--- Comment #6 from eric-gcc at omnifarious dot org 2006-03-02 20:25 --- I'm pleased that I came up with such a difficult test case for the optimizer. I never thought it'd be that hard. :-) I don't know anything about the internals, but... The compiler has to gene