From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7062 invoked by alias); 4 Feb 2004 14:01:31 -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 7042 invoked from network); 4 Feb 2004 14:01:29 -0000 Received: from unknown (HELO hall.mail.mindspring.net) (207.69.200.60) by sources.redhat.com with SMTP; 4 Feb 2004 14:01:29 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by hall.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1AoNaq-0008JR-00; Wed, 04 Feb 2004 09:01:28 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id D58B14B364; Wed, 4 Feb 2004 09:01:31 -0500 (EST) To: brobecker@gnat.com Subject: Re: Problems with dejagnu and c++ tests... Cc: gdb-patches@sources.redhat.com Message-Id: <20040204140131.D58B14B364@berman.michael-chastain.com> Date: Wed, 04 Feb 2004 14:01:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-02/txt/msg00070.txt.bz2 Well, you could just add "return 1" to skip_cplus_tests on that system. But in the long run, get_compiler_info needs to be smarter. (Really, default_target_compile needs to have a better interface, but we can't touch that). Perhaps we should just kill get_compiler_info and add some more code to initialization. Have it compile and run two test programs, one in C, and one in C++. Like this: #include int main () { #if defined(__GNUC__) printf ("set compiler_info gcc-%d-%d\n", __GNUC__, __GNUC__MINOR__); printf ("set gcc_compiled %d\n", __GNUC__); else printf ("set gcc_compiled 0\n") #endif } Then just save the results and have get_compiler_info set the right results for the language specified. Michael C