[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Fixed in GCC 10 by r10-2105-gcb50701ec2c7a (I found a slight missed > optimization but I will file that as a seperate issue). The slight missed optimization is

[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement See Also|

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-21 Thread tiagomacarios at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 --- Comment #6 from Tiago Macarios --- Related clang bug: https://bugs.llvm.org/show_bug.cgi?id=39731

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-21 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 --- Comment #5 from Marc Glisse --- "An implementation is allowed to omit a call to a replaceable global allocation function" (not any operator new) so I am not sure DECL_IS_OPERATOR_NEW is the right test.

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 --- Comment #4 from Jonathan Wakely --- (In reply to Richard Biener from comment #3) > If clang removes the new calls then DECL_IS_OPERATOR_NEW may not have > side-effects that need to be preserved. (hopefully) Since C++14 the C++ standard

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-20 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Marc Glisse changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/88118] GCC keeps unnecessary calls to new

2018-11-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Andrew Pinski changed: What|Removed |Added Depends on||19831 --- Comment #1 from Andrew Pinski