public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/31120] ICE with integer_exponentiation_1.f90 and -ffast-math
Date: Wed, 14 Mar 2007 13:58:00 -0000 [thread overview]
Message-ID: <20070314135846.15686.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31120-12313@http.gcc.gnu.org/bugzilla/>
------- Comment #4 from dominiq at lps dot ens dot fr 2007-03-14 13:58 -------
Subject: Re: ICE with integer_exponentiation_1.f90 and -ffast-math
> And Dominique, I would appreciate if you could test the patch on ppc-darwin7.
I'll do it tonight, but before could you test the following code:
integer(4) :: i
integer(8) :: j
real(4) :: a
real(8) :: b, c, d
a = 1.0 + epsilon(a)
b = 1.0 + epsilon(b)
print *, a**huge(i), a**(-huge(i)), a**(-huge(i)-1)
print '(3(1PG30.17))', b**huge(i), b**(-huge(i)), b**(-huge(i)-1)
c = b**huge(i)
d= b**(-huge(i))
print '(3(1PG30.17))', c*d, d/b, exp(-huge(i)*log(b))
d=1/b
do i = 1, 31
d = d*d
end do
print '(2(1PG30.17))', d, b*d
!print *, b**huge(j), b**(-huge(j)), b**(-huge(j)-1)
end
If I uncomment the last print, I get:
[karma] f90/bug% gfc test_pow.f90
Out of stack space.
Try running 'limit stacksize unlimited' in the shell to raise its limit.
Is this also fixed by your patch?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31120
next prev parent reply other threads:[~2007-03-14 13:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-10 10:22 [Bug fortran/31120] New: " dominiq at lps dot ens dot fr
2007-03-10 10:25 ` [Bug fortran/31120] " dominiq at lps dot ens dot fr
2007-03-10 12:15 ` burnus at gcc dot gnu dot org
2007-03-10 12:33 ` tkoenig at gcc dot gnu dot org
2007-03-14 12:31 ` fxcoudert at gcc dot gnu dot org
2007-03-14 13:58 ` dominiq at lps dot ens dot fr [this message]
2007-03-14 14:02 ` fxcoudert at gcc dot gnu dot org
2007-03-14 14:27 ` dominiq at lps dot ens dot fr
2007-03-15 8:24 ` dominiq at lps dot ens dot fr
2007-03-15 8:52 ` dominiq at lps dot ens dot fr
2007-03-17 19:59 ` fxcoudert at gcc dot gnu dot org
2007-03-22 0:10 ` [Bug fortran/31120] [4.1/4.2 only] " fxcoudert at gcc dot gnu dot org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070314135846.15686.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).