comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian_drummond@btconnect.com>
Subject: Re: avr-ada ubuntu cross-compiler build failed
Date: Sat, 12 Feb 2011 17:49:24 +0000
Date: 2011-02-12T17:49:24+00:00	[thread overview]
Message-ID: <bphdl6lebvfedhs750hb05oapoqq1u0gf4@4ax.com> (raw)
In-Reply-To: m2lj1ljsc6.fsf@pushface.org

On Sat, 12 Feb 2011 13:27:37 +0000, Simon Wright <simon@pushface.org> wrote:

>Brian Drummond <brian_drummond@btconnect.com> writes:
>
>> On Fri, 11 Feb 2011 18:16:27 +0000, Simon Wright <simon@pushface.org> wrote:
>>
>>>Brian Drummond <brian_drummond@btconnect.com> 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



  reply	other threads:[~2011-02-12 17:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05 17:30 avr-ada ubuntu cross-compiler build failed Adrianr
2011-02-06 20:28 ` Yannick Duchêne (Hibou57)
2011-02-08  9:24 ` Yannick Duchêne (Hibou57)
2011-02-10 12:18   ` GCC and cross compiling Ada, was: " Simon Clubley
2011-02-10 12:53     ` Simon Clubley
2011-02-10 17:10     ` Yannick Duchêne (Hibou57)
2011-02-10 19:46       ` Simon Clubley
2011-02-11 12:51 ` Adrianr
2011-02-11 15:13   ` Brian Drummond
2011-02-11 18:16     ` Simon Wright
2011-02-11 18:44       ` Brian Drummond
2011-02-12 13:27         ` Simon Wright
2011-02-12 17:49           ` Brian Drummond [this message]
2011-02-12 21:45             ` Simon Wright
2011-02-12  6:46 ` Jacob Sparre Andersen
2011-02-12 17:03   ` Adrianr
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox