From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1BaxzX-0007CA-2u for user-mode-linux-devel@lists.sourceforge.net; Thu, 17 Jun 2004 07:35:47 -0700 Received: from smtp005.mail.ukl.yahoo.com ([217.12.11.36]) by sc8-sf-mx1.sourceforge.net with smtp (Exim 4.30) id 1BaxzW-0000Ha-GO for user-mode-linux-devel@lists.sourceforge.net; Thu, 17 Jun 2004 07:35:46 -0700 From: BlaisorBlade Subject: Re: [uml-devel] Re: [uml-user] SuSE 9.1 host + 2.4.26 Kernel + GCC 3.3.3 similarities to 2.6.6!? References: <114001c44bf7$b69ca120$2000000a@schlepptopp> <200406142109.45156.blaisorblade_spam@yahoo.it> <87oenle40x.fsf@amaterasu.srvr.nix> In-Reply-To: <87oenle40x.fsf@amaterasu.srvr.nix> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Message-Id: <200406162109.57341.blaisorblade_spam@yahoo.it> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 16 Jun 2004 21:09:57 +0200 Content-Transfer-Encoding: quoted-printable To: Nix Cc: uml , roland , uml-user , user-mode-linux-devel@lists.sourceforge.net Alle 08:20, marted=EC 15 giugno 2004, Nix ha scritto: > On Mon, 14 Jun 2004, BlaisorBlade mused: > > Well, ok, more hints, the first possible answer to this one seems to be > > that SuSE enables -funit-at-a-time: > > (unsurprising, given that -funit-at-a-time's primary author is jh@suse ;}= ) Well, someone following gcc development! Compliments! Do you think, too tha= t=20 SuSE gcc is a pre-release or heavily patched? > Yep, -funit-at-a-time will definitely break kernels that aren't > expecting it, both because of elision of unused statics and because some > arches depend on emission of asm's at the top level to emit stuff in the > same order in generated code, and with -funit-at-a-time this just > doesn't happen anymore. (I don't think i386 is such an architecture, > though.) However, I would like to see a successful test-case with -fno-unit-at-a-tim= e,=20 plus understanding what are the faulting declaration (i.e. adding=20 attribute_used where needed), before saying this bug is over. > -funit-at-a-time is enabled by default for C and C++ in GCC 3.4. > > > This is the trick: > The sort of thing you want to stash away in a header file and never lay > eyes on again. :) Well, this is already done, in the kernel: see the definition of=20 attribute_used in linux/compiler-gcc*.h. > > static const int hello ATTRIBUTE_USED =3D 56; > > > > int main() > > { > > asm( > > "mov hello, %eax\n" > > ); > > Well, in this *specific* case, hello should be marked as clobbered, If you mean should be marked by the coder, ok (gcc is not smart). > which will also stop the compiler eliding it. But this *was* a contrived > testcase... Bye! --=20 Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel