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
49b08aba
Commit
49b08aba
authored
Dec 15, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(copy_node): Handle length of INTEGER_CST like make_node.
From-SVN: r6241
parent
c11ffdbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
gcc/tree.c
+11
-3
No files found.
gcc/tree.c
View file @
49b08aba
...
@@ -1011,9 +1011,17 @@ copy_node (node)
...
@@ -1011,9 +1011,17 @@ copy_node (node)
break
;
break
;
case
'c'
:
/* a constant */
case
'c'
:
/* a constant */
/* We can't use tree_code_length for this, since the number of words
/* We can't use tree_code_length for INTEGER_CST, since the number of
is machine-dependent due to varying alignment of `double'. */
words is machine-dependent due to varying length of HOST_WIDE_INT,
if
(
code
==
REAL_CST
)
which might be wider than a pointer (e.g., long long). Similarly
for REAL_CST, since the number of words is machine-dependent due
to varying size and alignment of `double'. */
if
(
code
==
INTEGER_CST
)
{
length
=
sizeof
(
struct
tree_int_cst
);
break
;
}
else
if
(
code
==
REAL_CST
)
{
{
length
=
sizeof
(
struct
tree_real_cst
);
length
=
sizeof
(
struct
tree_real_cst
);
break
;
break
;
...
...
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