This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [RFA] Generalizing compiler invocation for FORTRAN95 testsuite


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


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