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
e681c5a1
Commit
e681c5a1
authored
Feb 02, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some braces for clarity.
From-SVN: r3414
parent
98e4b835
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
gcc/c-decl.c
+25
-19
No files found.
gcc/c-decl.c
View file @
e681c5a1
...
@@ -3310,10 +3310,12 @@ finish_decl (decl, init, asmspec_tree)
...
@@ -3310,10 +3310,12 @@ finish_decl (decl, init, asmspec_tree)
if
((
DECL_EXTERNAL
(
decl
)
||
TREE_STATIC
(
decl
))
if
((
DECL_EXTERNAL
(
decl
)
||
TREE_STATIC
(
decl
))
&&
DECL_SIZE
(
decl
)
!=
0
)
&&
DECL_SIZE
(
decl
)
!=
0
)
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
==
INTEGER_CST
)
{
constant_expression_warning
(
DECL_SIZE
(
decl
));
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
==
INTEGER_CST
)
else
constant_expression_warning
(
DECL_SIZE
(
decl
));
error_with_decl
(
decl
,
"storage size of `%s' isn't constant"
);
else
error_with_decl
(
decl
,
"storage size of `%s' isn't constant"
);
}
}
}
/* Output the assembler code and/or RTL code for variables and functions,
/* Output the assembler code and/or RTL code for variables and functions,
...
@@ -4901,13 +4903,15 @@ finish_struct (t, fieldlist)
...
@@ -4901,13 +4903,15 @@ finish_struct (t, fieldlist)
if
(
DECL_INITIAL
(
x
))
if
(
DECL_INITIAL
(
x
))
STRIP_NOPS
(
DECL_INITIAL
(
x
));
STRIP_NOPS
(
DECL_INITIAL
(
x
));
if
(
DECL_INITIAL
(
x
))
if
(
DECL_INITIAL
(
x
))
if
(
TREE_CODE
(
DECL_INITIAL
(
x
))
==
INTEGER_CST
)
{
constant_expression_warning
(
DECL_INITIAL
(
x
));
if
(
TREE_CODE
(
DECL_INITIAL
(
x
))
==
INTEGER_CST
)
else
constant_expression_warning
(
DECL_INITIAL
(
x
));
{
else
error_with_decl
(
x
,
"bit-field `%s' width not an integer constant"
);
{
DECL_INITIAL
(
x
)
=
NULL
;
error_with_decl
(
x
,
"bit-field `%s' width not an integer constant"
);
}
DECL_INITIAL
(
x
)
=
NULL
;
}
}
/* Detect invalid bit-field type. */
/* Detect invalid bit-field type. */
if
(
DECL_INITIAL
(
x
)
if
(
DECL_INITIAL
(
x
)
...
@@ -5316,14 +5320,16 @@ build_enumerator (name, value)
...
@@ -5316,14 +5320,16 @@ build_enumerator (name, value)
STRIP_TYPE_NOPS
(
value
);
STRIP_TYPE_NOPS
(
value
);
if
(
value
!=
0
)
if
(
value
!=
0
)
if
(
TREE_CODE
(
value
)
==
INTEGER_CST
)
{
constant_expression_warning
(
value
);
if
(
TREE_CODE
(
value
)
==
INTEGER_CST
)
else
constant_expression_warning
(
value
);
{
else
error
(
"enumerator value for `%s' not integer constant"
,
{
IDENTIFIER_POINTER
(
name
));
error
(
"enumerator value for `%s' not integer constant"
,
value
=
0
;
IDENTIFIER_POINTER
(
name
));
}
value
=
0
;
}
}
/* Default based on previous value. */
/* Default based on previous value. */
/* It should no longer be possible to have NON_LVALUE_EXPR
/* It should no longer be possible to have NON_LVALUE_EXPR
...
...
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