From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9533 invoked by alias); 24 Mar 2012 18:18:50 -0000 Received: (qmail 9525 invoked by uid 22791); 24 Mar 2012 18:18:48 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Mar 2012 18:18:33 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 314951B4023; Sat, 24 Mar 2012 18:18:32 +0000 (UTC) From: Mike Frysinger To: "Hans-Peter Nilsson" Subject: Re: [PATCH] sim: make sure to include strsignal prototype Date: Sat, 24 Mar 2012 18:18:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <1332476592-12930-1-git-send-email-vapier@gentoo.org> <201203240212.04207.vapier@gentoo.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1609891.25ZiKMA0ae"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203241418.31982.vapier@gentoo.org> 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/msg00824.txt.bz2 --nextPart1609891.25ZiKMA0ae Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 2262 On Saturday 24 March 2012 02:48:45 Hans-Peter Nilsson wrote: > On Sat, 24 Mar 2012, Mike Frysinger wrote: > > > Did you "make check-sim RUNTESTFLAGS=3D--target_board=3Dcris-sim"? > > > The warning message indicates the absence of that option or the > > > wrong baseboard. > >=20 > > using those flags makes most run. the linker segfaults when working on > > helloaout.c, so that can't be good: > >=20 > > $ cris-elf-gcc ../../sim/testsuite/sim/cris/c/helloaout.c \ > >=20 > > -O2 -L/usr/local/src/gnu/sourceware/build/build-cris/ld -sim3 \ > > -Wl,-mcrisaout -sim -Ttext=3D0 -lm -o helloaout.c.x -Bld > >=20 > > collect2: ld terminated with signal 11 [Segmentation fault], core dumped >=20 > 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. http://sourceware.org/bugzilla/show_bug.cgi?id=3D13900 > > i did some work about two years ago specifically > > to avoid having to mess with dejagnu just to run `make check-sim`. >=20 > I guess you missed fixing CRIS then. :) not really ... the code fixed up was common code to automatically select th= e=20 locally compiled `run` binary if no sim was specified > 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. i don't know what you're referring to at all here > > looks like the difference are just compiler flags ? >=20 > Linker flags, pointing to the right library, stuff like that... > See the baseboard file. Different options for *-linux-gnu than > for *-elf though. i don't think it's unreasonable for the cris sim exp to set up sane default= s=20 based on the target. you know if the sim was configured for *-elf or *-lin= ux- gnu by default. > (Yes, the sim can run trivial cris*-linux-gnu -static programs.) and the Blackfin sim can handle static or dynamic Linux userland code in=20 addition to booting a Linux kernel or just running newlib/libgloss apps. $ echo 'main(){puts("HI");}' | bfin-linux-uclibc-gcc -x c - -o a.out -static $ bfin-elf-run --env user ./a.out=20 HI -mike --nextPart1609891.25ZiKMA0ae Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPbg/3AAoJEEFjO5/oN/WBoToQALB9S7W1lgFX+n2q5cceCR8n aH2CvR7hzTTPwmp69ytCUwYDyZWavRG0oKEUwmkMypPxY5DRTsgsjoTGMPmEKj3s Y3PiyTjqJ+tBzTYWXw+xMKavj8UFHo9WMFW4f2GyS8dpLKJ8DdDujzD+wkF+JCbS h51mKOTKKQ/o5ylUJCchdmtgH4JKKxcCX0Aw5YhKbplyDbcqq5RbwM/Oil8BssiN t06SXVJu3dvGIpnLjCz0UmsLilHLlvDhZV19+LekcoaJGjGZW13d1XJDrOTugQNl RMcLkcrTIPgavWrU44uHbMsEDVh9DJ8/iSQ2aGhbg0xD7t30P5BBv4cj9FFmm0JV zgMfBHPwWbYZxj4FJsAIJv4THwQE5vUP3fCJLpwWS5NEJ2TuAivwUVi9vouTGgi8 03XHBWHgTadBeIWLEe3C+CS8J3twI0UHdoGhCThZrf3bFHuEoRgXN4TMbxFtaGwc Ss5fStKH4JoHpGeXijqJFJqgr7o6BNxpmO6OngGckWNAO6XHKvCE9yLMNSK4N/LA DlMsOQOonuvLBcD0/mh58i/CZPxzVPoC8tkFcRFhMkeMixyJlR3CzvCW5brm25x/ NQyl7pe6J8jNXX1c3nONAmOyI5rP8k+kuHJommcOgFHjFp1d9oZvg3uGUE3c/09r 12hg3vl+pAYBxl/4XC3k =hi4m -----END PGP SIGNATURE----- --nextPart1609891.25ZiKMA0ae--