public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16861] [4.0 only] segfault with doubly used module
       [not found] <bug-16861-9062@http.gcc.gnu.org/bugzilla/>
@ 2005-11-11  5:37 ` pault at gcc dot gnu dot org
  2005-11-11  5:41 ` pault at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-11-11  5:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #30 from pault at gcc dot gnu dot org  2005-11-11 05:37 -------
Subject: Bug 16861

Author: pault
Date: Fri Nov 11 05:37:40 2005
New Revision: 106779

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106779
Log:
2005-11-11  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/24655
        PR fortran/24755
        * match.c (recursive_stmt_fcn): Add checks that symtree exists
        for the expression to weed out inline intrinsic functions and
        parameters.

        PR fortran/24409
        PR fortran/16861
        * module.c (mio_component_ref): Return if the symbol is NULL
        and wait for another iteration during module reads.
        (mio_symtree_ref): Suppress the writing of contained symbols,
        when a symbol is available in the main namespace. Take care that
        a symbol is not substituted for by a the symbol for the module
        itself and prevent the promotion of a formal argument.
        (read_module): Give symbols for variables from contained module
        procedures different true_name entries to those from the module
        proper.


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

        PR fortran/24655
        PR fortran/24755
        * gfortran.dg/recursive_statement_functions.f90: Add statement 
        functions using inline intrinsic functions and parameters to test
        that they no longer seg-fault.

        PR fortran/24409
        * gfortran.dg/nested_modules_4.f90: New test.
        * gfortran.dg/nested_modules_5.f90: New test.

        PR fortran/16861
        * gfortran.dg/nested_modules_3.f90: New test.
        * gfortran.dg/nested_modules_2.f90: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/nested_modules_2.f90
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/nested_modules_3.f90
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/nested_modules_4.f90
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/nested_modules_5.f90
Modified:
    branches/gcc-4_0-branch/gcc/fortran/ChangeLog
    branches/gcc-4_0-branch/gcc/fortran/match.c
    branches/gcc-4_0-branch/gcc/fortran/module.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/nested_modules_1.f90
   
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/recursive_statement_functions.f90


-- 


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


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

* [Bug fortran/16861] [4.0 only] segfault with doubly used module
       [not found] <bug-16861-9062@http.gcc.gnu.org/bugzilla/>
  2005-11-11  5:37 ` [Bug fortran/16861] [4.0 only] segfault with doubly used module pault at gcc dot gnu dot org
@ 2005-11-11  5:41 ` pault at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-11-11  5:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #31 from pault at gcc dot gnu dot org  2005-11-11 05:41 -------
For some reason, this never got fixed on 4.0.  It is now!


-- 


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


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

* [Bug fortran/16861] [4.0 only] segfault with doubly used module
  2004-08-03 17:26 [Bug fortran/16861] New: gfortran compiler segfault yosef at phys dot utb dot edu
                   ` (2 preceding siblings ...)
  2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
@ 2005-09-23 17:16 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-23 17:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-23 17:16 -------
Subject: Bug 16861

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pault@gcc.gnu.org	2005-09-23 17:16:07

Modified files:
	gcc/fortran    : module.c ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: nested_modules_3.f90 

Log message:
	2005-09-23  Paul Thomas  <pault@gcc.gnu.org>
	
	PR fortran/16861
	* module.c (mio_component_ref): Return if the symbol is NULL
	and wait for another iteration during module reads.
	(mio_symtree_ref): Suppress the writing of contained symbols,
	when a symbol is available in the main namespace.
	(read_module): Restrict scope of special treatment of contained
	symbols to variables only and suppress redundant call to
	find_true_name.
	
	2005-09-23  Paul Thomas  <pault@gcc.gnu.org>
	
	PR fortran/16861
	* gfortran.dg/nested_modules_3.f90: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/module.c.diff?cvsroot=gcc&r1=1.39&r2=1.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.567&r2=1.568
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6100&r2=1.6101
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/nested_modules_3.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/16861] [4.0 only] segfault with doubly used module
  2004-08-03 17:26 [Bug fortran/16861] New: gfortran compiler segfault yosef at phys dot utb dot edu
  2005-09-18 17:18 ` [Bug fortran/16861] [4.0 only] segfault with doubly used module pinskia at gcc dot gnu dot org
  2005-09-18 20:02 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
  2005-09-23 17:16 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 20:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-18 20:26 -------
All of these are fixed in 4.1.0. Since 4.0.2 is the last 4.0 release before a 4.1.0 release will be made, 
4.0.2 and 4.0.1 were special releases for gfrotran.  4.0.3 should be a normal release for GCC and 
gfortran in that regressions are the only changes.

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


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


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

* [Bug fortran/16861] [4.0 only] segfault with doubly used module
  2004-08-03 17:26 [Bug fortran/16861] New: gfortran compiler segfault yosef at phys dot utb dot edu
  2005-09-18 17:18 ` [Bug fortran/16861] [4.0 only] segfault with doubly used module pinskia at gcc dot gnu dot org
@ 2005-09-18 20:02 ` pinskia at gcc dot gnu dot org
  2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
  2005-09-23 17:16 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 20:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

* [Bug fortran/16861] [4.0 only] segfault with doubly used module
  2004-08-03 17:26 [Bug fortran/16861] New: gfortran compiler segfault yosef at phys dot utb dot edu
@ 2005-09-18 17:18 ` pinskia at gcc dot gnu dot org
  2005-09-18 20:02 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 17:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|segfault with doubly used   |[4.0 only] segfault with
                   |module                      |doubly used module
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-11-11  5:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16861-9062@http.gcc.gnu.org/bugzilla/>
2005-11-11  5:37 ` [Bug fortran/16861] [4.0 only] segfault with doubly used module pault at gcc dot gnu dot org
2005-11-11  5:41 ` pault at gcc dot gnu dot org
2004-08-03 17:26 [Bug fortran/16861] New: gfortran compiler segfault yosef at phys dot utb dot edu
2005-09-18 17:18 ` [Bug fortran/16861] [4.0 only] segfault with doubly used module pinskia at gcc dot gnu dot org
2005-09-18 20:02 ` pinskia at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
2005-09-23 17:16 ` cvs-commit 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).