Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
15f9ce29
Commit
15f9ce29
authored
Jun 21, 2005
by
Tobias Schlüter
Committed by
Paul Thomas
Jun 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
namelist_use_1.msg
Co-Authored-By: Paul Thomas <pault@gcc.gnu.org> From-SVN: r101233
parent
2735e93e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
gcc/fortran/ChangeLog
+10
-0
gcc/fortran/module.c
+50
-0
No files found.
gcc/fortran/ChangeLog
View file @
15f9ce29
2005-06-21 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
Paul Thomas <pault@gcc.gnu.org>
PR fortran/22010
Port from g95.
* module.c (mio_namelist): New function. Correct to set
namelist_tail and to give error on renaming namelist by use
association.
(mio_symbol): Call mio_namelist.
2005-06-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.h: Add flag_backslash compile-time option.
...
...
gcc/fortran/module.c
View file @
15f9ce29
...
...
@@ -2564,6 +2564,55 @@ mio_expr (gfc_expr ** ep)
}
/* Read and write namelists */
static
void
mio_namelist
(
gfc_symbol
*
sym
)
{
gfc_namelist
*
n
,
*
m
;
const
char
*
check_name
;
mio_lparen
();
if
(
iomode
==
IO_OUTPUT
)
{
for
(
n
=
sym
->
namelist
;
n
;
n
=
n
->
next
)
mio_symbol_ref
(
&
n
->
sym
);
}
else
{
/* This departure from the standard is flagged as an error.
It does, in fact, work correctly. TODO: Allow it
conditionally? */
if
(
sym
->
attr
.
flavor
==
FL_NAMELIST
)
{
check_name
=
find_use_name
(
sym
->
name
);
if
(
check_name
&&
strcmp
(
check_name
,
sym
->
name
)
!=
0
)
gfc_error
(
"Namelist %s cannot be renamed by USE"
" association to %s."
,
sym
->
name
,
check_name
);
}
m
=
NULL
;
while
(
peek_atom
()
!=
ATOM_RPAREN
)
{
n
=
gfc_get_namelist
();
mio_symbol_ref
(
&
n
->
sym
);
if
(
sym
->
namelist
==
NULL
)
sym
->
namelist
=
n
;
else
m
->
next
=
n
;
m
=
n
;
}
sym
->
namelist_tail
=
m
;
}
mio_rparen
();
}
/* Save/restore lists of gfc_interface stuctures. When loading an
interface, we are really appending to the existing list of
interfaces. Checking for duplicate and ambiguous interfaces has to
...
...
@@ -2724,6 +2773,7 @@ mio_symbol (gfc_symbol * sym)
sym
->
component_access
=
MIO_NAME
(
gfc_access
)
(
sym
->
component_access
,
access_types
);
mio_namelist
(
sym
);
mio_rparen
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment