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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ebbc56fbadf761,start X-Google-Attributes: gid103376,public From: hainque@news.enst.fr (Olivier Hainque) Subject: Invalid asm statement with GNAT - Help ! Date: 1996/08/06 Message-ID: <4u7mdh$gvm@enst.enst.fr>#1/1 X-Deja-AN: 172469890 content-type: text/plain; charset=iso-8859-1 organization: ENST, France mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-08-06T00:00:00+00:00 List-Id: Hello all, I am trying to port the GNAT runtime for an embedded OS running on a 68302. I configured gcc as a cross compiler for C and Ada and have troubles while building a dummy runtime for my target : $ make CC=gcc CFLAGS="-m68302 -msoft-float" gnatlib ... Everything runs fine for the first files, but ... ../../xgcc -B../../ -c -m68302 -msoft-float -O2 -gnatpg -I. -I../../gcc-2.7.2/ada a-calcon.adb leads to the following : /var/tmp/cca002bf.s: Assembler messages: /var/tmp/cca002bf.s:9: Error: invalid instruction for this architecture; needs fpu (68040, 68060 or 68881/68882) -- statement `fmovem #0xfc,sp@-' ignored xgcc: Internal compiler error: program as got fatal signal 10 :-( Of course, the runtime is not ported yet, so I don't expect it to be completely operational at this time. However, I do not understand how the compilation of an ada file, having specified special options, could lead to an assembly file still containing unsupported statements for the given target. I have no such problem with the whole set of C files involved in the construction of the embedded OS, and a "file *.o" on the first Ada compiled objects gives "old sun-2 executable not stripped" which seems nice. Without the -mxxx options, I get "mc68020 executable ..." which are clearly not supported by the target, but which show that the options I give do have an effect somewhere :-). Any help would be greatly appreciated. Thanks in advance. Olivier -- E-mail: hainque@email.enst.fr || Olivier.Hainque@enst.fr P-mail: Telecom Paris 46, rue Barrault - 75634 Paris cedex 13