------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-17 16:04 ------- There are a couple of issues here, first there is a missed optimization to sink the load (there is a bug about that). In fact this is all related to that bug.
Also there is a front-end bug having the load there in the first place so confirmed. If you look to see what causes the two loads to become one, that would be FRE and that is only because the front-end is saying the first load is not zero. I bet we could get into real trouble with real optional arguments if this is not done correctly. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2006-01-17 16:04:02 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25818