Mail Archives: pgcc/1998/09/09/19:41:03
On Wed, Sep 09, 1998 at 01:22:27PM -0500, Steven Snyder wrote:
> I see a lot of software packages whose compilation uses the
> -fno-strength-reduce switch. (I'm reminded of this because I'm building
> glibc right now and it uses that switch as well.)
>
> Is strength reduction known to be buggy? And if so, why is it enabled by
> default?
Its not perfect, but its as safe as almost every other part of the compiler.
Back in linux-1.3, the kernel hit a bug with -fstrength-reduce, and all people
suddenly though "see how buggy gcc is", even when, in fact, they work fine.
But there is a reason why (some!) software packages use this switch, as it
sometimes (rare) decreases performance.
But normally you wouldn't want to disable strength reduction.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
- Raw text -