public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18082] New: Excessively long compile time
@ 2004-10-20 15:49 schnetter at aei dot mpg dot de
  2004-10-20 15:53 ` [Bug fortran/18082] " schnetter at aei dot mpg dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-10-20 15:49 UTC (permalink / raw)
  To: gcc-bugs

I use gcc version 
 
GNU Fortran 95 (GCC 4.0.0 20041019 (experimental)) 
 
to compile the enclosed source file with the options 
 
/home/eschnett/gcc/bin/gfortran -ftrapv -march=pentium4 -malign-double -g3 -c 
-o /home/eschnett/Calpha/Cactus/configs/einstein-gcc-debug/build/EHFinder/EHFinder_ReadData.F90.o /home/eschnett/Calpha/Cactus/configs/einstein-gcc-debug/build/EHFinder/EHFinder_ReadData.f90 
 
and I find that gfortran seems to enter an infinite loop.  Memory usage is 
reasonable, but after more than 17 minutes on a Pentium M 1200 MHz gfortran 
was not yet finished.  Note that there is no optimisation, and that the source 
code is straightforward, except for lengthy argument lists.

-- 
           Summary: Excessively long compile time
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs 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


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


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

* [Bug fortran/18082] Excessively long compile time
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
@ 2004-10-20 15:53 ` schnetter at aei dot mpg dot de
  2004-10-20 16:04 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-10-20 15:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schnetter at aei dot mpg dot de  2004-10-20 15:53 -------
Created an attachment (id=7386)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7386&action=view)
failing source code


-- 


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


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

* [Bug fortran/18082] Excessively long compile time
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
  2004-10-20 15:53 ` [Bug fortran/18082] " schnetter at aei dot mpg dot de
@ 2004-10-20 16:04 ` reichelt at gcc dot gnu dot org
  2004-10-20 17:15 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-20 16:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-20 16:04 -------
Confirmed. Reduced testcase:

=====================================
subroutine FOO ( X )
  character(len=*), intent(IN) :: X
  character(len=len(X)) :: C1, C2
  C1 = ''
  C2 = ''
end subroutine
=====================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |compile-time-hog, monitored
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-20 16:04:26
               date|                            |


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


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

* [Bug fortran/18082] Excessively long compile time
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
  2004-10-20 15:53 ` [Bug fortran/18082] " schnetter at aei dot mpg dot de
  2004-10-20 16:04 ` reichelt at gcc dot gnu dot org
@ 2004-10-20 17:15 ` pinskia at gcc dot gnu dot org
  2004-10-21 19:01 ` tobi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-20 17:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-20 17:15 -------
For some reason c1 and c2 are chained together in an infinite list.

-- 


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


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

* [Bug fortran/18082] Excessively long compile time
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
                   ` (2 preceding siblings ...)
  2004-10-20 17:15 ` pinskia at gcc dot gnu dot org
@ 2004-10-21 19:01 ` tobi at gcc dot gnu dot org
  2005-04-14  8:58 ` [Bug fortran/18082] Infinite loop with automatic length character objects reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-21 19:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-21 19:01 -------
===================
subroutine FOO ( X )
  character(len=*), intent(IN) :: X
  character(len=len(X)) :: C1
  character(len=len(X)) :: C2   ! two lines
  C1 = ''
  C2 = ''
end subroutine
===================
doesn't show the problem, so this is a problem in how we share the lengths of
different automatic length character entities. (the character lengths of objects
declared on the same line are shared, unless assumed length)

-- 


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
                   ` (3 preceding siblings ...)
  2004-10-21 19:01 ` tobi at gcc dot gnu dot org
@ 2005-04-14  8:58 ` reichelt at gcc dot gnu dot org
  2005-06-03 14:36 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-04-14  8:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-04-14 08:58 -------
*** Bug 20821 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at verizon dot net


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
                   ` (4 preceding siblings ...)
  2005-04-14  8:58 ` [Bug fortran/18082] Infinite loop with automatic length character objects reichelt at gcc dot gnu dot org
@ 2005-06-03 14:36 ` fxcoudert at gcc dot gnu dot org
  2005-06-06  0:49 ` pinskia at gcc dot gnu dot org
  2005-09-10  2:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 13+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-03 14:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-06-03 14:36 -------
I encountered this same problem today, directly with an integer as parameter for
the subroutine:

subroutine FOO(N)
  integer, intent(IN) :: N
  character(len=N) :: C1, C2
  C1 = ''
  C2 = ''
end subroutine

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-02-26 18:42:47         |2005-06-03 14:36:53
               date|                            |


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
                   ` (5 preceding siblings ...)
  2005-06-03 14:36 ` fxcoudert at gcc dot gnu dot org
@ 2005-06-06  0:49 ` pinskia at gcc dot gnu dot org
  2005-09-10  2:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-06  0:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-06 00:49 -------
For some reason we get an infinite linked list.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-06-03 14:36:53         |2005-06-06 00:49:01
               date|                            |


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
  2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
                   ` (6 preceding siblings ...)
  2005-06-06  0:49 ` pinskia at gcc dot gnu dot org
