[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2010-06-11 Thread danglin at gcc dot gnu dot org


--- Comment #13 from danglin at gcc dot gnu dot org  2010-06-11 21:59 
---
268 MB for one number is a bit much!  However, I think this is a gmp issue.


-- 

danglin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2010-06-11 Thread fxcoudert at gcc dot gnu dot org


--- Comment #12 from fxcoudert at gcc dot gnu dot org  2010-06-11 13:52 
---
OK, so I suppose the test is a bit extreme, but other than that, I vote for
WONTFIX (or INVALID).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2010-05-09 Thread dfranke at gcc dot gnu dot org


--- Comment #11 from dfranke at gcc dot gnu dot org  2010-05-09 19:10 
---
(In reply to comment #10)
> It looks like ~ 256 MB is needed to hold the result of the power
> operation being requested (2 ** 0x1fff).  This is too much
> for this machine.

Is there anything we can do here? If not, please close as WONTFIX.


-- 

dfranke at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||dfranke at gcc dot gnu dot
   ||org
 Status|NEW |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-11-08 Thread danglin at gcc dot gnu dot org


--- Comment #10 from danglin at gcc dot gnu dot org  2008-11-09 02:20 
---
It looks like ~ 256 MB is needed to hold the result of the power
operation being requested (2 ** 0x1fff).  This is too much
for this machine.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-11-08 Thread danglin at gcc dot gnu dot org


--- Comment #9 from danglin at gcc dot gnu dot org  2008-11-09 02:06 ---
(gdb) p *op1->value.integer[0]._mp_d
$15 = 2


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-11-08 Thread danglin at gcc dot gnu dot org


--- Comment #8 from danglin at gcc dot gnu dot org  2008-11-09 02:01 ---
(gdb) c
Continuing.
/xxx/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90:9.12:

  print *, 0**(-1) ! { dg-error "Division by zero" }
   1
Error: Division by zero at (1)
/xxx/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90:11.12:

  print *, 0**(-huge(0)-1) ! { dg-error "Division by zero" }
   1
Error: Division by zero at (1)
/xxx/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90:13.12:

  print *, 0**(-(2_8**32)) ! { dg-error "Division by zero" }
   1
Error: Division by zero at (1)

Breakpoint 2, 0x00589304 in __gmpz_pow_ui ()
(gdb) p/x $r24
$9 = 0x7fff
(gdb) frame 1
#1  0x000bf840 in gfc_arith_power (op1=0x400c4aa0, op2=0x400c4ca8, 
resultp=0x7b03bba8) at ../../gcc/gcc/fortran/arith.c:999
999   switch (op1->ts.type)
(gdb) p op1->value.integer
$10 = {{_mp_alloc = 2, _mp_size = 1, _mp_d = 0x400c41d0}}
(gdb) p/x $r25
$11 = 0x400c4ae8
(gdb) p/x &op1->value.integer
$12 = 0x400c4ae8


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-11-08 Thread danglin at gcc dot gnu dot org


--- Comment #7 from danglin at gcc dot gnu dot org  2008-11-09 01:37 ---
(gdb) p *op1
$2 = {expr_type = EXPR_CONSTANT, ts = {type = BT_INTEGER, kind = 4, 
derived = 0x0, cl = 0x0, is_c_interop = 0, is_iso_c = 0, 
f90_type = BT_UNKNOWN}, rank = 0, shape = 0x0, symtree = 0x0, ref = 0x0, 
  where = {
nextc = 0x400bad3d "**huge(0) ! { dg-error \"Arithmetic overflow\" }", 
lb = 0x400bad20}, inline_noncopying_intrinsic = 0, is_boz = 0, 
  con_by_offset = 0x0, representation = {length = 0, string = 0x0}, value = {
logical = 2, integer = {{_mp_alloc = 2, _mp_size = 1, 
_mp_d = 0x400c41d0}}, real = {{_mpfr_prec = 2, _mpfr_sign = 1, 
_mpfr_exp = 1074545104, _mpfr_d = 0x0}}, complex = {r = {{
  _mpfr_prec = 2, _mpfr_sign = 1, _mpfr_exp = 1074545104, 
  _mpfr_d = 0x0}}, i = {{_mpfr_prec = 0, _mpfr_sign = 0, 
  _mpfr_exp = 0, _mpfr_d = 0x0}}}, op = {operator = INTRINSIC_PLUS, 
  uop = 0x1, op1 = 0x400c41d0, op2 = 0x0}, function = {actual = 0x2, 
  name = 0x1 , isym = 0x400c41d0, esym = 0x0}, 
character = {length = 2, string = 0x1 }, 
constructor = 0x2}}
(gdb) p *op2
$3 = {expr_type = EXPR_CONSTANT, ts = {type = BT_INTEGER, kind = 4, 
derived = 0x0, cl = 0x0, is_c_interop = 0, is_iso_c = 0, 
f90_type = BT_UNKNOWN}, rank = 0, shape = 0x0, symtree = 0x0, ref = 0x0, 
  where = {nextc = 0x400bad43 "(0) ! { dg-error \"Arithmetic overflow\" }", 
lb = 0x400bad20}, inline_noncopying_intrinsic = 0, is_boz = 0, 
  con_by_offset = 0x0, representation = {length = 0, string = 0x0}, value = {
logical = 1, integer = {{_mp_alloc = 1, _mp_size = 1, 
_mp_d = 0x400992e8}}, real = {{_mpfr_prec = 1, _mpfr_sign = 1, 
_mpfr_exp = 1074369256, _mpfr_d = 0x0}}, complex = {r = {{
  _mpfr_prec = 1, _mpfr_sign = 1, _mpfr_exp = 1074369256, 
  _mpfr_d = 0x0}}, i = {{_mpfr_prec = 0, _mpfr_sign = 0, 
  _mpfr_exp = 0, _mpfr_d = 0x0}}}, op = {operator = INTRINSIC_UMINUS, 
  uop = 0x1, op1 = 0x400992e8, op2 = 0x0}, function = {actual = 0x1, 
  name = 0x1 , isym = 0x400992e8, esym = 0x0}, 
character = {length = 1, string = 0x1 }, 
constructor = 0x1}}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-11-08 Thread danglin at gcc dot gnu dot org


--- Comment #6 from danglin at gcc dot gnu dot org  2008-11-09 00:59 ---
The same errors appear with gmp-4.2.4 and mpfr-2.3.2 built with
--enable-assert.
All tests pass with make check for both.

Breakpoint 1, 0x7aff9f40 in kill () from /usr/lib/libc.1
(gdb) bt
#0  0x7aff9f40 in kill () from /usr/lib/libc.1
#1  0x7af6299c in raise () from /usr/lib/libc.1
#2  0x7af443b0 in _sigaddset () from /usr/lib/libc.1
#3  0x7af3ef64 in abort () from /usr/lib/libc.1
#4  0x00595414 in __gmp_default_reallocate ()
#5  0x0058b05c in __gmpz_realloc ()
#6  0x00595a9c in __gmpz_n_pow_ui ()
#7  0x00589310 in __gmpz_pow_ui ()
#8  0x000bf840 in gfc_arith_power (op1=0x400c4aa0, op2=0x400c4ca8, 
resultp=0x7b03bba8) at ../../gcc/gcc/fortran/arith.c:999
#9  0x000bd0f4 in reduce_binary (eval=0x4003a332 <__xpg4_extended_mask+898>, 
op1=0x400c4aa0, op2=0x400c4ca8, result=0x7b03bba8)
at ../../gcc/gcc/fortran/arith.c:1521
#10 0x000bd4d4 in eval_intrinsic (operator=INTRINSIC_POWER, eval=
  {f2 = 0x4003a332 <__xpg4_extended_mask+898>, f3 = 0x4003a332
<__xpg4_extended_mask+898>}, op1=0x400c4aa0, op2=0x400c4ca8)
at ../../gcc/gcc/fortran/arith.c:1700
#11 0x000dde0c in gfc_simplify_expr (p=0x400c4d18, type=0)
at ../../gcc/gcc/fortran/expr.c:884
#12 0x0011904c in gfc_resolve_expr (e=0x400c4d18)
at ../../gcc/gcc/fortran/resolve.c:3183
#13 0x0011e760 in resolve_code (code=0x400c4628, ns=0x3c7fc)
at ../../gcc/gcc/fortran/resolve.c:6235
---Type  to continue, or q  to quit---
#14 0x00121bc4 in gfc_resolve_blocks (b=0x400c4d88, ns=0x400bf970)
at ../../gcc/gcc/fortran/resolve.c:6028
#15 0x0011e74c in resolve_code (code=0x400c4e18, ns=0x7adaf618)
at ../../gcc/gcc/fortran/resolve.c:6227
#16 0x0011ff4c in resolve_codes (ns=0x400bf970)
at ../../gcc/gcc/fortran/resolve.c:9171
#17 0x0011ff94 in gfc_resolve (ns=0x400bf970)
at ../../gcc/gcc/fortran/resolve.c:9190
#18 0x00110e3c in gfc_parse_file () at ../../gcc/gcc/fortran/parse.c:3563
#19 0x0013cedc in gfc_be_parse_file (set_yydebug=25599)
at ../../gcc/gcc/fortran/f95-lang.c:260
#20 0x00256c48 in toplev_main (argc=1073946128, argv=0x40067418)
at ../../gcc/gcc/toplev.c:1042
#21 0x0017576c in main (argc=13, argv=0x7b03b148) at ../../gcc/gcc/main.c:35


