From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22143 invoked by alias); 23 Apr 2002 13:33:07 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22117 invoked from network); 23 Apr 2002 13:33:01 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 23 Apr 2002 13:33:01 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id C39F61E79D; Tue, 23 Apr 2002 15:33:00 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Falk Hueffner Cc: gcc list Subject: Re: GCC performance regression - its memset ! References: <20020421005718.GA16378@zoy.org> <20020422213222.GA21429@zoy.org> <20020422165953.A32536@redhat.com> <20020423001045.GA26276@zoy.org> <20020422171335.B32556@redhat.com> <20020423004239.GB26890@zoy.org> X-Yow: If you STAY in China, I'll give you 4,000 BUSHELS of "ATOMIC MOUSE" pencil sharpeners!! From: Andreas Schwab Date: Tue, 23 Apr 2002 06:53:00 -0000 In-Reply-To: (Falk Hueffner's message of "23 Apr 2002 13:54:52 +0200") Message-ID: User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-04/txt/msg01162.txt.bz2 Falk Hueffner writes: |> Hi, |> |> while we're at it, when you have a prototype for memset, gcc forgets |> about the alignment: |> |> void f1(unsigned long *p) { memset(p, 0, 16); } |> #include |> void f2(unsigned long *p) { memset(p, 0, 16); } |> |> -> (Alpha) |> |> 0000000000000000 : |> 0: 08 00 f0 b7 stq zero,8(a0) |> 4: 1f 04 ff 5f fnop |> 8: 00 00 f0 b7 stq zero,0(a0) |> c: 01 80 fa 6b ret |> 0000000000000020 : |> 20: 0f 00 30 2c ldq_u t0,15(a0) |> 24: 00 00 50 2c ldq_u t1,0(a0) |> 28: 41 0e 30 48 mskqh t0,a0,t0 |> 2c: 0f 00 30 3c stq_u t0,15(a0) |> 30: 42 06 50 48 mskql t1,a0,t1 |> 34: 08 00 f0 3f stq_u zero,8(a0) |> 38: 00 00 50 3c stq_u t1,0(a0) |> 3c: 01 80 fa 6b ret |> |> Is there anything that can be done about that? Please try -D__NO_STRING_INLINES. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."