@ 2005-09-10  2:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  2:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 02:08 -------
*** Bug 23798 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rrr6399 at futuretek dot com


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
       [not found] <bug-18082-7427@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-14  4:53 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-14 10:57 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-10-14 10:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from reichelt at gcc dot gnu dot org  2005-10-14 10:57 -------
Fixed on mainline and teh 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
       [not found] <bug-18082-7427@http.gcc.gnu.org/bugzilla/>
  2005-10-12 20:29 ` cvs-commit at gcc dot gnu dot org
  2005-10-12 21:18 ` pinskia at gcc dot gnu dot org
@ 2005-10-14  4:53 ` cvs-commit at gcc dot gnu dot org
  2005-10-14 10:57 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-14  4:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from cvs-commit at gcc dot gnu dot org  2005-10-14 04:53 -------
Subject: Bug 18082

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     pault@gcc.gnu.org       2005-10-14 04:53:30

Modified files:
        gcc/fortran    : symbol.c trans-types.c decl.c ChangeLog 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: automatic_char_len_1.f90 
                                   save_common.f90 save_result.f90 
                                   derived_pointer_recursion.f90 

Log message:
        2005-10-14  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/20847
        PR fortran/20856
        * symbol.c (check_conflict): Prevent common variables and
        function results from having the SAVE attribute,as required
        by the standard.

        PR fortran/24092
        * trans-types.c (gfc_get_derived_type): Insert code to obtain backend
        declaration for derived types, building if necessary.  Return the
        derived type if the fields have been built by this process.  Otherwise,
        continue as before but using the already obtained backend_decls for the
        derived type components.  Change the gcc_assert to act on the field.

        PR fortran/18082
        * decl.c (variable_decl): Make a new copy of the character
        length for each variable, when the expression is not a
        constant.

        2005-10-14  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/18082
        * gfortran.dg/automatic_char_len_1.f90: New test.

        PR fortran/20847
        * gfortran.dg/save_common.f90: New test.

        PR fortran/20856
        * gfortran.dg/save_result.f90: New test.

        PR fortran/24092
        * gfortran.dg/derived_pointer_recursion.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.26.2.5&r2=1.26.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.37.10.7&r2=1.37.10.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.31.2.4&r2=1.31.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.128&r2=1.335.2.129
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/automatic_char_len_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_common.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_result.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/derived_pointer_recursion.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.453&r2=1.5084.2.454


-- 


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
       [not found] <bug-18082-7427@http.gcc.gnu.org/bugzilla/>
  2005-10-12 20:29 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-12 21:18 ` pinskia at gcc dot gnu dot org
  2005-10-14  4:53 ` cvs-commit at gcc dot gnu dot org
  2005-10-14 10:57 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-12 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2005-10-12 21:18 -------
*** Bug 24339 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org


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


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

* [Bug fortran/18082] Infinite loop with automatic length character objects
       [not found] <bug-18082-7427@http.gcc.gnu.org/bugzilla/>
@ 2005-10-12 20:29 ` cvs-commit at gcc dot gnu dot org
  2005-10-12 21:18 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-12 20:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from cvs-commit at gcc dot gnu dot org  2005-10-12 20:29 -------
Subject: Bug 18082

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     pault@gcc.gnu.org       2005-10-12 20:29:22

Modified files:
        gcc/fortran    : decl.c ChangeLog 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: automatic_char_len_1.f90 

Log message:
        2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/18082
        * decl.c (variable_decl): Make a new copy of the character
        length for each variable, when the expression is not a
        constant.

        2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/18082
        gfortran.dg/automatic_char_len_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/decl.c.diff?cvsroot=gcc&r1=1.41&r2=1.42
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.583&r2=1.584
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/automatic_char_len_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6180&r2=1.6181


-- 


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


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

end of thread, other threads:[~2005-10-14 10:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 15:49 [Bug fortran/18082] New: Excessively long compile time schnetter at aei dot mpg dot de
2004-10-20 15:53 ` [Bug fortran/18082] " schnetter at aei dot mpg dot de
2004-10-20 16:04 ` reichelt at gcc dot gnu dot org
2004-10-20 17:15 ` pinskia at gcc dot gnu dot org
2004-10-21 19:01 ` tobi at gcc dot gnu dot org
2005-04-14  8:58 ` [Bug fortran/18082] Infinite loop with automatic length character objects reichelt at gcc dot gnu dot org
2005-06-03 14:36 ` fxcoudert at gcc dot gnu dot org
2005-06-06  0:49 ` pinskia at gcc dot gnu dot org
2005-09-10  2:08 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18082-7427@http.gcc.gnu.org/bugzilla/>
2005-10-12 20:29 ` cvs-commit at gcc dot gnu dot org
2005-10-12 21:18 ` pinskia at gcc dot gnu dot org
2005-10-14  4:53 ` cvs-commit at gcc dot gnu dot org
2005-10-14 10:57 ` reichelt 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).