From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21606 invoked by alias); 15 Oct 2012 23:06:34 -0000 Received: (qmail 21594 invoked by uid 22791); 15 Oct 2012 23:06:34 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from dns1.mips.com (HELO dns1.mips.com) (12.201.5.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Oct 2012 23:06:28 +0000 Received: from mailgate1.mips.com (mailgate1.mips.com [12.201.5.111]) by dns1.mips.com (8.13.8/8.13.8) with ESMTP id q9FN6KX0013127; Mon, 15 Oct 2012 16:06:21 -0700 X-M-MSG: Received: from exchdb01.mips.com (unknown [192.168.36.84]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mailgate1.mips.com (Postfix) with ESMTP id 2C46A36465F; Mon, 15 Oct 2012 16:06:18 -0700 (PDT) Received: from [192.168.65.53] (192.168.65.53) by exchhub01.mips.com (192.168.36.84) with Microsoft SMTP Server id 14.1.270.1; Mon, 15 Oct 2012 16:06:16 -0700 Subject: Re: [patch, mips] Fix stubs files for hard float vs. soft float From: Steve Ellcey To: "Joseph S. Myers" CC: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 15 Oct 2012 23:06:00 -0000 Message-ID: <1350342376.2044.41.camel@ubuntu-sellcey> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-EMS-Proccessed: 6LP3oGfGVdcdb8o1aBnt6w== X-EMS-STAMP: Z0734t30iTSt6MEYHk3Stw== Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00035.txt.bz2 On Mon, 2012-10-15 at 22:08 +0000, Joseph S. Myers wrote: > On Mon, 15 Oct 2012, Steve Ellcey wrote: > > > While working on various flavors of glibc, I found that building on MIPS > > with and without floating point enabled resulted in different stub files, > > but the MIPS makefile did not handle this difference correctly (it would > > always create a stubs-o32.h (or n32 or n64) header file and that file would > > look different depending on whether or not you enabled floating point. > > What are the differences exactly? We should look at whether they are > actually all correct.... All of the soft-float versions have these entries which are not in the hard float versions: < #define __stub_feclearexcept < #define __stub_fedisableexcept < #define __stub_feenableexcept < #define __stub_fegetenv < #define __stub_fegetexcept < #define __stub_fegetexceptflag < #define __stub_fegetround < #define __stub_feholdexcept < #define __stub_feraiseexcept < #define __stub_fesetenv < #define __stub_fesetexceptflag < #define __stub_fesetround < #define __stub_fetestexcept < #define __stub_feupdateenv > Note that Roland objected to the use of $(shell) in the ARM case (it's on > my queue to revise the implementation accordingly, maybe during the 2.17 > freeze period). So I advise trying one of his suggestions from that > thread . Makefiles building makefiles. That's probably going to take some trial and error and a lot of questions on my part unless there is an existing example to draw from. I am not even sure what the Makefile that is being generated would be doing and what the targets in it would be. Steve Ellcey sellcey@mips.com