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,

Sounds good.

Should I keep my current compiler support in the F95 testsuite or change
it temporarily until your work becomes available?

Petr
> Okay, progress report.
> 
> I'm playing around with some new code in gdb_compile() to set the compiler
> name.  It looks in the arguments to see if there is a language argument
> such as "c++" or "fortran-90".  If there is a language argument, that's
> the language to use.  If there is no language argument, the default
> language is C.
> 
> Next there is a section that translates the language argument to a compiler
> to use.  That's where the default compilers are gcc, g77, gjc, and so on.
> The user can override these with environment variables CC_FOR_TARGET,
> F77_FOR_TARGET, JAVA_FOR_TARGET, and so on.  This will enable people to
> test with different C compilers and different C++ compilers and
> different FORTRAN compilers.
> 
> After gdb_compile() figures out the name of the compiler, it always
> passes a "compiler=..." argument to target_compile.
> 
> Along the way, I ripped out a lot of weird lib/java.exp support code to
> figure out the name of the Java compiler.
> 
> I'm still playing with this.  Among other things, I have to fix my own
> Java testbed problems first so that I can run Java tests.
> 
> When it reaches a submission stage I'll be happy to have it stomped on
> and ripped up; I'm not assuming that anyone will like it.
> 
> Michael C


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