X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Bob W" Newsgroups: comp.os.msdos.djgpp Subject: Re: new gcc 4.10 behaviour Date: 28 Mar 2006 11:43:29 -0800 Organization: http://groups.google.com Lines: 15 Message-ID: <1143575009.798789.145460@z34g2000cwc.googlegroups.com> References: <1143542847 DOT 613686 DOT 87820 AT v46g2000cwv DOT googlegroups DOT com> <200603281403 DOT k2SE38fq012162 AT envy DOT delorie DOT com> NNTP-Posting-Host: 84.102.38.180 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1143575015 16018 127.0.0.1 (28 Mar 2006 19:43:35 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 28 Mar 2006 19:43:35 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: z34g2000cwc.googlegroups.com; posting-host=84.102.38.180; posting-account=CXf2IQ0AAADhHwR4LIBYSPHMQKV3cPd3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks for your hint, but I guess clock() is working fine. The reason for some of my programs behaving now differently seems to be a new optimisation scheme in gcc, which is more likely to cause statements to be executed out of sequence than in previous releases. Otherwise gcc 4.10 looks ok to me. I just have to keep in mind to expect the unexpected whenever my programs depend on sequential execution of statements. Besides that I'd like to thank you and everyone else involved in the DJGPP project to keep it up to date after all these years!