Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@stommel.tamu.edu>
Subject: Re: g77
Date: Tue, 1 Apr 1997 16:34:05 -0600 (CST)	[thread overview]
Message-ID: <199704012234.QAA24840@stommel.tamu.edu> (raw)
In-Reply-To: <m0wCBow-0000uAC@nag.com>

> 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

  reply	other threads:[~1997-04-01 22:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-01 22:14 g77 Barry Caplin
1997-04-01 22:34 ` Richard Henderson [this message]
  -- 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
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