From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3447 invoked by alias); 24 Mar 2012 06:49:00 -0000 Received: (qmail 3438 invoked by uid 22791); 24 Mar 2012 06:48:58 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 24 Mar 2012 06:48:45 +0000 Received: (qmail 23918 invoked by uid 20157); 24 Mar 2012 06:48:45 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Mar 2012 06:48:45 -0000 Date: Sat, 24 Mar 2012 06:49:00 -0000 From: Hans-Peter Nilsson To: Mike Frysinger cc: gdb-patches@sourceware.org Subject: Re: [PATCH] sim: make sure to include strsignal prototype In-Reply-To: <201203240212.04207.vapier@gentoo.org> Message-ID: References: <1332476592-12930-1-git-send-email-vapier@gentoo.org> <201203240012.05447.vapier@gentoo.org> <201203240212.04207.vapier@gentoo.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00817.txt.bz2 On Sat, 24 Mar 2012, Mike Frysinger wrote: > > Did you "make check-sim RUNTESTFLAGS=--target_board=cris-sim"? > > The warning message indicates the absence of that option or the > > wrong baseboard. > > using those flags makes most run. the linker segfaults when working on > helloaout.c, so that can't be good: > > $ cris-elf-gcc ../../sim/testsuite/sim/cris/c/helloaout.c \ > -O2 -L/usr/local/src/gnu/sourceware/build/build-cris/ld -sim3 \ > -Wl,-mcrisaout -sim -Ttext=0 -lm -o helloaout.c.x -Bld > collect2: ld terminated with signal 11 [Segmentation fault], core dumped Ouch. I'd be happy to process a ld PR for this, or I'll get to it eventually. Not that supporting a.out is of any particular interest, but it shouldn't pollute the test-results. > > (Arguably the *sim* test-suite should know set that option by > > itself, but at least it's consistent with other runnable > > dejagnu-based test-suites.) > > no other target needs this. You mean "when you run the test-suite with a target compiler, the only other sim target with C test-cases doesn't need this". :) I see bfin had a few C test-cases added the last year, nice. > i did some work about two years ago specifically > to avoid having to mess with dejagnu just to run `make check-sim`. I guess you missed fixing CRIS then. :) I'm not overexcited about the crusade making "sim" a special case, when it works using the same dejagnu spell as anything else. So _no_ adding compiler flags to the individual test-cases for the globally needed options. > looks like the difference are just compiler flags ? Linker flags, pointing to the right library, stuff like that... See the baseboard file. Different options for *-linux-gnu than for *-elf though. (Yes, the sim can run trivial cris*-linux-gnu -static programs.) brgds, H-P