Actually, maybe you just didn't paste it, but of relevance is also: to what do you initialize counter?
I'd bet that there's no compiler bug--it just gets initialized differently since you missed it, and are lucking out in the case w/o -O2. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
