Re: The root cause for SEGV in evaluating fortran function call, any solution or suggestion?

Daniel Jacobowitz
2005-11-07T05:01:47Z

On Mon, Nov 07, 2005 at 12:51:59PM +0800, Wu Zhou wrote:
> You are quite right. Following your pointer, I made another patch and it
> now passed with both g77 (3.4.4) and gfortran (4.0.1) on a x86 box. I
> didn't consider the red zone in AMD64 architecture, so maybe it won't work
> on it. I will try to find a chance to test it on other platform, such as
> ppc64 or any other platform I can get access to.
>
> Appended is the patch. Any comments and suggestion are highly
> appreciated!

Just to be clear: the patch is _not_ acceptable as is. We need to
decide what gfortran's debugging information should look like, and how
the transformation should be controlled by language. Casting an
integer to a pointer by pushing it to the stack this way is not the
correct behavior for any other language.

But thanks for testing my suggestion; the general approach looks sound,
once we figure out how to integrate it.

--
Daniel Jacobowitz
CodeSourcery, LLC