Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265369AbUANJpi (ORCPT ); Wed, 14 Jan 2004 04:45:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265439AbUANJpi (ORCPT ); Wed, 14 Jan 2004 04:45:38 -0500 Received: from mx1.redhat.com ([66.187.233.31]:5294 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S265369AbUANJn1 (ORCPT ); Wed, 14 Jan 2004 04:43:27 -0500 Date: Wed, 14 Jan 2004 04:43:05 -0500 From: Jakub Jelinek To: Andi Kleen Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, jh@suse.cz Subject: Re: [PATCH] string fixes for gcc 3.4 Message-ID: <20040114094305.GQ31589@devserv.devel.redhat.com> Reply-To: Jakub Jelinek References: <20040114091543.GA2024@averell> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040114091543.GA2024@averell> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 701 Lines: 17 On Wed, Jan 14, 2004 at 10:15:43AM +0100, Andi Kleen wrote: > > gcc 3.4 optimizes sprintf(foo,"%s",string) into strcpy. Unfortunately > that isn't seen by the inliner and linux/i386 has no out-of-line strcpy > so you end up with a linker error. The other alternative is -ffreestanding. Kernel in its current shape certainly is not a hosted environment. But I agree GCC does a better job with string/memory functions than kernel with its inlines. Jakub - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/