comp.lang.ada
 help / color / mirror / Atom feed
From: Anonymous Coward <bogus_addy@bogus_domain.net>
Subject: pragma Convention ignored (sometimes)
Date: Fri, 04 Nov 2005 02:12:57 GMT
Date: 2005-11-04T02:12:57+00:00	[thread overview]
Message-ID: <slrndmlnu9.kq0.bogus_addy@tango.mindfuq.org> (raw)
In-Reply-To: wccbr11gx1l.fsf@shell01.TheWorld.com

In article <wccbr11gx1l.fsf@shell01.TheWorld.com>, Robert A Duff wrote:
> Colin Paul Gloster <Colin_Paul_Gloster@ACM.org> writes:
> 
>> A compiler is not obliged to implement a pragma.
> 
> Compilers are obliged to implement the language defined pragmas as
> specified in the RM.   What this means in practise depends on the
> pragma.  

What about Pragma Convention?

I've noticed that gnat will sometimes honor a pragma convention on an
enumerated type (which means extending the size to 32 bits on an x86
platform), but in other cases it seems to ignore the pragma
convention.  ie, the following code:

  type Some_Enum_Type is (one, two, three);

  pragma Convention (Convention => C, Entity => Some_Enum_Type);

should create a 32 bit enum, but in fact doing a 'size reveals that
it's 2 bits!



  reply	other threads:[~2005-11-04  2:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 15:03 Gnat 3.15p pragma issues Erik Woulfe
2005-11-03 16:00 ` Colin Paul Gloster
2005-11-03 22:56   ` Robert A Duff
2005-11-04  2:12     ` Anonymous Coward [this message]
2005-11-04  5:19       ` pragma Convention ignored (sometimes) Jeffrey R. Carter
2005-11-05  2:54         ` Justin Gombos
2005-11-03 17:42 ` Gnat 3.15p pragma issues Gautier Write-only
2005-11-03 23:00 ` Robert A Duff
2005-11-04  2:51 ` Steve
2005-11-04 13:02 ` Stephen Leake
replies disabled

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