This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada: building 4.3 cross-gnattools with gcc-4.2.1
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Arnaud Charlet <charlet at adacore dot com>
- Cc: Rolf Ebert <rolf dot ebert dot gcc at gmx dot de>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 19 Feb 2008 08:32:26 -0600
- Subject: Re: Ada: building 4.3 cross-gnattools with gcc-4.2.1
- References: <47B74F2E.9060201@gmx.de> <20080217095231.GA23269@adacore.com>
Arnaud Charlet wrote:
1) Is it supposed to work? (i.e. building an Ada cross compiler 4.3 by a
4.2 compiler)
No, as documented, you need a matching native compiler to build a cross Ada
compiler (e.g. build from the same 4.3 sources a native compiler first, and
then use it to build the cross compiler).
That's what I have been doing. My procedure is:
+ build a native
+ build a C/C++ cross
+ build the Ada cross
With that I have managed to build 4.2.x and SVN trunk
and post ACATS for PowerPC, SPARC, and i386 on RTEMS.
SPARC and PowerPC look very good. I am using qemu to
test the i386 and something isn't quite right for i386.
It looks like it branches off to never never land and then
gets a fault. I haven't had a chance to look into it yet.
I posted results to gcc-testresults.
--joel
2) does it work to build 4.3 cross-gnattools with the current 4.3 Ada
compiler?
It does in general. I do not know for avr in particular.
3) Would a patch be accepted that makes the 4.3 gnattols be compilable
by 4.2 compiler?
In general, no. On a case by case basis, assuming the patch is simple and
does not make the code worse in terms of maintenance, then it can be OK.
Arno
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985