This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/864] --program-suffix is ignored (for ada)
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2004 17:05:26 -0000
- Subject: [Bug ada/864] --program-suffix is ignored (for ada)
- References: <20001121193600.864.bh@techhouse.brown.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ludovic dot brenta at insalien dot org 2004-03-16 17:05 -------
The file gcc/ada/osint.adb contains code in function Program_Name (around line
1463) which prevents renaming the executables if the program prefix or suffix
contains a hyphen (-).
This code examines the name of the gnatmake executable and, if it contains a
hyphen, it flags the compiler as being a cross-compiler, and changes the name
of the gcc compiler to use the same prefix. For example, I tried renaming
gnatmake to gnatmake-3.3 and gcc to gcc-3.3, and got this:
make diners GNATMAKE=gnatmake-3.3
gnatmake-3.3 diners -cargs -O2
gnatmake-gcc-3.3 -c -O2 diners.adb [1]
gnatmake-3: error, unable to locate gnatmake-gcc-3.3 [2]
make: *** [diners] Error 4
The problem at line [1] is described above.
At line [2], GNAT also changed "gnatmake-3.3" to "gnatmake-3". This
is because it assumes that everything after the last "." in the file
name is an extension, and removes it. This is valid only on some hosts.
See osint.adb around line 797 in procedure Find_Program_Name.
--
Ludovic Brenta.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=864