Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
Date: Mon, 12 Jul 1999 21:19:16 -0500	[thread overview]
Message-ID: <378AA224.88B1D888@paralleldata.com> (raw)
In-Reply-To: m3n1x18s51.fsf@vermis.bfr.co.il

"Alexander L. Belikoff" wrote:
> 
> Uh... I'm actually on my way to check the Steel book on that, but
> isn't it the case that the optimizer should just drop certain
> optimizations in case the programmer stands on the way - like in the
> situation above, shouldn't it just make a temp. variable and use it
> instead of a register? Besides, in case I have an optimized version of
> put_f8 in a separate file (with v passed in a register) and I try to
> call it from an unoptimized module - how would the compiler figure out
> the calling convention during the compilation stage?
> 

Don't know where that optimization is performed. One possible place
is for the linker to adjust both modules to "fit", assuming there
is argument info in a *.o file. Lot's of my code is in different
source files so maybe that is part of the problem too. Don't know.
I can guarantee I optimize all code at the same level and still
see the problem.

You're welcome to code any way you like. I do my best not to
use code styles that will break my code when I port to other
architectures. This code style can break so I don't use it. 
Much easier to make the change than to complain to the compiler
writers and ask them to fix it. Good to let them know the
problem exists though since it does cause headaches/time to
track down.


Wes


  reply	other threads:[~1999-07-13  3:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-12 14:26 an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Alexander L. Belikoff
1999-07-12 17:11 ` Wes Bauske
1999-07-12 16:38   ` Alexander L. Belikoff
1999-07-12 21:54     ` Joachim Wesner
1999-07-12 21:27       ` Alexander L. Belikoff
1999-07-13 10:08         ` Phil Carmody
1999-07-13 11:13           ` Joachim Wesner
1999-07-13 11:52             ` Dave Mason
1999-07-13 14:26             ` Phil Carmody
1999-07-13 14:58               ` seti at home Darren Breeze
1999-07-13 23:33                 ` TurboTex
1999-07-14  1:19                   ` Larry Snyder
1999-07-13  9:11       ` an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Richard Henderson
1999-07-12 18:47   ` Uncle George
1999-07-12 19:42     ` Wes Bauske
1999-07-12 19:15       ` Alexander L. Belikoff
1999-07-12 22:09         ` Wes Bauske
1999-07-12 21:39           ` Alexander L. Belikoff
1999-07-13  2:19             ` Wes Bauske [this message]
1999-07-12 19:14 ` Richard Henderson
1999-07-12 19:12   ` Alexander L. Belikoff
1999-07-11 17:46     ` Jeff Sturm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox