From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a287efecf9b6c0d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 12 Feb 2011 11:46:47 -0600 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: avr-ada ubuntu cross-compiler build failed Date: Sat, 12 Feb 2011 17:49:24 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <8k0bl6hdk821ur4gtr0shqki0vhu3jv83g@4ax.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-mQIY19SmGvCX24sVOD+6cyhmyYADu8kgpJco0CdO8d7uNnSit1dSHjHeD6qEVe8asgqvIlRrX+h9NI4!vf5HJA2GqX2AK9AedcD/qfOWqnJjBDDVsZL6J1nOTCjhj3bLmYDMjter7yiVCHJMvxiKiIWFyVhR!C54= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2778 Xref: g2news2.google.com comp.lang.ada:18235 Date: 2011-02-12T17:49:24+00:00 List-Id: On Sat, 12 Feb 2011 13:27:37 +0000, Simon Wright wrote: >Brian Drummond writes: > >> On Fri, 11 Feb 2011 18:16:27 +0000, Simon Wright wrote: >> >>>Brian Drummond writes: >>> >>>> My dreams of success were short-lived, though, when someone pointed >>>> out a catastrophic bug in GCC4.5.0 targeting the AVR... >> >>>Actually, this bug is also present in gcc version 4.6.0 20110203 >>>(experimental) [trunk revision 157963] for x86_64-apple-darwin10. >>> >>>I've updated bugzilla >>>(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46192). >>> >>>The problem is there at -O2, goes away at -O1 (and -O0). >> >> Do you happen to know if this applies ("goes away at -O1") in GCC4.5 too, or >> just 4.6? >> >> (If so, I may stick with 4.5.0 and -O1 for the time being, until I run out of >> space) > >Yes, it does. (on x86_64-apple-darwin10). Thanks. >Are you sure this is really a problem for you? It's that pragma Volatile >isn't retained *through a renaming*. Do you have to rename? Good point, there are other ways around the problem. However some of the example code uses renaming, and I can see why. Naming a register or bit according to it's intent, rather than its address, does add a lot to readability, essentially "for free" in terms of code generation. - Brian