public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35475]  New: gfortran fails to compile valid code with ICE segfault
@ 2008-03-05 17:26 s dot binnie at ucl dot ac dot uk
  2008-03-05 17:27 ` [Bug fortran/35475] " s dot binnie at ucl dot ac dot uk
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: s dot binnie at ucl dot ac dot uk @ 2008-03-05 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

gfortran fails to compile valid code, leads to ICE segfault, Code compiles fine
under 4.1.2 .

command used:
 gfortran -v -save-temps -c -ffree-form ice.f

OUTPUT:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.3/configure --prefix=/scratch/sjb/local
Thread model: posix
gcc version 4.2.3
 /scratch/sjb/local/libexec/gcc/i686-pc-linux-gnu/4.2.3/f951 ice.f -quiet
-dumpbase ice.f -mtune=generic -auxbase ice -version -ffree-form -I
/scratch/sjb/local/lib/gcc/i686-pc-linux-gnu/4.2.3/finclude -o ice.s
GNU F95 version 4.2.3 (i686-pc-linux-gnu)
        compiled by GNU C version 4.2.3.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129260
ice.f: In function ‘subtwo’:
ice.f:51: internal compiler error: in fold_convert, at fold-const.c:2248
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: gfortran fails to compile valid code with ICE segfault
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s dot binnie at ucl dot ac dot uk
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/35475] gfortran fails to compile valid code with ICE segfault
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
@ 2008-03-05 17:27 ` s dot binnie at ucl dot ac dot uk
  2008-03-05 17:34 ` [Bug fortran/35475] gfortran fails to compile valid code with ICE erro in fold-const.c s dot binnie at ucl dot ac dot uk
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: s dot binnie at ucl dot ac dot uk @ 2008-03-05 17:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from s dot binnie at ucl dot ac dot uk  2008-03-05 17:26 -------
Created an attachment (id=15263)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15263&action=view)
Testcase (reduced from proprietary code).

Testcase (reduced from proprietary code).


-- 


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


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

* [Bug fortran/35475] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
  2008-03-05 17:27 ` [Bug fortran/35475] " s dot binnie at ucl dot ac dot uk
@ 2008-03-05 17:34 ` s dot binnie at ucl dot ac dot uk
  2008-03-05 17:52 ` [Bug fortran/35475] [4.2 Regression] " dfranke at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: s dot binnie at ucl dot ac dot uk @ 2008-03-05 17:34 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #2 from s dot binnie at ucl dot ac dot uk  2008-03-05 17:34 -------
