This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /internet


>There has been general agreement that gcc is not supposed to make
>optimizations that could change the value of an expression.
>Associative law optimizations of floating-point expressions certainly
>can change the value and they should continue to be disallowed.  Users
>should not have to fear that gcc is going to take arbitrary liberties
>and rewrite their programs for them without very explicit permission.

Even if this was true -- and IMO it isn't -- it doesn't apply to well-
designed numerical-processing languages like Fortran, in which it
is quite clear that A*B*C*D can be evaluated as (D*A)*(C*B), for
example.

Therefore, we should make the *back end* work properly in a language-
independent sense.  If people want the gcc to produce slower code
than g77, that's okay -- they can have gcc explicitly group the
operations for consumption by the back end, something Fortran doesn't
generally need to do.

        tq vm, (burley)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]