------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-20 20:43 ------- Confirmed, I thought I had saw another bug about this but no luck, anyways confirmed.
Hmm, using unsigned short on 32bit targets cause the same issue: void vector_add(unsigned short n, double * __restrict__ r, double * __restrict__ a, double * __restrict__ b) { unsigned short i; for(i=0; i<n; i++) { r[i] = a[i] + b[i]; } } There more likely other issues like this too. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |missed-optimization Last reconfirmed|0000-00-00 00:00:00 |2006-01-20 20:43:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25881