[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-10-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #19 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:09a0affdb0598a54835ac4bb0dd6b54122c12916 commit r12-4319-g09a0affdb0598a54835ac4bb0dd6b54122c12916 Author: Richard Biener Date:

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-10-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Richard Biener changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-10-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #1

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Richard Biener changed: What|Removed |Added Target Milestone|11.2|11.3 --- Comment #15 from Richard Bien

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #14 from Richard Biener --- diff --git a/gcc/gimple.c b/gcc/gimple.c index 863bc0d17f1..e085d9de49a 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -1516,12 +1516,12 @@ gimple_call_fnspec (const gcall *stmt) && DECL_IS_OPERATO

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #13 from Richard Biener --- In PR98130 I suggested "..o " for delete and it would be "m " for new (does a C++ new expression really set/clobber errno?).

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #12 from Richard Biener --- That was because of PR98130 it seems.

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #11 from rguenther at suse dot de --- On Mon, 19 Jul 2021, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 > > Jonathan Wakely changed: > >What|Removed |Add

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread jens.maurer at gmx dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #10 from Jens Maurer --- I agree with Jonathan here: The difference is that "malloc" comes with the compiler/library and cannot be replaced (within the scope of the C or C++ standards), but "operator new" is expressly specified to be

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #8 from Jonathan Wakely --- But operator new is not defined in the runtime here, it's a replaceable global allocation function. The assumption seems unsafe for replaceable functions that users can define in their own code.

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #7 from Richard Biener --- (In reply to Richard Biener from comment #6) > As Jakub said the behavior is the same for malloc() since years. > ... > So it might work to disable the new/delete/malloc/free optimization when > we see a

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #6 from Richard Biener --- As Jakub said the behavior is the same for malloc() since years. When you split the testcase like > cat t.C #include #include bool flag = false; class C { bool prev; public: C() : prev(flag) {

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread volker.schmidt at factset dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Volker Schmidt changed: What|Removed |Added CC||volker.schmidt at factset dot com ---

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-19 Thread jens.maurer at gmx dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 --- Comment #3 from Jens Maurer --- "We treat the global operator new as not reading from global memory" If I implement my own global "operator new" afresh, certainly it'll need to access global memory, e.g. to read a global pointer to the heap

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Richard Biener changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/101480] [11/12 Regression] Miscompiled code involving operator new

2021-07-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Jonathan Wakely changed: What|Removed |Added Known to work||10.3.0 Keywords|