[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2020-01-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 Eric Gallager changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2020-01-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2019-07-25 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #28 from Martin Liška --- Author: marxin Date: Thu Jul 25 09:36:38 2019 New Revision: 273791 URL: https://gcc.gnu.org/viewcvs?rev=273791=gcc=rev Log: Extend DCE to remove unnecessary new/delete-pairs (PR c++/23383). 2019-07-25

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2018-08-01 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #27 from Marc Glisse --- (In reply to Andrew Pinski from comment #0) > the return is not turned into 1 It is now. I didn't check since when.

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2017-10-02 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #26 from Antony Polukhin --- > That said, it would be fine to add support for this > under a non-standards-mode option of some sort of course. C++14 allows to merge and remove global allocations [expr.new]: "An implementation is

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2013-07-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added CC|

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-09 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #23 from rguenther at suse dot de rguenther at suse dot de 2012-01-09 08:37:21 UTC --- On Thu, 5 Jan 2012, jakub at gcc dot gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 Jakub Jelinek jakub at gcc dot gnu.org

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-09 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #24 from rguenther at suse dot de rguenther at suse dot de 2012-01-09 08:39:37 UTC --- On Thu, 5 Jan 2012, xinliangli at gmail dot com wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #20 from davidxl

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-05 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #19 from rguenther at suse dot de rguenther at suse dot de 2012-01-05 08:39:57 UTC --- On Wed, 4 Jan 2012, xinliangli at gmail dot com wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #18 from davidxl

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-05 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #20 from davidxl xinliangli at gmail dot com 2012-01-05 18:11:18 UTC --- (In reply to comment #19) On Wed, 4 Jan 2012, xinliangli at gmail dot com wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #18 from

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-05 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-05 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #22 from davidxl xinliangli at gmail dot com 2012-01-05 18:54:51 UTC --- (In reply to comment #21) But can't a valid code also compare the result from realloc with the old pointer, and if they are equal, do something, otherwise do

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-04 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #17 from rguenther at suse dot de rguenther at suse dot de 2012-01-04 09:43:13 UTC --- On Wed, 4 Jan 2012, xinliangli at gmail dot com wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #16 from davidxl

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-04 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #18 from davidxl xinliangli at gmail dot com 2012-01-04 17:11:26 UTC --- (In reply to comment #17) On Wed, 4 Jan 2012, xinliangli at gmail dot com wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #16 from

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2012-01-03 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383 --- Comment #16 from davidxl xinliangli at gmail dot com 2012-01-04 00:28:55 UTC --- A related topic - aliasing property of realloc -- the malloc attribute is not applied in the glibc header and the comment is like /* __attribute_malloc__ is not

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-04 Thread rguenth at gcc dot gnu dot org
--- Comment #12 from rguenth at gcc dot gnu dot org 2008-06-04 07:58 --- Interesting things start to happen once you inline allocator functions as well. See PR29286 and PR33407 which we still don't handle 100% correct. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-04 Thread davidxl at gcc dot gnu dot org
--- Comment #13 from davidxl at gcc dot gnu dot org 2008-06-04 16:48 --- (In reply to comment #12) Interesting things start to happen once you inline allocator functions as well. See PR29286 and PR33407 which we still don't handle 100% correct. I browsed through the two bugs --

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-04 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2008-06-04 17:03 --- We do the exact opposite - type-based rules override points-to must-alias information (or really may-alias information). Also for the proposed scheme to work you need to guarantee that you always can compute

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-04 Thread davidxl at gcc dot gnu dot org
--- Comment #15 from davidxl at gcc dot gnu dot org 2008-06-04 17:34 --- (In reply to comment #14) We do the exact opposite - type-based rules override points-to must-alias information (or really may-alias information). Also for the proposed scheme to work you need to guarantee

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread sabre at nondot dot org
--- Comment #4 from sabre at nondot dot org 2008-06-04 03:21 --- This would not be legal, there is no reason operator new can't return a pointer that already exists in the program. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread xinliangli at gmail dot com
--- Comment #5 from xinliangli at gmail dot com 2008-06-04 04:15 --- (In reply to comment #4) This would not be legal, there is no reason operator new can't return a pointer that already exists in the program. This is certainly a flaw in the C++ standard (it requires p returned

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread sabre at nondot dot org
--- Comment #6 from sabre at nondot dot org 2008-06-04 04:32 --- This has been extensively discussed on the C++ reflector. They decided (informally, on the reflector) that people should be able to globally override operator new to do logging, etc, which can make malloc have arbitrary

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread sabre at nondot dot org
--- Comment #7 from sabre at nondot dot org 2008-06-04 04:32 --- That said, it would be fine to add support for this under a non-standards-mode option of some sort of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread xinliangli at gmail dot com
--- Comment #8 from xinliangli at gmail dot com 2008-06-04 04:46 --- (In reply to comment #6) This has been extensively discussed on the C++ reflector. They decided (informally, on the reflector) that people should be able to globally override operator new to do logging, etc, which

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread sabre at nondot dot org
--- Comment #9 from sabre at nondot dot org 2008-06-04 04:48 --- This isn't possible. The user can override operator new at the very last minute: e.g. by interposing a shared object with LD_PRELOAD. There is no way that a compiler or even LTO optimizing linker can know about this. A

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread xinliangli at gmail dot com
--- Comment #10 from xinliangli at gmail dot com 2008-06-04 05:23 --- (In reply to comment #9) This isn't possible. The user can override operator new at the very last minute: e.g. by interposing a shared object with LD_PRELOAD. There is no way that a compiler or even LTO

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-06-03 Thread sabre at nondot dot org
--- Comment #11 from sabre at nondot dot org 2008-06-04 05:34 --- Expecting people to modify their source is bad news. LLVM's LTO does nothing for operator new, it treats it as any other external function with undefined behavior. --

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-03-12 20:29 --- *** Bug 35559 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2008-03-04 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-03-05 07:48 --- *** Bug 35467 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/23383] builtin array operator new is not marked with malloc attribute

2005-08-23 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-23 16:34 --- Confirmed: *a = 1; *b = 2; t = *a; operator delete (a); operator delete (b); return t; -- What|Removed |Added