* warning "blah" is an Ada 2005 unit
@ 2010-10-24 4:51 stuart clark
2010-10-24 5:54 ` Anh Vo
2010-10-24 11:30 ` anon
0 siblings, 2 replies; 8+ messages in thread
From: stuart clark @ 2010-10-24 4:51 UTC (permalink / raw)
i have the gpl 2010 compiler and when i with sat
ada.characters.conversions i get a compiler warning
ada.characters.conversions is an Ada 2005 unit.
is there some switch which allows me to use 2005 units or is the gpl
2010 only Ada95 ???
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-24 4:51 warning "blah" is an Ada 2005 unit stuart clark
@ 2010-10-24 5:54 ` Anh Vo
2010-10-24 11:12 ` Simon Wright
2010-10-24 11:30 ` anon
1 sibling, 1 reply; 8+ messages in thread
From: Anh Vo @ 2010-10-24 5:54 UTC (permalink / raw)
On Oct 23, 9:51 pm, stuart clark <clark.stuart...@gmail.com> wrote:
> i have the gpl 2010 compiler and when i with sat
> ada.characters.conversions i get a compiler warning
> ada.characters.conversions is an Ada 2005 unit.
>
> is there some switch which allows me to use 2005 units or is the gpl
> 2010 only Ada95 ???
Use switch -gnat95 for Ada 95 and -gnat05 for Ada 2005.
Anh Vo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-24 5:54 ` Anh Vo
@ 2010-10-24 11:12 ` Simon Wright
2010-10-25 4:55 ` Gautier write-only
0 siblings, 1 reply; 8+ messages in thread
From: Simon Wright @ 2010-10-24 11:12 UTC (permalink / raw)
Anh Vo <anhvofrcaus@gmail.com> writes:
> Use switch -gnat95 for Ada 95 and -gnat05 for Ada 2005.
GNAT GPL [2010 & earlier, I think] has -gnat95 as the default. GCC 4.5
has -gnat05 as the default ...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-24 4:51 warning "blah" is an Ada 2005 unit stuart clark
2010-10-24 5:54 ` Anh Vo
@ 2010-10-24 11:30 ` anon
1 sibling, 0 replies; 8+ messages in thread
From: anon @ 2010-10-24 11:30 UTC (permalink / raw)
In <b6b6497d-76c2-4222-a359-1651ff9172e9@k14g2000pre.googlegroups.com>, stuart clark <clark.stuart.au@gmail.com> writes:
>i have the gpl 2010 compiler and when i with sat
>ada.characters.conversions i get a compiler warning
>ada.characters.conversions is an Ada 2005 unit.
>
>is there some switch which allows me to use 2005 units or is the gpl
>2010 only Ada95 ???
There is no Ada 2010 specs.
Switches:
-gnat83 or statement "pragma Ada_83;" for Ada 83
Default fort all GCC GNAT Ada Compilers
-gnat95 or statement "pragma Ada_95;" for Ada 95
-gnat05 or statement "pragma Ada_05;" or
"pragma Ada_2005;" for Ada 2005
Specs not offically adopted, yet!
-gnat12 or statement "pragma Ada_12;" or
"pragma Ada_2012;" for Ada 2012
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-24 11:12 ` Simon Wright
@ 2010-10-25 4:55 ` Gautier write-only
2010-10-25 9:16 ` Simon Wright
2010-10-25 22:25 ` Peter C. Chapin
0 siblings, 2 replies; 8+ messages in thread
From: Gautier write-only @ 2010-10-25 4:55 UTC (permalink / raw)
On Oct 24, 1:12 pm, Simon Wright <si...@pushface.org> wrote:
> Anh Vo <anhvofrc...@gmail.com> writes:
> > Use switch -gnat95 for Ada 95 and -gnat05 for Ada 2005.
>
> GNAT GPL [2010 & earlier, I think] has -gnat95 as the default.
Earlier ? I don't think so. Only since GPL 2010 I have to set -gnat05
on every project using some Ada 2005 unit, and I'm using only the GPL
edition. Apparently the world's centre is still Ada 95 for a while
(the only reason I see)...
______________________________________________________________________________
Gautier's Ada programming -- http://gautiersblog.blogspot.com/search/label/Ada
NB: For a direct answer, e-mail address on the following web site:
http://lang-index.sf.net/#contact
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-25 4:55 ` Gautier write-only
@ 2010-10-25 9:16 ` Simon Wright
2010-10-25 11:58 ` stuart clark
2010-10-25 22:25 ` Peter C. Chapin
1 sibling, 1 reply; 8+ messages in thread
From: Simon Wright @ 2010-10-25 9:16 UTC (permalink / raw)
Gautier write-only <gautier_niouzes@hotmail.com> writes:
> On Oct 24, 1:12 pm, Simon Wright <si...@pushface.org> wrote:
>> Anh Vo <anhvofrc...@gmail.com> writes:
>> > Use switch -gnat95 for Ada 95 and -gnat05 for Ada 2005.
>>
>> GNAT GPL [2010 & earlier, I think] has -gnat95 as the default.
>
> Earlier ? I don't think so. Only since GPL 2010 I have to set -gnat05
> on every project using some Ada 2005 unit, and I'm using only the GPL
> edition. Apparently the world's centre is still Ada 95 for a while
> (the only reason I see)...
Oh, yes, sorry (I only have 2009 & 2010, 2009 is definitely -gnat05 by
default).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-25 9:16 ` Simon Wright
@ 2010-10-25 11:58 ` stuart clark
0 siblings, 0 replies; 8+ messages in thread
From: stuart clark @ 2010-10-25 11:58 UTC (permalink / raw)
On Oct 25, 6:16 pm, Simon Wright <si...@pushface.org> wrote:
> Gautier write-only <gautier_niou...@hotmail.com> writes:
> > On Oct 24, 1:12 pm, Simon Wright <si...@pushface.org> wrote:
> >> Anh Vo <anhvofrc...@gmail.com> writes:
> >> > Use switch -gnat95 for Ada 95 and -gnat05 for Ada 2005.
>
> >> GNAT GPL [2010 & earlier, I think] has -gnat95 as the default.
>
> > Earlier ? I don't think so. Only since GPL 2010 I have to set -gnat05
> > on every project using some Ada 2005 unit, and I'm using only the GPL
> > edition. Apparently the world's centre is still Ada 95 for a while
> > (the only reason I see)...
>
> Oh, yes, sorry (I only have 2009 & 2010, 2009 is definitely -gnat05 by
> default).
doh i found it in edit project properties \ switches \ Ada \ syntax
(check box = Ada 2005 mode)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: warning "blah" is an Ada 2005 unit
2010-10-25 4:55 ` Gautier write-only
2010-10-25 9:16 ` Simon Wright
@ 2010-10-25 22:25 ` Peter C. Chapin
1 sibling, 0 replies; 8+ messages in thread
From: Peter C. Chapin @ 2010-10-25 22:25 UTC (permalink / raw)
On Oct 25, 12:55 am, Gautier write-only <gautier_niou...@hotmail.com>
wrote:
> Earlier ? I don't think so. Only since GPL 2010 I have to set -gnat05
> on every project using some Ada 2005 unit, and I'm using only the GPL
> edition. Apparently the world's centre is still Ada 95 for a while
> (the only reason I see)...
I actually posted a support request about this to AdaCore's GNAT
Academic Program web site. The response that I got was that it was an
unintended change.
I guess their test suite must explicitly specify the Ada version in
every case so they they didn't notice the change in default. :)
Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-10-25 22:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-24 4:51 warning "blah" is an Ada 2005 unit stuart clark
2010-10-24 5:54 ` Anh Vo
2010-10-24 11:12 ` Simon Wright
2010-10-25 4:55 ` Gautier write-only
2010-10-25 9:16 ` Simon Wright
2010-10-25 11:58 ` stuart clark
2010-10-25 22:25 ` Peter C. Chapin
2010-10-24 11:30 ` anon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox