From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bcced006b4956bd6,start X-Google-Attributes: gid103376,public From: tonya@aban.ece.ubc.ca (Tony R. Ambardar) Subject: How to modify Standard types in GNAT-3.11? Date: 1999/02/18 Message-ID: <7afo84$fgm$1@nntp.ucs.ubc.ca>#1/1 X-Deja-AN: 445526766 Organization: The University of British Columbia Newsgroups: comp.lang.ada Date: 1999-02-18T00:00:00+00:00 List-Id: Hello all, I'm using gnat-3.11 to generate code for a i386-based board running RTEMS-4.0.0. Since I don't have an i387 math coprocessor, I've set up gnat/gcc to use software floating point emulation. This requires compiling all my code and libraries -- including gnatlib -- with the option flags "-msoft-float -mno-fp-ret-in-387". When compiling gnatlib I get gcc/gnat errors in 6 RTS files which are related to the use of Long_Long_Float's (i.e. extended floats). The errors are all of the form "Unable to find register to spill", so I assume the option flags I use are making registers scarce. Additionally, the software floating-point library only uses stubs for the extended float routines, so gnat would not be able to use these anyway. So the easiest solution I can see is to make Long_Long_Float equivalent to Long_Float. It looks like I may only need to modify the files stand.ads and a-types.h. Could someone please suggest the right way of doing this? Thank you, Tony Ambardar -- ____________________________________________________________ / \ | Tony R. Ambardar | Department of Electrical & | | M.Eng. Student | Computer Engineering | | Email: tonya&ece.ubc.ca | University of British Columbia | | Ph: (604) 822-3611 | 2356 Main Mall, Vancouver B.C. | | Fax:(604) 822-5949 | V6T 1Z4 CANADA | \____________________________________________________________/