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
a7f64d52
Commit
a7f64d52
authored
Aug 14, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finish_decl): Avoid cascading messages for tentative
definitions with incomplete types. From-SVN: r1821
parent
8c31e6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
gcc/c-decl.c
+12
-12
No files found.
gcc/c-decl.c
View file @
a7f64d52
...
...
@@ -3143,19 +3143,19 @@ finish_decl (decl, init, asmspec_tree)
if
(
TREE_CODE
(
decl
)
==
VAR_DECL
)
{
if
(
TREE_STATIC
(
decl
)
&&
DECL_SIZE
(
decl
)
==
0
)
if
(
DECL_SIZE
(
decl
)
==
0
&&
(
TREE_STATIC
(
decl
)
?
/* A static variable with an incomplete type
is an error if it is initialized or `static'.
Otherwise, let it through, but if it is not `extern'
then it may cause an error message later. */
!
TREE_PUBLIC
(
decl
)
||
DECL_INITIAL
(
decl
)
:
/* An automatic variable with an incomplete type
is an error. */
!
TREE_EXTERNAL
(
decl
)))
{
/* A static variable with an incomplete type:
that is an error if it is initialized or `static'.
Otherwise, let it through, but if it is not `extern'
then it may cause an error message later. */
if
(
!
(
TREE_PUBLIC
(
decl
)
&&
DECL_INITIAL
(
decl
)
==
0
))
error_with_decl
(
decl
,
"storage size of `%s' isn't known"
);
}
else
if
(
!
DECL_EXTERNAL
(
decl
)
&&
DECL_SIZE
(
decl
)
==
0
)
{
/* An automatic variable with an incomplete type:
that is an error. */
error_with_decl
(
decl
,
"storage size of `%s' isn't known"
);
TREE_TYPE
(
decl
)
=
error_mark_node
;
}
...
...
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