rewrite lib/g77.exp

Alexandre Oliva aoliva@redhat.com
Mon Nov 26 22:44:00 GMT 2001


On Nov 26, 2001, Geoff Keating <geoffk@geoffk.org> wrote:

> Alexandre Oliva <aoliva@redhat.com> writes:
>> On Nov 25, 2001, Geoff Keating <geoffk@geoffk.org> wrote:
>> 
>> > Libstdc++ is not built on the host.  Test programs are.
>> 
>> Test programs are built for the target on the build machine, just like
>> libgcc, libstdc++, libobjc, libjava and libf2c.

> That would be pointless; we want to test the compiler that we just
> built, which may only run on the host.

I don't see how our current test-in-build-tree machinery could handle
this any differently.  Of course, we want to test the compiler we just
built, but if it won't run on the build machine, either we have to
install it and use some alternate testing machinery that uses an
installed compiler on the host, or we end up using for testing the
previously-installed build-x-target compiler used as part of the
host-x-target-on-build Canadian cross, which would be useless in terms
of testing the new compiler.

> Hmmm.  Do we really want to have a test procedure for testing in the
> build tree that's so different from how the user will likely use gcc?
> I mean, a libtool wrapper script is a lot of machinery.

If we want to test in the build tree, this is a must on at least one
platform, unless we get the test machinery to set up PATH correctly
such that Windows DLLs are found in the build tree.  Libtool would
only create such a wrapper script as a last resource, remember.
Besides, the current wrapper script is *very* simple.  Something like
setting LD_LIBRARY_PATH and running the program.  For Windows, this
gets to be a bit more complicated, since a shell script may not work
(think of Cygwin boxes without user-tools, i.e, no /bin/sh, or with
only the Cygwin DLL, or perhaps even without the DLL).

Of course, we're not going to run into this when testing in the build
tree, but libtool may eventually have to deal with this for
installable programs.  It's not of our (GCC) concern anyway.  Only the
simple wrapper scripts are.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-patches mailing list