* Re: g77
@ 1997-04-01 22:14 Barry Caplin
1997-04-01 22:34 ` g77 Richard Henderson
0 siblings, 1 reply; 5+ messages in thread
From: Barry Caplin @ 1997-04-01 22:14 UTC (permalink / raw)
Hi,
> >
> > 1) Is there g77 software for Alpha ? Because fort77 (which is in
> > the reality f2c) has very bad performance.
>
> Unfortunately, no, not yet. Although the developers are working on the
> port, there are many issues still unresolved. Maybe in a few months.
>
Funny you should mention this! I am in the process of porting the NAG
F90 compiler to Alpha Linux. I have run into a problem with gcc. I have
been emailing with Rick Gorton of DEC and he suggested I post the problem to
this list.
Here is some excerpts from our email conversations that explain the
problem:
----- Begin Included Message -----
What I have found is that there is a serious bug in the C compiler (GNU C
version 2.7.2). When passing the smallest "float" as an argument, it passes
instead a value smaller than the smallest "double".
There is, to my knowledge, a 2.7.2.1 version which apparently contains some
bug fixes. Worth checking, but I do not hold any high hopes.
-------------
Hi Barry,
I've been able to recreate the pass-by-value of MIN_FLT problem
with gcc. I'm looking for the root cause now - I'll keep you posted.
Rick
From amt.tay1.dec.com!gorton Fri Mar 21 13:27:11 1997
From: Richard Gorton <gorton@amt.tay1.dec.com>
To: caplin@nag.com
Here's what I've found so far:
gcc itself (2.7.2) is converting FLT_MIN (1.17549435e-38f)
into 1.17549435082228750797e-38 (which I believe to be correct)
The assembler (gas) seems to be screwing up and converting that
number into 0x007fffff instead of 0x00800000. I'm investigating
a fix.
FYI, this is a fairly old binutils problem:
Thu Sep 23 16:20:34 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* gas/ieee.fp/x930509a.exp: Currently expected to fail always.
# Reported 93/05/09 by Jim Wilson: IEEE single-precision FLT_MIN value gets
# assembled incorrectly. (Off by one ulp.)
Regards,
Rick
---------------------
Hi - I've not made much progress in the last couple of days on the problem
you were seeing with gcc for Linux/Alpha (A couple of other things stepped
in the way) but it is next on my list. The downside is that I'm going to
be out of the office on business for the upcoming week, so I won't be able
to make progress. What you can do is post the problem to axp-list@redhat.com
and/or email it to Richard Henderson (rth@tamu.edu or richard@atheist.tamu.edu)
He's _very_ knowledgable in the gcc/binutils area, and might be able to
turn around a quick fix for you.
Rick
----- End Included Message -----
If anyone has any advice for me I would be most grateful.
Thanks,
Barry
Barry Caplin email: bc@nag.com
Numerical Algorithms Group
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: g77
1997-04-01 22:14 g77 Barry Caplin
@ 1997-04-01 22:34 ` Richard Henderson
0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1997-04-01 22:34 UTC (permalink / raw)
> gcc itself (2.7.2) is converting FLT_MIN (1.17549435e-38f)
> into 1.17549435082228750797e-38 (which I believe to be correct)
> The assembler (gas) seems to be screwing up and converting that
> number into 0x007fffff instead of 0x00800000. I'm investigating
> a fix.
There was a bit in
ftp://ftp.redhat.com/pub/alphabits/rth-gcc-2.7.2-961121.diff.gz
that attempted to address that problem. This fix was included in the
RH 4.1 release, but I don't recall if that was before or after RH 4.0.
Anyway, the solution I used was to round the printed constant to one
more decimal than is actually present in the number instead of doing
garbage out to twenty digits. So you'd know if it was present if
gcc's output was of the form ".s_floating %.7e".
This worked at least for the test case
float foo = FLT_MIN;
If you've got something else that it still fails on... well, we'll
either fix gas, output hex from gcc, or both.
r~
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* g77
1997-11-21 14:52 Redhat 5.0 - The *real* questions Toon Moene
@ 1997-11-21 15:39 ` Roman Martonak
0 siblings, 0 replies; 5+ messages in thread
From: Roman Martonak @ 1997-11-21 15:39 UTC (permalink / raw)
> they support, and g77-0.5.19 definitely didn't work on Alpha's.
>
> Although g77-0.5.21 (9/9/97) was designed to solve all these
> problems, the egcs project (see below) already managed to find
> several errors in (patched) backend routines that we - the g77-alpha
> group - didn't find in the 6 months leading up to 0.5.21.
>
> > The good news is the egcs group, which is working on
> > extending gcc in various ways, incorporates g77 in their
> > standard release. Once egcs is released (it's in alpha
> > test right now), both egcs and egcs's fortran support
> > should end up in the standard Red Hat release.
>
So is g77 going to be further developed and will there be new versions,
apart from the egcs project, improving in particular the behaviour on
Alpha's ? When trying to get information on the g77 status via
finger -l fortran@gnu.ai.mit.edu, it tells me Unknown host gnu.ai.mit.edu
(few months ago it worked this way). I mentioned some time ago on this
list problems with a program compiled with g77 running fine on Intel Linux
but crashing with segmentation fault on Alpha, being apparently impossible
to debug and find out where the problem really is. I did not have time
to fight with it more but it seemed that the debugging support of g77
on Alpha is not yet very good.
Roman Martonak
Johannes Gutenberg-Universit"at
Institut f"ur Physik, WA 331 tel.: +49 +6131 393323
D-55099 Mainz fax.: +49 +6131 395441
Germany e-mail: martonak@nero.physik.uni-mainz.de
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: g77
@ 1997-11-21 18:31 Toon Moene
0 siblings, 0 replies; 5+ messages in thread
From: Toon Moene @ 1997-11-21 18:31 UTC (permalink / raw)
Roman Martonak wrote:
> So is g77 going to be further developed and will there
> be new versions, apart from the egcs project, improving
> in particular the behaviour on Alpha's ? When trying to
> get information on the g77 status via finger -l
> fortran@gnu.ai.mit.edu, it tells me Unknown host
> gnu.ai.mit.edu(few months ago it worked this way).
Yep, try finger -l fortran@alpha.gnu.org
> I mentioned some time ago on this list problems with a
> program compiled with g77 running fine on Intel Linux
> but crashing with segmentation fault on Alpha, being
> apparently impossible to debug and find out where the
> problem really is. I did not have time to fight with it
> more but it seemed that the debugging support of g77 on
> Alpha is not yet very good.
Or the program is buggy and it only shows on Alpha (yes, I know
this sounds like a cheap chick-out, but this often happens on the
g77 bug mailing list).
Your best chances are sending the failing program to
fortran@gnu.org according to the recipe in the g77 manual (Chapter
"Reporting Bugs" and subchapters).
HTH,
Toon.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: g77
@ 1998-05-04 17:07 ALEXANDRE A. P. SUIADE
0 siblings, 0 replies; 5+ messages in thread
From: ALEXANDRE A. P. SUIADE @ 1998-05-04 17:07 UTC (permalink / raw)
To: axp-list
About to compile eg77, I had problems too.
But, I got the Debian Package eg77... and egcc.. for alpha
in the directory
ftp.debian.org/debian/hamm/hamm/binary-alpha/devel/
the files are
gcc_2.90.28-0.1.deb (the egcc compiler)
g77_2.90.28-0.1.deb (the eg77 compiler)
and I used the alien package to do a rpm file
I installed it and it is working fine
OBS: if you want to use the original gcc, do:
mv /usr/bin/gcc /usr/bin/gcc.OFF
install the egcc...
rpm -i egcc...
install the eg77
rpm -i eg77...
them
mv /usr/bin/gcc /usr/bin/egcc
mv /usr/bin/gcc.OFF /usr/bin/gcc
bye,
alexandre suaide
***********************************
** **
** ALEXANDRE A. P. SUAIDE **
** **
** suaide@uspif1.if.usp.br **
** **
** Physics Institute of **
** University of Sao Paulo **
** **
** Nuclear Physics Department **
** **
** Sao Paulo - Brazil **
** **
** phone: 55 11 818-6939 **
** **
***********************************
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-05-04 17:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-01 22:14 g77 Barry Caplin
1997-04-01 22:34 ` g77 Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-11-21 14:52 Redhat 5.0 - The *real* questions Toon Moene
1997-11-21 15:39 ` g77 Roman Martonak
1997-11-21 18:31 g77 Toon Moene
1998-05-04 17:07 g77 ALEXANDRE A. P. SUIADE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox