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
eebc3ee0
Commit
eebc3ee0
authored
Feb 20, 2005
by
Steven G. Kargl
Committed by
Steven G. Kargl
Feb 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* symbol.c: Typos in comments.
From-SVN: r95311
parent
7d651220
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/symbol.c
+9
-10
No files found.
gcc/fortran/ChangeLog
View file @
eebc3ee0
2005-02-20 Steven G. Kargl <kargls@comcast.net>
2005-02-20 Steven G. Kargl <kargls@comcast.net>
* symbol.c: Typos in comments.
2005-02-20 Steven G. Kargl <kargls@comcast.net>
* expr.c (gfc_type_convert_binary): Typo in comment.
* expr.c (gfc_type_convert_binary): Typo in comment.
2005-02-19 Steven G. Kargl <kargls@comcast.net>
2005-02-19 Steven G. Kargl <kargls@comcast.net>
...
...
gcc/fortran/symbol.c
View file @
eebc3ee0
...
@@ -179,8 +179,7 @@ gfc_merge_new_implicit (gfc_typespec * ts)
...
@@ -179,8 +179,7 @@ gfc_merge_new_implicit (gfc_typespec * ts)
}
}
/* Given a symbol, return a pointer to the typespec for it's default
/* Given a symbol, return a pointer to the typespec for its default type. */
type. */
gfc_typespec
*
gfc_typespec
*
gfc_get_default_type
(
gfc_symbol
*
sym
,
gfc_namespace
*
ns
)
gfc_get_default_type
(
gfc_symbol
*
sym
,
gfc_namespace
*
ns
)
...
@@ -483,9 +482,9 @@ check_used (symbol_attribute * attr, const char * name, locus * where)
...
@@ -483,9 +482,9 @@ check_used (symbol_attribute * attr, const char * name, locus * where)
/* Used to prevent changing the attributes of a symbol after it has been
/* Used to prevent changing the attributes of a symbol after it has been
used. This check is only done f
rom dummy variable
as only these can be
used. This check is only done f
or dummy variables
as only these can be
used in specification expressions. Applying this to all symbols causes
used in specification expressions. Applying this to all symbols causes
error when we reach the body of a contained function. */
an
error when we reach the body of a contained function. */
static
int
static
int
check_done
(
symbol_attribute
*
attr
,
locus
*
where
)
check_done
(
symbol_attribute
*
attr
,
locus
*
where
)
...
@@ -684,7 +683,7 @@ gfc_add_dummy (symbol_attribute * attr, const char *name, locus * where)
...
@@ -684,7 +683,7 @@ gfc_add_dummy (symbol_attribute * attr, const char *name, locus * where)
if
(
check_used
(
attr
,
name
,
where
))
if
(
check_used
(
attr
,
name
,
where
))
return
FAILURE
;
return
FAILURE
;
/* Duplicate dummy arguments are allow due to ENTRY statements. */
/* Duplicate dummy arguments are allow
ed
due to ENTRY statements. */
attr
->
dummy
=
1
;
attr
->
dummy
=
1
;
return
check_conflict
(
attr
,
name
,
where
);
return
check_conflict
(
attr
,
name
,
where
);
}
}
...
@@ -836,7 +835,7 @@ gfc_add_generic (symbol_attribute * attr, const char *name, locus * where)
...
@@ -836,7 +835,7 @@ gfc_add_generic (symbol_attribute * attr, const char *name, locus * where)
}
}
/* Flavors are special because some flavors are not what
f
ortran
/* Flavors are special because some flavors are not what
F
ortran
considers attributes and can be reaffirmed multiple times. */
considers attributes and can be reaffirmed multiple times. */
try
try
...
@@ -1102,7 +1101,7 @@ gfc_copy_attr (symbol_attribute * dest, symbol_attribute * src, locus * where)
...
@@ -1102,7 +1101,7 @@ gfc_copy_attr (symbol_attribute * dest, symbol_attribute * src, locus * where)
goto
fail
;
goto
fail
;
/* The subroutines that set these bits also cause flavors to be set,
/* The subroutines that set these bits also cause flavors to be set,
and that has already happened in the original, so don't let
to
and that has already happened in the original, so don't let
it
happen again. */
happen again. */
if
(
src
->
external
)
if
(
src
->
external
)
dest
->
external
=
1
;
dest
->
external
=
1
;
...
@@ -1147,7 +1146,7 @@ gfc_add_component (gfc_symbol * sym, const char *name, gfc_component ** componen
...
@@ -1147,7 +1146,7 @@ gfc_add_component (gfc_symbol * sym, const char *name, gfc_component ** componen
tail
=
p
;
tail
=
p
;
}
}
/* Allocate
new component
*/
/* Allocate
a new component.
*/
p
=
gfc_get_component
();
p
=
gfc_get_component
();
if
(
tail
==
NULL
)
if
(
tail
==
NULL
)
...
@@ -1194,7 +1193,7 @@ switch_types (gfc_symtree * st, gfc_symbol * from, gfc_symbol * to)
...
@@ -1194,7 +1193,7 @@ switch_types (gfc_symtree * st, gfc_symbol * from, gfc_symbol * to)
have to have a derived type in a parent unit. We find the node in
have to have a derived type in a parent unit. We find the node in
the other namespace and point the symtree node in this namespace to
the other namespace and point the symtree node in this namespace to
that node. Further reference to this name point to the correct
that node. Further reference to this name point to the correct
node. If we can't find the node in a parent namespace, then have
node. If we can't find the node in a parent namespace, then
we
have
an error.
an error.
This subroutine takes a pointer to a symbol node and returns a
This subroutine takes a pointer to a symbol node and returns a
...
@@ -1521,7 +1520,7 @@ done:
...
@@ -1521,7 +1520,7 @@ done:
the internal subprograms must be read before we can start
the internal subprograms must be read before we can start
generating code for the host.
generating code for the host.
Given the tricky nature of the
f
ortran grammar, we must be able to
Given the tricky nature of the
F
ortran grammar, we must be able to
undo changes made to a symbol table if the current interpretation
undo changes made to a symbol table if the current interpretation
of a statement is found to be incorrect. Whenever a symbol is
of a statement is found to be incorrect. Whenever a symbol is
looked up, we make a copy of it and link to it. All of these
looked up, we make a copy of it and link to it. All of these
...
...
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