From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 21 02:45:35 2004 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D25AE16A4CE; Wed, 21 Jul 2004 02:45:35 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90EF443D31; Wed, 21 Jul 2004 02:45:35 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i6L2jZR0011367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Jul 2004 22:45:35 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i6L2jUs0045452; Tue, 20 Jul 2004 22:45:30 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16637.55498.97708.217664@grasshopper.cs.duke.edu> Date: Tue, 20 Jul 2004 22:45:30 -0400 (EDT) To: Peter Grehan In-Reply-To: <40FDCFFC.2040305@freebsd.org> References: <16637.52362.724097.711811@grasshopper.cs.duke.edu> <40FDCFFC.2040305@freebsd.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: freebsd-ppc@freebsd.org Subject: Re: modules? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 02:45:35 -0000 Peter Grehan writes: > I was going to ask ruslan if this was the correct place to commit > this CFLAGS change. However, if you think it's OK, I'll do it. Please do. Whenever I've made a change like this in the past, I've always managed to do it wrong ;_ > The second is a gcc patch, since internal libcalls (e.g. 64-bit arith) > don't respect the "-mlongcall" attribute. I've yet to file a bug against > gcc for this one. > > diff -u -r1.1.1.9 rs6000.c > --- rs6000.c 7 Nov 2003 02:43:04 -0000 1.1.1.9 > +++ rs6000.c 15 Jul 2004 03:40:09 -0000 > @@ -2914,6 +2914,9 @@ > && lookup_attribute ("longcall", TYPE_ATTRIBUTES (fntype)) > && !lookup_attribute ("shortcall", TYPE_ATTRIBUTES (fntype))) > cum->call_cookie = CALL_LONG; > + else if (!fntype) > + if (rs6000_default_long_calls) > + cum->call_cookie = CALL_LONG; > > if (TARGET_DEBUG_ARG) Have you talked to obrien or kan about getting this patch into at least our local version of gcc after you've filed the bug? Thanks, Drew