Maciej W. Rozycki d364c4ced8 ada: Make the names of uninstalled cross-gnattools consistent across builds
We suffer from an inconsistency in the names of uninstalled gnattools
executables in cross-compiler configurations.  The cause is a recipe we
have:

ada.all.cross:
	for tool in $(ADA_TOOLS) ; do \
	  if [ -f $$tool$(exeext) ] ; \
	  then \
	    $(MV) $$tool$(exeext) $$tool-cross$(exeext); \
	  fi; \
	done

the intent of which is to give the names of gnattools executables the
'-cross' suffix, consistently with the compiler drivers: 'gcc-cross',
'g++-cross', etc.

A problem with the recipe is that this 'make' target is called too early
in the build process, before gnattools have been made.  Consequently no
renames happen and owing to that they are conditional on the presence of
the individual executables the recipe succeeds doing nothing.

However if a target is requested later on such as 'make pdf' that does
not cause gnattools executables to be rebuilt, then 'ada.all.cross' does
succeed in renaming the executables already present in the build tree.
Then if the 'gnat' testsuite is run later on which expects non-suffixed
'gnatmake' executable, it does not find the 'gnatmake-cross' executable
in the build tree and may either catastrophically fail or incorrectly
use a system-installed copy of 'gnatmake'.

Of course if a target is requested such as `make all' that does cause
gnattools executables to be rebuilt, then both suffixed and non-suffixed
uninstalled executables result.

Fix the problem by moving the renaming of gnattools to a separate 'make'
recipe, pasted into a new 'gnattools-cross-mv' target and the existing
legacy 'cross-gnattools' target.  Then invoke the new target explicitly
from the 'gnattools-cross' recipe in gnattools/.

Update the test harness accordingly, so that suffixed gnattools are used
in cross-compilation testsuite runs.

	gcc/ada/
	* gcc-interface/Make-lang.in (ada.all.cross): Move recipe to...
	(GNATTOOLS_CROSS_MV): ... this new variable.
	(cross-gnattools): Paste it here.
	(gnattools-cross-mv): New target.

	gnattools/
	* Makefile.in (gnattools-cross): Also build 'gnattools-cross-mv'
	in GCC_DIR.

	gcc/testsuite/
	* lib/gnat.exp (local_find_gnatmake, find_gnatclean): Use
	'-cross' suffix where testing a cross-compiler.
2024-07-07 15:04:51 +01:00
2024-05-09 10:58:01 +00:00
2024-04-17 00:18:45 +00:00
2024-06-06 00:16:43 +00:00
2024-06-28 00:18:04 +00:00
2024-04-16 00:18:06 +00:00
2024-07-03 00:19:01 +00:00
2024-01-03 12:19:35 +01:00
2024-06-26 00:17:38 +00:00
2024-06-17 00:16:32 +00:00
2024-03-17 00:17:21 +00:00
2024-06-22 00:18:44 +00:00
2024-04-03 00:17:29 +00:00
2024-07-02 00:17:36 +00:00
2024-06-15 00:16:29 +00:00
2024-06-07 00:16:38 +00:00
2024-05-30 00:16:44 +00:00
2024-04-29 11:39:58 -07:00
2024-07-02 00:17:36 +00:00
2024-02-21 13:51:26 +01:00
2024-04-03 00:17:29 +00:00
2024-06-01 00:17:20 +00:00
2024-04-03 00:17:29 +00:00
2024-06-01 00:17:20 +00:00
2024-05-09 10:58:01 +00:00
2024-02-17 00:17:08 +00:00
2024-05-09 10:58:01 +00:00
2024-06-01 00:17:20 +00:00
2024-01-03 12:19:35 +01:00
2024-04-27 00:18:05 +00:00
2023-10-23 00:16:43 +00:00
2023-11-14 00:47:11 +01:00
2024-07-06 00:18:02 +00:00
2024-07-05 15:17:58 +02:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 2.7 GiB
Languages
C++ 30.7%
C 30.1%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.5%