comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Things AVR-Ada needs to sort out - calling Rolf
Date: Mon, 28 Nov 2016 10:39:43 -0800 (PST)
Date: 2016-11-28T10:39:43-08:00	[thread overview]
Message-ID: <145e7204-aa27-4bb6-9c46-7f3700030a84@googlegroups.com> (raw)

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 back in place, see https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/ada/gcc-interface/Makefile.in?r1=218003&r2=219183&pathrev=219183 for the patch.

This then renders 23-gcc-4.7-ada-Makefile.patch and 24-gcc-4.7-ada-gnattools.patch unnecessary and quite possibly no_25-gcc-4.7-ada-gnattools_bug55243.patch too. 

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-freestanding.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 changed 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 configure 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/includes/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 require your custom runtime to be distributed to be built.

             reply	other threads:[~2016-11-28 18:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28 18:39 Lucretia [this message]
2016-11-29 18:32 ` Things AVR-Ada needs to sort out - calling Rolf rrr.eee.27
2016-11-29 21:18   ` Lucretia
2016-11-29 23:14     ` Luke A. Guest
replies disabled

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