-- 

danglin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-11-09 00:59:02
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-03-22 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2008-03-22 
20:25 ---
Subject: Re:  FAIL: gfortran.dg/integer_exponentiation_4.f90  -O  (internal
compiler error)

> To go further, here's the information I think we need: What versions of GMP 
> and
> MPFR are you using? Do they pass checking (make check in their respective 
> build
> directories)? What happens if you build them with internal checking (asserts)
> turned on?

They are the latest: gmp-4.2.2 and mpfr-2.3.1.  I'll rebuild and test
with asserts.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2008-03-22 Thread fxcoudert at gcc dot gnu dot org


--- Comment #4 from fxcoudert at gcc dot gnu dot org  2008-03-22 19:35 
---
To go further, here's the information I think we need: What versions of GMP and
MPFR are you using? Do they pass checking (make check in their respective build
directories)? What happens if you build them with internal checking (asserts)
turned on?


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2007-10-01 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca  2007-10-01 
15:23 ---
Subject: Re:  FAIL: gfortran.dg/integer_exponentiation_4.f90  -O  (internal
compiler error)

> You might also want to build GMP and MPFR with internal checking enabled
> (--enable-assert, I think). Doesn't this one appear on hpux11?

It doesn't appear on hpux11.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2007-10-01 Thread fxcoudert at gcc dot gnu dot org


--- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-10-01 13:05 
---
You might also want to build GMP and MPFR with internal checking enabled
(--enable-assert, I think). Doesn't this one appear on hpux11?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584



[Bug fortran/33584] FAIL: gfortran.dg/integer_exponentiation_4.f90 -O (internal compiler error)

2007-09-29 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2007-09-29 12:48 ---
GNU MP: Cannot reallocate memory (old_size=4 new_size=268435472)

this looks like a GMP bug, not a GCC bug [GCC doesn't even use GMP, only
MPFR which is used does].

What's your GMP version?  Try updating to the latest-and-greatest here.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33584