This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [gfortran,patch] Fix NEW_LINE simplification


FX Coudert wrote:
Attached one-line (+ whitespace) patch fixes an ICE on codes using NEW_LINE for non constant arguments. NEW_LINE can be simplified in the front-end for all character variables, since it only depends on the character kind of its argument. This lack of simplification triggered the ICE down in the code generation.

Bootstrapped and regtested on i686-linux, OK for mainline?

FX



:ADDPATCH fortran:

2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

        PR fortran/31764
        * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
        even for non constant arguments.


2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>


        PR fortran/31764
        * gfortran.dg/new_line.f90: Add new checks.

OK, thanks!

Jerry


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