GNAT/RTEMS possible bugs.

Joel Sherrill joel.sherrill at OARcorp.com
Thu Jul 17 17:36:35 UTC 2003



Per Dalgas Jakobsen wrote:
> 
> Hi,
> 
> In my quest to get a working GNAT/RTEMS development host, I have come across some possible bugs.
> 
> Bug candidate #1 - RTEMS:
> In rtems.adb and rtems.ads the procedure IO_Lookup_Name parameter modes seems to be wrong
> rtems.ad[bs]:
>     procedure IO_Lookup_Name (
>        Name         : in     String;
>        Device_Info  : in     RTEMS.Driver_Name_t_Pointer;
>        Result       :    out RTEMS.Status_Codes
>     )
> Shouldn't "Device_Info" have mode "out" ?

Ralf and I just fixed this.  It was PR 418.  

diff -u -r1.13 -r1.14
--- rtems.adb   3 Feb 2003 23:57:10 -0000       1.13
+++ rtems.adb   8 Jul 2003 16:38:33 -0000       1.14
@@ -17,7 +17,7 @@
 --  the file LICENSE in this distribution or at
 --  http://www.OARcorp.com/rtems/license.html.
 --
---  $Id: rtems.adb,v 1.13 2003/02/03 23:57:10 joel Exp $
+--  $Id: rtems.adb,v 1.14 2003/07/08 16:38:33 joel Exp $
 --

 with Ada;
@@ -1665,7 +1665,7 @@
          Interfaces.C.To_C (Name),
          Device_Info_Base'Unchecked_Access
       );
-      Device_Info := Device_Info_Base;
+      Device_Info.All := Device_Info_Base;

    end IO_Lookup_Name;



> Bug candidate #2 - GCC/GNAT:
> In gcc/ada/adaint.c I think the define "HOST_EXECUTABLE_SUFFIX" should be replaced with "TARGET_EXECUTABLE_SUFFIX".
> (likewise with the HOST_OBJECT_SUFFIX -> TARGET_OBJECT_SUFFIX).
> As far as I understand, this is a part of the gnat compiler, and I think that the generated files should adhere to the targets file-convention rather than the hosts convention?

THis one needs to be asked on the gcc list.  I don't see anything named
TARGET_*
so I think you are suggesting a name change that the Ada maintainers
need to
discuss with you.  

> Best regards
> Per
> 
> PS: Sorry for the footer - I have asked our IT guys to make it possible to remove it...
> 
> ---
> IMPORTANT
> The information contained in this e-mail is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by e-mail or telephone.
> Thank you in advance.
> ---

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list