From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57157 invoked by alias); 12 May 2015 16:40:52 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 57101 invoked by uid 48); 12 May 2015 16:40:48 -0000 From: "dave at sr71 dot net" To: glibc-bugs@sourceware.org Subject: [Bug libc/18402] FPU use in application before main() Date: Tue, 12 May 2015 16:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave at sr71 dot net X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00066.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18402 --- Comment #9 from Dave Hansen --- (In reply to H.J. Lu from comment #8) > (In reply to H.J. Lu from comment #7) > > It is not ld.so which calls strrchr. It is __init_misc in libc.so. > > If we want to get rid of SSE optimized strrchr before main, we > need a different strrchr. However, if program or compiler call > any string/memory functions, SSE registers may be used to optimize > those string/memory functions. The question is how much SSE usage > impacts performance on real applications. There's also the matter that the kernel tries to be lazy about allocating and saving/restoring FPU state. If the task is virtually guaranteed to have FPU state, then we should reconsider the lazy mode being the default. -- You are receiving this mail because: You are on the CC list for the bug.