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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.176.69.233 with SMTP id u96mr8646579uau.4.1480358384283; Mon, 28 Nov 2016 10:39:44 -0800 (PST) X-Received: by 10.157.4.119 with SMTP id 110mr644920otc.11.1480358384236; Mon, 28 Nov 2016 10:39:44 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!n6no2467984qtd.0!news-out.google.com!j8ni10506qtc.0!nntp.google.com!n6no2467980qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 28 Nov 2016 10:39:43 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3cda:7600:932b:b705:6315:5a80; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3cda:7600:932b:b705:6315:5a80 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <145e7204-aa27-4bb6-9c46-7f3700030a84@googlegroups.com> Subject: Things AVR-Ada needs to sort out - calling Rolf From: Lucretia Injection-Date: Mon, 28 Nov 2016 18:39:44 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:32496 Date: 2016-11-28T10:39:43-08:00 List-Id: Hi, Looking back at AVR stuff again and I still cannot believe Rolf Ebert hacks= up the GCC build so much still. As of GCC-4.9.4, the ability to build bare metal GNAT builds has been put b= ack in place, see https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/ada/gcc-interfa= ce/Makefile.in?r1=3D218003&r2=3D219183&pathrev=3D219183 for the patch. This then renders 23-gcc-4.7-ada-Makefile.patch and 24-gcc-4.7-ada-gnattool= s.patch unnecessary and quite possibly no_25-gcc-4.7-ada-gnattools_bug55243= .patch too.=20 The -ffreestanding is part of the C standard for compiling OS kernels where= there is no C runtime libs and has nothing to do with Ada, this should be = removed, it should never have even been there. Therefore, 71-gcc-4.7-ada-fr= eestanding.patch is irrelevant. As for 72-gcc-4.7-ada-timebase.patch, I'm not sure about this one. Is there= really a need for this at all? Why does the time duration need to be chang= ed for AVR? Given the above, I cannot see the need for 73-gcc-4.7-ada-gnat1_print_path.= patch either. The way to build this new compiler is to use --disable-libada in the config= ure command then: make all-gcc make all-target-libgcc make -C gcc cross-gnattools ada.all.cross make install-strip-gcc install-target-libgcc as can be seen here - https://github.com/Lucretia/free-ada/blob/develop/inc= ludes/bare_metal.inc I think if this were sorted out, it would make building the compiler easier= and any extra patches could be passed onto the FSF for inclusion into the = source, with proper copyright assignments in place. You would only then req= uire your custom runtime to be distributed to be built.