Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Woodbury <ggw@cds.duke.edu>
Subject: Re: RH4.2 fort77 bug
Date: Tue, 15 Jul 1997 16:27:12 -0400 (EDT)	[thread overview]
Message-ID: <m0woEBk-000A1HC@dukcds.cds.duke.edu> (raw)

As I noted, the problem is in the GCC code generator.

In "proc.c" of f2c/src the following code appears:

	else if ( ISINT(nelt->headblock.vtype) && nelt->constblock.Const.ci <= 0
		|| nelt->constblock.Const.cd[0] <= 0 )
			dclerr("nonpositive dimension", q);

And this "should" not evaluate the floating point "nelt->constblock.Const.cd[0]"
(which is an invalid number, its a union with ints and longs, etc)

I changed it to:

	int	theVtype;
	theVtype = nelt->headblock.vtype;
	.
	.
	.
	.
	else if ( ISINT(theVtype) && nelt->constblock.Const.ci <= 0 )
		dclerr("nonpositive dimension", q);
	else if (!ISINT(theVtype) && nelt->constblock.Const.cd[0] <= 0.0 )
		dclerr("nonpositive dimension", q);

And this takes care of that problem.  There are some other problems of
this sort occurring as well, so I have a few more changes coming I guess.

Greg Woodbury

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-07-15 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-15 20:27 Greg Woodbury [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-07-16  2:59 RH4.2 fort77 bug Craig Burley
1997-07-16  4:47 ` Greg Woodbury
1997-07-16 16:20 Craig Burley
1997-07-16 16:34 Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox