[Bug ada/864] --program-suffix is ignored (for ada)
ludovic dot brenta at insalien dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 16 17:05:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list