[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-03-04 Thread tkoenig at gcc dot gnu dot org
--- Comment #15 from tkoenig at gcc dot gnu dot org 2007-03-04 08:03 --- Subject: Bug 30981 Author: tkoenig Date: Sun Mar 4 08:03:34 2007 New Revision: 122522 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122522 Log: 2007-03-04 Thomas Koenig [EMAIL PROTECTED] PR

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-03-01 Thread tkoenig at gcc dot gnu dot org
--- Comment #14 from tkoenig at gcc dot gnu dot org 2007-03-01 19:43 --- At least this is not a regression wrt g77. Interestingly enough, the following program sends g77 into a tailspin of increasing memory usage during compilation: program test a = 3.0 print

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #9 from tkoenig at gcc dot gnu dot org 2007-02-28 22:04 --- In principle, this is easy to fix: Use an unsigned variable for u. In practice, this means we have to delve into iparm.m4. Yuck :-) I'll look at this, but if somebody else has a good suggestion, please go ahead.

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-28 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-02-28 22:39 --- Yes declare this as undefined code and close the bug :). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30981

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-28 Thread Thomas dot Koenig at online dot de
--- Comment #11 from Thomas dot Koenig at online dot de 2007-02-28 23:13 --- Subject: Re: a ** exp fails for integer exponents if exp is -huge()-1 (endless loop) --- Comment #10 from pinskia at gcc dot gnu dot org 2007-02-28 22:39 --- Yes declare this as undefined code

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-28 Thread kargl at gcc dot gnu dot org
--- Comment #13 from kargl at gcc dot gnu dot org 2007-02-28 23:25 --- (In reply to comment #12) Created an attachment (id=13127) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13127action=view) [edit] Patch looks ok to me. Note, I haven't tested. -- kargl at gcc dot gnu

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-02-27 19:35 --- Hi, Could you post an example? With example I mean something which actually compiles and runs. Here, I have two problems: include '$(where)/amos/include/essential.ecm' is missing as well as the main

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread ray at ultramarine dot com
--- Comment #4 from ray at ultramarine dot com 2007-02-27 19:52 --- Subject: Re: a ** exp fails for integer exponents if exp is -huge()-1 (endless loop) On Tue, 27 Feb 2007, burnus at gcc dot gnu dot org wrote: --- Comment #3 from burnus at gcc dot gnu dot org 2007-02-27

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-27 19:54 --- Also isn't -huge()-1 undefined code for Fortran? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30981

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread ray at ultramarine dot com
--- Comment #6 from ray at ultramarine dot com 2007-02-27 19:57 --- Subject: Re: a ** exp fails for integer exponents if exp is -huge()-1 (endless loop) On Tue, 27 Feb 2007, pinskia at gcc dot gnu dot org wrote: --- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-27

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2007-02-27 20:46 --- (In reply to comment #5) Also isn't -huge()-1 undefined code for Fortran? -huge()-1 can be defined in Fortran. The problem comes when one tries to use that value in, e.g., IABS() because the standard prohibits

[Bug fortran/30981] a ** exp fails for integer exponents if exp is -huge()-1 (endless loop)

2007-02-27 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2007-02-27 22:04 --- Also isn't -huge()-1 undefined code for Fortran? -huge()-1 can be defined in Fortran. [...] I'll also note that -pedantic will reject -huge()-1 Just for completeness: In the original example (the very long,