(In reply to comment #0)
> gfortran fails to compile valid code, leads to ICE segfault, Code compiles fine
> under 4.1.2 .
> 
> command used:
>  gfortran -v -save-temps -c -ffree-form ice.f
> 
> OUTPUT:
> 
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: ../gcc-4.2.3/configure --prefix=/scratch/sjb/local
> Thread model: posix
> gcc version 4.2.3
>  /scratch/sjb/local/libexec/gcc/i686-pc-linux-gnu/4.2.3/f951 ice.f -quiet
> -dumpbase ice.f -mtune=generic -auxbase ice -version -ffree-form -I
> /scratch/sjb/local/lib/gcc/i686-pc-linux-gnu/4.2.3/finclude -o ice.s
> GNU F95 version 4.2.3 (i686-pc-linux-gnu)
>         compiled by GNU C version 4.2.3.
> GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129260
> ice.f: In function ‘subtwo’:
> ice.f:51: internal compiler error: in fold_convert, at fold-const.c:2248
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> 

Sorry it's not a segfault (that was yesterdays problem...) as the output shows
it's a problem with fold-const.c .


-- 


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
  2008-03-05 17:27 ` [Bug fortran/35475] " s dot binnie at ucl dot ac dot uk
  2008-03-05 17:34 ` [Bug fortran/35475] gfortran fails to compile valid code with ICE erro in fold-const.c s dot binnie at ucl dot ac dot uk
@ 2008-03-05 17:52 ` dfranke at gcc dot gnu dot org
  2008-03-05 17:55 ` burnus at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-03-05 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dfranke at gcc dot gnu dot org  2008-03-05 17:51 -------
Works on 4.1.2 (release), trunk (20080225) and 4.3 branch (20080219), fails for
4.2.4 (20080222).


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.2.4
      Known to work|                            |4.1.2 4.3.0 4.4.0
            Summary|gfortran fails to compile   |[4.2 Regression] gfortran
                   |valid code with ICE erro in |fails to compile valid code
                   |fold-const.c                |with ICE erro in fold-
                   |                            |const.c


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (2 preceding siblings ...)
  2008-03-05 17:52 ` [Bug fortran/35475] [4.2 Regression] " dfranke at gcc dot gnu dot org
@ 2008-03-05 17:55 ` burnus at gcc dot gnu dot org
  2008-03-05 18:00 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-03-05 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2008-03-05 17:55 -------
Thanks for the report.  I can reproduce the problem with 4.2.3, however, it
seems to be fixed in GCC/gfortran 4.3.0rc2 (and 4.4.0) - and as Daniel noted it
used to worked with 4.1.3.

GCC 4.3.0 is supposted to be released at the end of this week (currently, we
have release candidate 2). Any chance that you could upgrade your GCC and try
again? Despite being a regression, I'm not sure it will be fixed soon as we
need to find the fix first.

Binaries and a description how to build GCC from source can be found at
http://gcc.gnu.org/wiki/GFortranBinaries Depending on your Linux distribution,
they might have already experimental GCC 4.3.0 packages somewhere.
Changelog: http://gcc.gnu.org/gcc-4.3/changes.html


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.2.4                       |4.1.3 4.2.2
      Known to work|4.1.2 4.3.0 4.4.0           |4.3.0 4.4.0


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (3 preceding siblings ...)
  2008-03-05 17:55 ` burnus at gcc dot gnu dot org
@ 2008-03-05 18:00 ` pinskia at gcc dot gnu dot org
  2008-03-05 21:43 ` pault at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-05 18:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2008-03-05 17:59 -------
(In reply to comment #4)
> GCC 4.3.0 is supposted to be released at the end of this week (currently, we
> have release candidate 2). 

It is actually very closer to release than the end of the week, in fact it is
being uploaded to the FTP sites right now :).  The official announcement will
be made after some of the mirrors pick it up.

-- Pinski


-- 


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (4 preceding siblings ...)
  2008-03-05 18:00 ` pinskia at gcc dot gnu dot org
@ 2008-03-05 21:43 ` pault at gcc dot gnu dot org
  2008-03-11 10:52 ` fxcoudert at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-03-05 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pault at gcc dot gnu dot org  2008-03-05 21:43 -------
Simon and Tobias,

(In reply to comment #4)
> Thanks for the report.  I can reproduce the problem with 4.2.3, however, it
> seems to be fixed in GCC/gfortran 4.3.0rc2 (and 4.4.0) - and as Daniel noted it
> used to worked with 4.1.3.

I was responsible for much of the variability and regressions in this area. 
Unfortunately, in spite of our my endeavours, the testsuite did not keep track
of the regressions that I was generating.  I think that is OK now and that the
regression in 4.2.3 was cause by fixing things that 4.1.3 did not dream about.
4.3.x and 4.4.0 are now much better.

Please accept my apologies for the temporary breakage.

Paul


-- 


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (5 preceding siblings ...)
  2008-03-05 21:43 ` pault at gcc dot gnu dot org
@ 2008-03-11 10:52 ` fxcoudert at gcc dot gnu dot org
  2008-03-11 12:04 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-03-11 10:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-11 10:52:07
               date|                            |


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (6 preceding siblings ...)
  2008-03-11 10:52 ` fxcoudert at gcc dot gnu dot org
@ 2008-03-11 12:04 ` pinskia at gcc dot gnu dot org
  2008-03-12  4:12 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-11 12:04 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.2.4


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (7 preceding siblings ...)
  2008-03-11 12:04 ` pinskia at gcc dot gnu dot org
@ 2008-03-12  4:12 ` jvdelisle at gcc dot gnu dot org
  2008-03-14  3:14 ` jvdelisle at gcc dot gnu dot org
  2008-03-14  3:18 ` jvdelisle at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-03-12  4:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2008-03-12 04:12 -------
I will dejagnuize the test case and commit it.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-03-11 10:52:07         |2008-03-12 04:12:02
               date|                            |


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (8 preceding siblings ...)
  2008-03-12  4:12 ` jvdelisle at gcc dot gnu dot org
@ 2008-03-14  3:14 ` jvdelisle at gcc dot gnu dot org
  2008-03-14  3:18 ` jvdelisle at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-03-14  3:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2008-03-14 03:14 -------
Subject: Bug 35475

Author: jvdelisle
Date: Fri Mar 14 03:13:17 2008
New Revision: 133205

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133205
Log:
2008-03-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/35475
        * gfortran.dg/derived_sub.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/derived_sub.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/35475] [4.2 Regression] gfortran fails to compile valid code with ICE erro in fold-const.c
  2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
                   ` (9 preceding siblings ...)
  2008-03-14  3:14 ` jvdelisle at gcc dot gnu dot org
@ 2008-03-14  3:18 ` jvdelisle at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-03-14  3:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jvdelisle at gcc dot gnu dot org  2008-03-14 03:17 -------
Woks on trunk.  Test case committed to avoid future regression.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-03-14  3:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05 17:26 [Bug fortran/35475] New: gfortran fails to compile valid code with ICE segfault s dot binnie at ucl dot ac dot uk
2008-03-05 17:27 ` [Bug fortran/35475] " s dot binnie at ucl dot ac dot uk
2008-03-05 17:34 ` [Bug fortran/35475] gfortran fails to compile valid code with ICE erro in fold-const.c s dot binnie at ucl dot ac dot uk
2008-03-05 17:52 ` [Bug fortran/35475] [4.2 Regression] " dfranke at gcc dot gnu dot org
2008-03-05 17:55 ` burnus at gcc dot gnu dot org
2008-03-05 18:00 ` pinskia at gcc dot gnu dot org
2008-03-05 21:43 ` pault at gcc dot gnu dot org
2008-03-11 10:52 ` fxcoudert at gcc dot gnu dot org
2008-03-11 12:04 ` pinskia at gcc dot gnu dot org
2008-03-12  4:12 ` jvdelisle at gcc dot gnu dot org
2008-03-14  3:14 ` jvdelisle at gcc dot gnu dot org
2008-03-14  3:18 ` jvdelisle 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).