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
9574af76
Commit
9574af76
authored
Apr 18, 2019
by
Jakub Jelinek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted unintended part of previous commit.
From-SVN: r270439
parent
ff146a59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
36 deletions
+2
-36
gcc/c/c-decl.c
+1
-18
gcc/cp/decl.c
+1
-18
No files found.
gcc/c/c-decl.c
View file @
9574af76
...
@@ -2513,24 +2513,7 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
...
@@ -2513,24 +2513,7 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
{
{
tree
remove
=
TREE_TYPE
(
newdecl
);
tree
remove
=
TREE_TYPE
(
newdecl
);
if
(
TYPE_MAIN_VARIANT
(
remove
)
==
remove
)
if
(
TYPE_MAIN_VARIANT
(
remove
)
==
remove
)
{
gcc_assert
(
TYPE_NEXT_VARIANT
(
remove
)
==
NULL_TREE
);
gcc_assert
(
TYPE_NEXT_VARIANT
(
remove
)
==
NULL_TREE
);
/* If remove is the main variant, no need to remove that
from the list. One of the DECL_ORIGINAL_TYPE
variants, e.g. created for aligned attribute, might still
refer to the newdecl TYPE_DECL though, so remove that one
in that case. */
if
(
DECL_ORIGINAL_TYPE
(
newdecl
)
&&
DECL_ORIGINAL_TYPE
(
newdecl
)
!=
remove
)
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
DECL_ORIGINAL_TYPE
(
newdecl
));
;
t
=
TYPE_MAIN_VARIANT
(
t
))
if
(
TYPE_NAME
(
TYPE_NEXT_VARIANT
(
t
))
==
newdecl
)
{
TYPE_NEXT_VARIANT
(
t
)
=
TYPE_NEXT_VARIANT
(
TYPE_NEXT_VARIANT
(
t
));
break
;
}
}
else
else
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
remove
);
;
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
remove
);
;
t
=
TYPE_NEXT_VARIANT
(
t
))
t
=
TYPE_NEXT_VARIANT
(
t
))
...
...
gcc/cp/decl.c
View file @
9574af76
...
@@ -2133,24 +2133,7 @@ next_arg:;
...
@@ -2133,24 +2133,7 @@ next_arg:;
{
{
tree
remove
=
TREE_TYPE
(
newdecl
);
tree
remove
=
TREE_TYPE
(
newdecl
);
if
(
TYPE_MAIN_VARIANT
(
remove
)
==
remove
)
if
(
TYPE_MAIN_VARIANT
(
remove
)
==
remove
)
{
gcc_assert
(
TYPE_NEXT_VARIANT
(
remove
)
==
NULL_TREE
);
gcc_assert
(
TYPE_NEXT_VARIANT
(
remove
)
==
NULL_TREE
);
/* If remove is the main variant, no need to remove that
from the list. One of the DECL_ORIGINAL_TYPE
variants, e.g. created for aligned attribute, might still
refer to the newdecl TYPE_DECL though, so remove that one
in that case. */
if
(
tree
orig
=
DECL_ORIGINAL_TYPE
(
newdecl
))
if
(
orig
!=
remove
)
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
orig
);
;
t
=
TYPE_MAIN_VARIANT
(
t
))
if
(
TYPE_NAME
(
TYPE_NEXT_VARIANT
(
t
))
==
newdecl
)
{
TYPE_NEXT_VARIANT
(
t
)
=
TYPE_NEXT_VARIANT
(
TYPE_NEXT_VARIANT
(
t
));
break
;
}
}
else
else
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
remove
);
;
for
(
tree
t
=
TYPE_MAIN_VARIANT
(
remove
);
;
t
=
TYPE_NEXT_VARIANT
(
t
))
t
=
TYPE_NEXT_VARIANT
(
t
))
...
...
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