From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13141 invoked by alias); 14 Aug 2005 05:39:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13125 invoked by uid 48); 14 Aug 2005 05:39:17 -0000 Date: Sun, 14 Aug 2005 05:39:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050814053914.23383.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23383] New: builtin array operator new is not marked with malloc attribute X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01565.txt.bz2 List-Id: Testcase: int f(void) { int t; int *a = new int[1024]; int *b = new int[1024]; *a = 1; *b = 2; t = *a; delete a; delete b; return t; } the return is not turned into 1 but still have "return t" in the final_cleanup. -- Summary: builtin array operator new is not marked with malloc attribute Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23383