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
cd64be5b
Commit
cd64be5b
authored
Jun 23, 2016
by
Eric Botcazou
Committed by
Eric Botcazou
Jun 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
From-SVN: r237734
parent
277d7ee0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/ChangeLog
+4
-0
gcc/tree-inline.c
+14
-1
No files found.
gcc/ChangeLog
View file @
cd64be5b
2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
* tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2016-06-23 Andi Kleen <ak@linux.intel.com>
* Makefile.in: Regenerate.
...
...
gcc/tree-inline.c
View file @
cd64be5b
...
...
@@ -367,7 +367,20 @@ remap_decl (tree decl, copy_body_data *id)
/* Remap types, if necessary. */
TREE_TYPE
(
t
)
=
remap_type
(
TREE_TYPE
(
t
),
id
);
if
(
TREE_CODE
(
t
)
==
TYPE_DECL
)
DECL_ORIGINAL_TYPE
(
t
)
=
remap_type
(
DECL_ORIGINAL_TYPE
(
t
),
id
);
{
DECL_ORIGINAL_TYPE
(
t
)
=
remap_type
(
DECL_ORIGINAL_TYPE
(
t
),
id
);
/* Preserve the invariant that DECL_ORIGINAL_TYPE != TREE_TYPE,
which is enforced in gen_typedef_die when DECL_ABSTRACT_ORIGIN
is not set on the TYPE_DECL, for example in LTO mode. */
if
(
DECL_ORIGINAL_TYPE
(
t
)
==
TREE_TYPE
(
t
))
{
tree
x
=
build_variant_type_copy
(
TREE_TYPE
(
t
));
TYPE_STUB_DECL
(
x
)
=
TYPE_STUB_DECL
(
TREE_TYPE
(
t
));
TYPE_NAME
(
x
)
=
t
;
DECL_ORIGINAL_TYPE
(
t
)
=
x
;
}
}
/* Remap sizes as necessary. */
walk_tree
(
&
DECL_SIZE
(
t
),
copy_tree_body_r
,
id
,
NULL
);
...
...
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