public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-23383-4@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/23383] New: builtin array operator new is not marked with malloc attribute
@ 2005-08-14  5:39 pinskia at gcc dot gnu dot org
  2005-08-23 16:40 ` [Bug c++/23383] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 25+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-14  5:39 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-07-08  4:54 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23383-6528@http.gcc.gnu.org/bugzilla/>
2008-03-05  7:48 ` [Bug c++/23383] builtin array operator new is not marked with malloc attribute pinskia at gcc dot gnu dot org
2008-03-12 20:30 ` pinskia at gcc dot gnu dot org
2008-06-04  3:22 ` sabre at nondot dot org
2008-06-04  4:16 ` xinliangli at gmail dot com
2008-06-04  4:33 ` sabre at nondot dot org
2008-06-04  4:33 ` sabre at nondot dot org
2008-06-04  4:47 ` xinliangli at gmail dot com
2008-06-04  4:48 ` sabre at nondot dot org
2008-06-04  5:24 ` xinliangli at gmail dot com
2008-06-04  5:35 ` sabre at nondot dot org
2008-06-04  7:58 ` rguenth at gcc dot gnu dot org
2008-06-04 16:48 ` davidxl at gcc dot gnu dot org
2008-06-04 17:04 ` rguenth at gcc dot gnu dot org
2008-06-04 17:35 ` davidxl at gcc dot gnu dot org
     [not found] <bug-23383-4@http.gcc.gnu.org/bugzilla/>
2012-01-04  0:29 ` xinliangli at gmail dot com
2012-01-04  9:44 ` rguenther at suse dot de
2012-01-04 17:12 ` xinliangli at gmail dot com
2012-01-05  8:40 ` rguenther at suse dot de
2012-01-05 18:11 ` xinliangli at gmail dot com
2012-01-05 18:27 ` jakub at gcc dot gnu.org
2012-01-05 18:55 ` xinliangli at gmail dot com
2012-01-09  8:39 ` rguenther at suse dot de
2012-01-09  8:40 ` rguenther at suse dot de
2013-07-08  4:54 ` pinskia at gcc dot gnu.org
2005-08-14  5:39 [Bug c++/23383] New: " pinskia at gcc dot gnu dot org
2005-08-23 16:40 ` [Bug c++/23383] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).