From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Doug Fraser Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] Optimizations and bad code Date: Mon, 23 Jul 2001 12:36:00 -0000 Message-id: <3B5C7C9E.8558FBC6@redhat.com> References: X-SW-Source: 2001-07/msg00711.html Doug Fraser wrote: > That the arm-elf compiler only increments 'i' by > one for a particular optimizer setting is a defect, and badly > formed source code is no excuse for erroneous object code. Not true at all. Badly formed source code is a perfectly valid reason to produce code that doesn't do what the programmer expects. After all in situations like this, how can the compiler guess what the programmer expects. Maybe it should warn though - I don't know if it does (at default level or at -Wall). Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine Come to the Red Hat TechWorld open source conference in Brussels! Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/