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
506711af
Commit
506711af
authored
Jul 14, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(assemble_variable): If low part of size doesn't fit in an int,
variable is too large. From-SVN: r14428
parent
9ddca353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
gcc/varasm.c
+5
-1
No files found.
gcc/varasm.c
View file @
506711af
...
@@ -1272,6 +1272,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
...
@@ -1272,6 +1272,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
if
(
!
dont_output_data
)
if
(
!
dont_output_data
)
{
{
int
size
;
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
!=
INTEGER_CST
)
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
!=
INTEGER_CST
)
goto
finish
;
goto
finish
;
...
@@ -1279,7 +1281,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
...
@@ -1279,7 +1281,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
size_tree
=
size_binop
(
CEIL_DIV_EXPR
,
size_tree
=
size_binop
(
CEIL_DIV_EXPR
,
DECL_SIZE
(
decl
),
size_int
(
BITS_PER_UNIT
));
DECL_SIZE
(
decl
),
size_int
(
BITS_PER_UNIT
));
if
(
TREE_INT_CST_HIGH
(
size_tree
)
!=
0
)
size
=
TREE_INT_CST_LOW
(
size_tree
);
if
(
TREE_INT_CST_HIGH
(
size_tree
)
!=
0
||
size
!=
TREE_INT_CST_LOW
(
size_tree
))
{
{
error_with_decl
(
decl
,
"size of variable `%s' is too large"
);
error_with_decl
(
decl
,
"size of variable `%s' is too large"
);
goto
finish
;
goto
finish
;
...
...
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