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: f951 segfaults for gfortran.dg/initialization_1.f90


Kaz Kojima wrote:
Hi,

I've got the failures on sh4-unknown-linux-gnu for
gfortran.dg/initialization_1.f90:

http://gcc.gnu.org/ml/gcc-testresults/2008-04/msg01012.html

Although these failures are not seen on i686, it failed if
f951 was run under gdb:


This bug has been reported previously:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35864

--- snip ---

It seems that scalarize_intrinsic_call calls gfc_free_expr for the uninitialized expr variable. The appended patch works for me, though I'm not sure how to fix this correctly. Could gfortran experts take a look?


The patch you are doing here is probably a good idea. However, it may be masking the real problem, so we need to check into it further. PaulT is working on this.


A preliminary patch is here:

http://gcc.gnu.org/ml/fortran/2008-04/msg00107.html

Can you test this?

Jerry



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