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
7be7d41b
Commit
7be7d41b
authored
Aug 24, 2004
by
Tobias Schlüter
Committed by
Tobias Schlüter
Aug 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* resolve.c (resolve_entries): Fix a bunch of comment typos.
From-SVN: r86497
parent
b5c2f1d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
gcc/fortran/ChangeLog
+8
-0
gcc/fortran/resolve.c
+9
-5
No files found.
gcc/fortran/ChangeLog
View file @
7be7d41b
2004-08-24 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-decl.c (build_function_decl): Fix spelling in comment.
(build_entry_thunks): Remove code with no function.
(gfc_build_intrinsic_function_decls): Remove empty line.
* resolve.c (resolve_entries): Fix a bunch of comment typos.
2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
* fortran/f95-lang.c (gfc_init_decl_processing): Adjust
...
...
gcc/fortran/resolve.c
View file @
7be7d41b
...
...
@@ -312,6 +312,10 @@ merge_argument_lists (gfc_symbol *proc, gfc_formal_arglist *new_args)
/* Add a new argument. Argument order is not important. */
new_arglist
=
gfc_get_formal_arglist
();
new_arglist
->
sym
=
new_sym
;
/* We mark all arguments as optional, since in the common case
only a subset of the arguments will be present. This avoids
having to special case arguments of master functions later on. */
new_arglist
->
sym
->
attr
.
optional
=
1
;
new_arglist
->
next
=
proc
->
formal
;
proc
->
formal
=
new_arglist
;
}
...
...
@@ -344,7 +348,7 @@ resolve_entries (gfc_namespace * ns)
if
(
ns
->
proc_name
->
attr
.
entry_master
)
return
;
/* If this isn't a procedure something as gone horribly wrong. */
/* If this isn't a procedure something
h
as gone horribly wrong. */
assert
(
ns
->
proc_name
->
attr
.
flavor
==
FL_PROCEDURE
);
/* Remember the current namespace. */
...
...
@@ -369,8 +373,8 @@ resolve_entries (gfc_namespace * ns)
/* Create a new symbol for the master function. */
/* Give the internal function a unique name (within this file).
Also include t
eh
function name so the user has some hope of figuring
out whats going on. */
Also include t
he
function name so the user has some hope of figuring
out what
i
s going on. */
snprintf
(
name
,
GFC_MAX_SYMBOL_LEN
,
"master.%d.%s"
,
master_count
++
,
ns
->
proc_name
->
name
);
name
[
GFC_MAX_SYMBOL_LEN
]
=
'\0'
;
...
...
@@ -392,10 +396,10 @@ resolve_entries (gfc_namespace * ns)
for
(
el
=
ns
->
entries
;
el
;
el
=
el
->
next
)
merge_argument_lists
(
proc
,
el
->
sym
->
formal
);
/*
And use it
for the function body. */
/*
Use the master function
for the function body. */
ns
->
proc_name
=
proc
;
/* F
I
nalize the new symbols. */
/* F
i
nalize the new symbols. */
gfc_commit_symbols
();
/* Restore the original namespace. */
...
...
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