This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Generalizing compiler invocation for FORTRAN95 testsuite
- From: Petr Sorfa <petrs at caldera dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 07 May 2002 12:16:11 -0400
- Subject: Re: [RFA] Generalizing compiler invocation for FORTRAN95 testsuite
- Organization: Caldera
- References: <200205071559.g47FxXK21376@duracef.shout.net>
Hi Michael,
> I'm curious ... how are you invoking efc and ifc now?
> Can you post an excerpt from your code?
A bit of a hack really. I haven't used the $compiler variable. Anyway,
here is the excerpt:
-------
set hardware [exec uname -m]
set CC ""
if { $hardware == "i686" } {
set CC "ifc"
} elseif { $hardware == "ia64" } {
set CC "efc"
} else {
puts "ERROR in ${testfile}: Failed to find FORTRAN compiler for
${hardware}" }
puts "cd ${srcdir}/${subdir}; exec ${CC} -g -o ${testfile} ${srcfile}"
set currpwd [ pwd ]
catch "cd ${srcdir}/${subdir}; exec ${CC} -g -o ${testfile} ${srcfile}"
output
catch "cd ${currpwd}"
------
Petr