This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-07 19:00 -------
Another testcase this time for loads:
#include <stdlib.h>
int i;

void bar(void)
{
  i = 42;
}

int foo(int * p)
{
  int i = *p;
  bar ();
  return *p + i;/* This load is dead with -fargument-noalias-global.  */
}

int main()
{
  int t = 2;
  int t1;
  t1 = foo(&t);
  if (t1 != 4)
    abort();
  return 0;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-falias-noargument-global   |-falias-noargument-global
                   |doesn't eliminate dead      |doesn't eliminate dead
                   |stores                      |stores/loads


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]