[Bug fortran/39896] ICE with -fwhole-file

2009-08-03 Thread jv244 at cam dot ac dot uk
--- Comment #9 from jv244 at cam dot ac dot uk 2009-08-03 10:05 --- the testcases pass with current trunk. I'll close this as fixed. -- jv244 at cam dot ac dot uk changed: What|Removed |Added

[Bug fortran/39896] ICE with -fwhole-file

2009-05-04 Thread dfranke at gcc dot gnu dot org
--- Comment #8 from dfranke at gcc dot gnu dot org 2009-05-04 18:08 --- Paul, your patch fixes all issues I came across when compiling my largish set of fortran sources with -fwhole-file. So, now I "just" need to sort out all the warnings that came up *cough* ;) Many thanks! -- dfra

[Bug fortran/39896] ICE with -fwhole-file

2009-05-04 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2009-05-04 10:32 --- I guess that I should take it :-) Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39896] ICE with -fwhole-file

2009-05-04 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2009-05-04 10:31 --- > For some reason that I do not see right now, cs_base in resolve.c is not being > pushed or popped correctly. Ah yes! resolve_codes nulls out cs_base. The problem is fixed by storing cs_base before calling gfc_res

[Bug fortran/39896] ICE with -fwhole-file

2009-05-04 Thread pault at gcc dot gnu dot org
--- Comment #5 from pault at gcc dot gnu dot org 2009-05-04 10:19 --- (In reply to comment #2) > It may be worth noting that there are no warnings in the application about > labels not being in the same block as the corresponding GOTO if compiled > without -fwhole-file, but if compiled w

[Bug fortran/39896] ICE with -fwhole-file

2009-04-25 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2009-04-25 17:20 --- This may also be related to some failures I have seen with the polyhedron tests, see: http://gcc.gnu.org/ml/fortran/2009-04/msg00031.html I particular for [ibook-dhum] lin/test% gfc -O1 -fwhole-file gas_dyn.f90 gas

[Bug fortran/39896] ICE with -fwhole-file

2009-04-25 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2009-04-25 17:16 --- Here's a testcase (doesn't "work" without the extra subroutine): $> cat goto.for i = 1 DO CALL inc(i) IF (i == 5) GOTO 100 END DO 100 PRINT *, "done" END SUBROUTINE

[Bug fortran/39896] ICE with -fwhole-file

2009-04-25 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2009-04-25 17:02 --- It may be worth noting that there are no warnings in the application about labels not being in the same block as the corresponding GOTO if compiled without -fwhole-file, but if compiled with -fwhole-file some of thes

[Bug fortran/39896] ICE with -fwhole-file

2009-04-25 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2009-04-25 14:10 --- Confirmed. You don't need the infinite loop to get the bus error, the following block triggers it also: 456 CONTINUE go to 500 GO TO 456 500 continue -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i