comp.lang.ada
 help / color / mirror / Atom feed
From: David Sauvage <sauvage.david@gmail.com>
Subject: Warning when compiling s-interr.adb runtime file with -gnatc
Date: Thu, 25 Sep 2008 15:17:13 -0700 (PDT)
Date: 2008-09-25T15:17:13-07:00	[thread overview]
Message-ID: <ff409655-2568-463b-92d8-844078678708@m73g2000hsh.googlegroups.com> (raw)



When compiling s-interr.adb runtime file with -gnatc [1] produce a
warning [2]. This warning is not raise when compiling wihtout -gnatc.

Does the target and source types [3] really have different sizes ? or
may be it's a problem on gnat ?

[1]
-gnatc    Check syntax and semantics only (no code generation)

[2]
$ gcc-4.3 -c -gnatpg -nostdinc -nostdlib -g -gnatc -I- -gnatA /usr/lib/
gcc/i486-linux-gnu/4.3.2/rts-native/adainclude/s-interr.adb -I/usr/lib/
gcc/i486-linux-gnu/4.3.2/rts-native/adainclude/
s-interr.adb:569:07: warning: types for unchecked conversion have
different sizes

[3]
s-interr.ads
   type Parameterless_Handler is access protected procedure;
s-interr.adb
   564	      type Fat_Ptr is record
   565	         Object_Addr  : System.Address;
   566	         Handler_Addr : System.Address;
   567	      end record;
   568
   569	      function To_Fat_Ptr is new Ada.Unchecked_Conversion
   570	        (Parameterless_Handler, Fat_Ptr);

Ubuntu Intrepid x86
libgnat-4.3 (4.3.2-1ubuntu1)




             reply	other threads:[~2008-09-25 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 22:17 David Sauvage [this message]
2008-09-26  0:47 ` Warning when compiling s-interr.adb runtime file with -gnatc Adam Beneschan
replies disabled

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