[Bug fortran/17472] [4.0 only] namelist does not handle arrays

2005-06-05 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-05 
23:34 ---
Subject: Bug 17472

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-06-05 23:33:52

Modified files:
gcc/fortran: ChangeLog gfortran.texi trans-io.c 
gcc/testsuite  : ChangeLog 
gcc/testsuite/gfortran.dg: namelist_1.f90 
libgfortran: ChangeLog 
libgfortran/io : io.h list_read.c lock.c transfer.c write.c 
Added files:
gcc/testsuite/gfortran.dg: namelist_11.f namelist_12.f 
   namelist_13.f90 namelist_14.f90 
   namelist_15.f90 namelist_16.f90 
   namelist_17.f90 namelist_18.f90 
   namelist_19.f90 namelist_2.f90 
   namelist_20.f90 namelist_3.f90 
   pr12884.f pr17285.f90 pr17472.f 
   pr18122.f90 pr18210.f90 pr18392.f90 
   pr19467.f90 pr19657.f 

Log message:
gcc/fortran/
2005-06-05  Jakub Jelinek  [EMAIL PROTECTED]

Backport from the mainline:
2005-04-17 Paul Thomas [EMAIL PROTECTED]

PR fortran/17472
PR fortran/18209
PR fortran/18396
PR fortran/19467
PR fortran/19657
* fortran/trans-io.c (gfc_build_io_library_fndecls): Create
declaration for st_set_nml_var and st_set_nml_var_dim. Remove
declarations of old namelist functions.
(build_dt): Simplified call to transfer_namelist_element.
(nml_get_addr_expr): Generates address expression for start of
object data. New function.
(nml_full_name): Qualified name for derived type components. New
function.
(transfer_namelist_element): Modified for calls to new functions
and improved derived type handling.

libgfortran/
2005-06-05  Jakub Jelinek  [EMAIL PROTECTED]

Backport from the mainline:
2005-04-18 Paul Thomas [EMAIL PROTECTED]
Jerry DeLisle [EMAIL PROTECTED]

* io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
* io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
call for ext_name.  These fix the bug reported by Jerry DeLisle to
the fortran list and are based on his suggested fix.

2005-04-18 Paul Thomas [EMAIL PROTECTED]

* io/list_read.c (nml_touch_nodes, nml_read_obj,
nml_get_obj_data): Fix memory leaks in code for derived types.

2005-04-17 Paul Thomas [EMAIL PROTECTED]

* io/list_read.c (eat_separator): at_eol = 1 replaced
(zapped at some time?).

2005-04-17 Paul Thomas [EMAIL PROTECTED]

PR libgfortran/12884
PR libgfortran/17285
PR libgfortran/18122
PR libgfortran/18210
PR libgfortran/18392
PR libgfortran/18591
PR libgfortran/18879
* io/io.h (nml_ls): Declare.
(namelist_info): Modify for arrays.
* io/list_read.c (namelist_read): Reduced to call to new functions.
(match_namelist_name): Simplified.
(nml_query): Handles stdin queries ? and =?. New function.
(nml_get_obj_data): Parses object name. New function.
(touch_nml_nodes): Marks objects for read. New function.
(untouch_nml_nodes): Resets objects. New function.
(parse_qualifier): Parses and checks qualifiers. New function
(nml_read_object): Reads and stores object data. New function.
(eat_separator): No new_record on '/' in namelist.
(finish_separator): No new_record on '/' in namelist.
(read_logical): Error return for namelist.
(read_integer): Error return for namelist.
(read_complex): Error return for namelist.
(read_real): Error return for namelist.
* io/lock.c (library_end): Free extended namelist_info types.
* io/transfer.c (st_set_nml_var): Modified for arrays.
(st_set_nml_var_dim): Dimension descriptors. New function.
* io/write.c (namelist_write): Reduced to call to new functions.
(nml_write_obj): Writes output for object. New function.
(write_integer): Suppress leading blanks for repeat counts.
(write_int): Suppress leading blanks for repeat counts.
(write_float): Suppress leading blanks for repeat counts.
(output_float): Suppress leading blanks for repeat counts.

gcc/testsuite/
2005-06-05  Jakub Jelinek  [EMAIL PROTECTED]

Backport from the mainline:
2005-04-17 Paul Thomas [EMAIL PROTECTED]

PR fortran/17472
PR fortran/18209
PR fortran/18396
PR fortran/19467
PR fortran/19657
* 

[Bug fortran/17472] [4.0 only] namelist does not handle arrays

2005-04-23 Thread pault at gcc dot gnu dot org

--- Additional Comments From pault at gcc dot gnu dot org  2005-04-23 16:13 
---
The namelist modifications implemented over the last week have resulted in 
namelist io that is compliant with the standard and this bug is fixed, as of 
GCC 4.1.0 20050423.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug fortran/17472] [4.0 only] namelist does not handle arrays

2005-04-18 Thread fxcoudert at gcc dot gnu dot org

--- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-04-18 
08:02 ---
Fixed by Paul's recent namelist patch. Will be fixed on 4.0 when it's reopened.

-- 
   What|Removed |Added

   Keywords||patch
Summary|namelist does not handle|[4.0 only] namelist does not
   |arrays  |handle arrays
   Target Milestone|--- |4.0.1


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


[Bug fortran/17472] [4.0 only] namelist does not handle arrays

2005-04-18 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-18 
21:44 ---
Subject: Bug 17472

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-04-18 21:44:24

Modified files:
gcc/fortran: ChangeLog 

Log message:
Rewrap ChangeLog.  I'm listing the affected PRs so that they receive 
anot about this, even though the commit message for the original patch was 
empty.
PR fortran/17472
PR fortran/18209
PR fortran/18396
PR fortran/19467
PR fortran/19657

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gccr1=1.396r2=1.397



-- 


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