This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/14435] [3.4 regression] GCC_EXEC_PREFIX does not work as expected


------- Additional Comments From charlet at gcc dot gnu dot org  2004-03-05 08:33 -------
It doesn't affect host gnatmake.

The issue here is really specific to gnatchop.
gnatmake uses the right compiler, as explained several times.

target gnatchop indeed uses a gnat1 in the default install dir
if there's one, which is because the GCC_EXEC_PREFIX environment
variable is broken in GCC: setting GCC_EXEC_PREFIX is no longer
doing the expected job of being equivalent to -Bxxxx

Note also that the documentation on GCC_EXEC_PREFIX is inconsistent and
unclear.

Requalifying this PR so that the behavior of GCC_EXEC_PREFIX is restored
and so that the ACATS test suite can use it, and remove the kludge
put in place to work around it, and which indeed does not work completely
with gnatchop as you reported.

Here are more info on GCC_EXEC_PREFIX being broken:

$ export GCC_EXEC_PREFIX=/home/charlet/cvs/gcc-obj/gcc/
$ gcc -v -c -x ada /dev/null
Reading specs from /home/charlet/cvs/gcc-obj/gcc/specs <- this part is fine
Configured with: ../gcc-head/configure [..]
gcc version 3.5.0 20040220 (experimental)
 /home/charlet/cvs/gcc-obj/install/libexec/gcc/i686-pc-linux-gnu/3.5.0/gnat1 -
quiet -dumpbase null.ada -mtune=pentiumpro /dev/null -o /tmp/ccIDh52n.s  <- this
part isn't, the wrong gnat1 is called

As you can see (and same for cc1), the wrong gnat1 is called.
Once this regression is fixed, it will be possible to clean up
the acats driver.

Arno

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ada                         |driver
            Summary|Ada testsuite doesn't use   |[3.4 regression]
                   |the newly compiler          |GCC_EXEC_PREFIX does not
                   |                            |work as expected


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14435


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]