useless stores generated when returning a struct -- bug?

2010-05-18 Thread Joshua Haberman
I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I have been experimenting with returning structs from functions instead of passing pointers to out parameters. This seems like it should be

Re: useless stores generated when returning a struct -- bug?

2010-05-18 Thread Ian Lance Taylor
Joshua Haberman jhaber...@gmail.com writes: I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I concur that this is a missed optimization bug. Ian

Re: useless stores generated when returning a struct -- bug?

2010-05-18 Thread Joshua Haberman
Ian Lance Taylor iant at google.com writes: Joshua Haberman jhaberman at gmail.com writes: I have a case where I think useless stores are being generated, but I want to be sure before I file a bug. This is with gcc 4.4.3 on Ubuntu 10.04, x86-64. I concur that this is a missed