From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19069 invoked by alias); 9 May 2002 03:19:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19062 invoked from network); 9 May 2002 03:19:23 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sources.redhat.com with SMTP; 9 May 2002 03:19:23 -0000 Received: (from mec@localhost) by duracef.shout.net (8.11.6/8.11.6) id g493JMC19527; Wed, 8 May 2002 22:19:22 -0500 Date: Wed, 08 May 2002 20:19:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200205090319.g493JMC19527@duracef.shout.net> To: petrs@caldera.com Subject: Re: [RFA] Generalizing compiler invocation for FORTRAN95 testsuite Cc: gdb-patches@sources.redhat.com X-SW-Source: 2002-05/txt/msg00259.txt.bz2 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