public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32478]  New: ICE on overloaded interface
@ 2007-06-24 10:07 refson dot temp at ntlworld dot com
  2007-06-24 10:09 ` [Bug fortran/32478] " refson dot temp at ntlworld dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: refson dot temp at ntlworld dot com @ 2007-06-24 10:07 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1856 bytes --]

The attached code generates an ICE when compiled at level
-O1, but curiously not -O0, -O2, -O3.

wtest.f90: In function ‘foo_bar_phi_foo’:
wtest.f90:12: internal compiler error: in build2_stat, at tree.c:3074
Please submit a full bug report,
with preprocessed source if appropriate.

The cause appears to be the dimensionality of the array
arguments.  If the dimensionality is reduced by one the
ICE disappears.

Additional version info:

Driving: gfortran -v -save-temps -O1 wtest.f90 -lgfortranbegin -lgfortran -lm
-shared-libgcc
Using built-in specs.
Target: i386-pc-linux-gnu
Configured with: /home/fxcoudert/gfortran_nightbuild/trunk/configure
--prefix=/home/fxcoudert/gfortran_nightbuild/irun-20070620
--enable-languages=c,fortran --build=i386-pc-linux-gnu
--enable-checking=release
--with-gmp=/home/fxcoudert/gfortran_nightbuild/software
Thread model: posix
gcc version 4.3.0 20070620 (experimental)
 /usr/local/gfortran/bin/../libexec/gcc/i386-pc-linux-gnu/4.3.0/f951 wtest.f90
-quiet -dumpbase wtest.f90 -mtune=i386 -auxbase wtest -O1 -version
-fintrinsic-modules-path
/usr/local/gfortran/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/finclude -o wtest.s
GNU F95 version 4.3.0 20070620 (experimental) (i386-pc-linux-gnu)
        compiled by GNU C version 4.3.0 20070620 (experimental), GMP version
4.2.1, MPFR version 2.2.1.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129432


-- 
           Summary: ICE on overloaded interface
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: refson dot temp at ntlworld dot com
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/32478] ICE on overloaded interface
  2007-06-24 10:07 [Bug fortran/32478] New: ICE on overloaded interface refson dot temp at ntlworld dot com
@ 2007-06-24 10:09 ` refson dot temp at ntlworld dot com
  2007-06-24 10:44 ` [Bug fortran/32478] [4.3 regression] ICE on 6+ dimensional assumed shape array in -O1 dfranke at gcc dot gnu dot org
  2007-06-24 10:51 ` [Bug fortran/32478] ICE on overloaded interface pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: refson dot temp at ntlworld dot com @ 2007-06-24 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from refson dot temp at ntlworld dot com  2007-06-24 10:09 -------
