9 Jan
2013
9 Jan
'13
2:57 p.m.
On Wed, Jan 9, 2013 at 10:00 PM, Jed Brown <[email protected]> wrote:
On Jan 9, 2013 12:56 PM, "Dmitri Gribenko" <[email protected]> wrote:
I don't think GCC isn't smart enough to do the same. Do you compile with optimization?
Dmitri, as discussed in the other thread, it's smart enough, but only when optimization is turned on. There's no reason to needlessly make debug builds heavier than necessary. This is not a big deal either way.
Oh, now I see -- in debug builds it still emits these. Thank you for fixing! Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/