public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17064] New: -falias-noargument-global doesn't eliminate dead stores
@ 2004-08-17 14:05 pbrook at gcc dot gnu dot org
  2004-08-17 14:12 ` [Bug tree-optimization/17064] " dnovillo at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-17 14:05 UTC (permalink / raw)
  To: gcc-bugs

When the following example is compiled with -fargument-noalias-global, the 
store *p=1 is dead and should be removed. 
-fargument-noalias-global is the default for Fortran. 
 
#include <stdlib.h> 
int i; 
int j; 
 
void bar(void) 
{ 
  i = 42; 
} 
 
void foo(int * p) 
{ 
  *p = 1;/* This store is dead with -fargument-noalias-global.  */ 
  bar (); 
  *p = 2; 
} 
 
int main() 
{ 
  i = 0; 
  j = 0; 
  foo(&j); 
  if (i != 42 || j != 2) 
    abort(); 
  return 0; 
}

-- 
           Summary: -falias-noargument-global doesn't eliminate dead stores
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pbrook at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17064


^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <bug-17064-6527@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-07-13 13:30 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-17 14:05 [Bug tree-optimization/17064] New: -falias-noargument-global doesn't eliminate dead stores pbrook at gcc dot gnu dot org
2004-08-17 14:12 ` [Bug tree-optimization/17064] " dnovillo at gcc dot gnu dot org
2004-11-06 20:14 ` pinskia at gcc dot gnu dot org
2005-02-08  0:01 ` pinskia at gcc dot gnu dot org
2005-02-08  0:29 ` [Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads pinskia at gcc dot gnu dot org
2005-03-04  3:42 ` pinskia at gcc dot gnu dot org
2005-07-27 17:13 ` pinskia at gcc dot gnu dot org
2005-08-06 19:51 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17064-6527@http.gcc.gnu.org/bugzilla/>
2005-10-05 13:21 ` pinskia at gcc dot gnu dot org
2006-01-10 20:35 ` pinskia at gcc dot gnu dot org
2006-01-10 20:36 ` pinskia at gcc dot gnu dot org
2006-01-16 17:11 ` pinskia at gcc dot gnu dot org
2006-01-26 17:51 ` pinskia at gcc dot gnu dot org
2006-01-26 17:51 ` pinskia at gcc dot gnu dot org
2006-01-26 18:15 ` pinskia at gcc dot gnu dot org
2006-01-29  4:32 ` pinskia at gcc dot gnu dot org
2006-01-31  0:49 ` dje at gcc dot gnu dot org
2006-01-31  1:11 ` pinskia at gcc dot gnu dot org
2009-04-03 11:57 ` rguenth at gcc dot gnu dot org
2010-07-13 10:21 ` steven at gcc dot gnu dot org
2010-07-13 11:11 ` rguenth at gcc dot gnu dot org
2010-07-13 11:27 ` steven at gcc dot gnu dot org
2010-07-13 13:30 ` rguenth 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).