From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25626 invoked by alias); 13 Mar 2002 10:02:40 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 25515 invoked from network); 13 Mar 2002 10:02:36 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 13 Mar 2002 10:02:36 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g2DA2PY13719; Wed, 13 Mar 2002 11:02:25 +0100 Date: Wed, 13 Mar 2002 02:02:00 -0000 From: Jakub Jelinek To: Andreas Jaeger Cc: Richard Henderson , GNU libc hacker Subject: Re: Add memory clobber for i486 string inlines Message-ID: <20020313110225.V2204@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20020312135013.B23294@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from aj@suse.de on Wed, Mar 13, 2002 at 10:57:08AM +0100 X-SW-Source: 2002-03/txt/msg00041.txt.bz2 On Wed, Mar 13, 2002 at 10:57:08AM +0100, Andreas Jaeger wrote: > Richard Henderson writes: > > > On Tue, Mar 12, 2002 at 08:38:51PM +0100, Andreas Jaeger wrote: > >> As Richard Henderson mentioned on the gcc list (see: > >> http://gcc.gnu.org/ml/gcc-patches/2002-03/msg00534.html), we need to > >> add a memory clobber even for reading memory. > > > > Err, no, I said you should describe the read from memory. > > For memcmp you have the length of the access; for the others > > you can just use an array size of 0xffffffff or something. > > A length of 0xffffffff does not work, it gives: > str.c:56: size of array `__x' is too large > I used one f less. > > But the following two examples compile. Are these ok? Don't you need __extension__ there too? Also, I think at least memcpy/memset should go for recent gcc, gcc does a better job. Jakub