Created an attachment (id=13773)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13773&action=view)
Test case source


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/32478] [4.3 regression] ICE on 6+ dimensional assumed shape array in -O1
  2007-06-24 10:07 [Bug fortran/32478] New: ICE on overloaded interface refson dot temp at ntlworld dot com
  2007-06-24 10:09 ` [Bug fortran/32478] " refson dot temp at ntlworld dot com
@ 2007-06-24 10:44 ` dfranke at gcc dot gnu dot org
  2007-06-24 10:51 ` [Bug fortran/32478] ICE on overloaded interface pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-06-24 10:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2007-06-24 10:43 -------
Reduced testcase and backtrace:

$> cat pr32478.f90
subroutine foo_bar_phi_foo(bar_phi)
  real, dimension(:,:,:,:,:,:) :: bar_phi
  bar_phi = 0.0
end subroutine foo_bar_phi_foo

$> gfortran-svn -O1 pr32478.f90
pr32478.f90: In function 'foo_bar_phi_foo':
pr32478.f90:1: internal compiler error: in build2_stat, at tree.c:3074


(gdb) break tree.c:3074
Breakpoint 1, build2_stat (code=MULT_EXPR, tt=0xb7cefc3c, arg0=0xb7d74e00,
    arg1=0xb7d701c0) at ../../../gcc/gcc/tree.c:3074
3074        gcc_assert (TREE_CODE (arg0) == INTEGER_CST && TREE_CODE (arg1) ==
INTEGER_CST);
(gdb) bt
#0  build2_stat (code=MULT_EXPR, tt=0xb7cefc3c, arg0=0xb7d74e00,
    arg1=0xb7d701c0) at ../../../gcc/gcc/tree.c:3074
#1  0x086a62d2 in aff_combination_add_elt (comb=0xbff4004c, elt=0xb7d5c9f4,
    scale={low = 4, high = 0}) at ../../../gcc/gcc/tree-affine.c:175
#2  0x086a6790 in aff_combination_add (comb1=0xbff4004c, comb2=0xbff3fdbc)
    at ../../../gcc/gcc/tree-affine.c:202
#3  0x086a6e2d in tree_to_aff_combination (expr=0xb7d74a20, type=0xb7cefc3c,
    comb=0xbff4004c) at ../../../gcc/gcc/tree-affine.c:326
#4  0x083f194d in get_computation_aff (loop=0xb7d6ee60,
    use=<value optimized out>, cand=0x88f95c0, at=0xb7d5939c, aff=0xbff4004c)
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:2654
#5  0x083f36f2 in rewrite_use_address (data=0xbff40260, use=0x88cf560,
    cand=0x88f95c0) at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5086
#6  0x083f40d3 in rewrite_uses (data=0xbff40260)
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5147
#7  0x083f68bd in tree_ssa_iv_optimize_loop (data=0xbff40260,
    loop=<value optimized out>) at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5346
#8  0x083f6e3e in tree_ssa_iv_optimize ()
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5379
#9  0x08404c75 in tree_ssa_loop_ivopts ()
    at ../../../gcc/gcc/tree-ssa-loop.c:514
#10 0x0829f82f in execute_one_pass (pass=0x880dd20)
    at ../../../gcc/gcc/passes.c:1125
#11 0x0829fa2f in execute_pass_list (pass=0x880dd20)
    at ../../../gcc/gcc/passes.c:1178
#12 0x0829fa42 in execute_pass_list (pass=0x880d9a0)
    at ../../../gcc/gcc/passes.c:1179
#13 0x0829fa42 in execute_pass_list (pass=0x880d1a0)
    at ../../../gcc/gcc/passes.c:1179
#14 0x0837e01c in tree_rest_of_compilation (fndecl=0xb7d4cd80)
    at ../../../gcc/gcc/tree-optimize.c:406
#15 0x084e87d0 in cgraph_expand_function (node=0xb7d4ce80)
    at ../../../gcc/gcc/cgraphunit.c:1073
#16 0x084eaf3c in cgraph_optimize () at ../../../gcc/gcc/cgraphunit.c:1142
#17 0x080b3345 in gfc_be_parse_file (set_yydebug=0)
    at ../../../gcc/gcc/fortran/f95-lang.c:305
#18 0x083219f8 in toplev_main (argc=3, argv=0xbff404a4)
    at ../../../gcc/gcc/toplev.c:1051
#19 0x080f900f in main (argc=-2147352554, argv=0x0)
    at ../../../gcc/gcc/main.c:35


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   GCC host triplet|i386-pc-linux-gnu           |
 GCC target triplet|i386-pc-linux-gnu           |
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.3.0
      Known to work|                            |4.2.1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-24 10:43:52
               date|                            |
            Summary|ICE on overloaded interface |[4.3 regression] ICE on 6+
                   |                            |dimensional assumed shape
                   |                            |array in -O1


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/32478] ICE on overloaded interface
  2007-06-24 10:07 [Bug fortran/32478] New: ICE on overloaded interface refson dot temp at ntlworld dot com
  2007-06-24 10:09 ` [Bug fortran/32478] " refson dot temp at ntlworld dot com
  2007-06-24 10:44 ` [Bug fortran/32478] [4.3 regression] ICE on 6+ dimensional assumed shape array in -O1 dfranke at gcc dot gnu dot org
@ 2007-06-24 10:51 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-24 10:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-06-24 10:51 -------


*** This bug has been marked as a duplicate of 32417 ***

*** This bug has been marked as a duplicate of 32417 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   GCC host triplet|                            |i386-pc-linux-gnu
 GCC target triplet|                            |i386-pc-linux-gnu
           Keywords|ice-on-valid-code           |
      Known to fail|4.3.0                       |
      Known to work|4.2.1                       |
         Resolution|                            |DUPLICATE
            Summary|[4.3 regression] ICE on 6+  |ICE on overloaded interface
                   |dimensional assumed shape   |
                   |array in -O1                |


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-24 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-24 10:07 [Bug fortran/32478] New: ICE on overloaded interface refson dot temp at ntlworld dot com
2007-06-24 10:09 ` [Bug fortran/32478] " refson dot temp at ntlworld dot com
2007-06-24 10:44 ` [Bug fortran/32478] [4.3 regression] ICE on 6+ dimensional assumed shape array in -O1 dfranke at gcc dot gnu dot org
2007-06-24 10:51 ` [Bug fortran/32478] ICE on overloaded interface pinskia at gcc dot gnu dot org

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).