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
2b8235ea
Commit
2b8235ea
authored
May 23, 2019
by
Eric Botcazou
Committed by
Eric Botcazou
May 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
From-SVN: r271549
parent
832ece86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
gcc/c-family/ChangeLog
+4
-0
gcc/c-family/c-ada-spec.c
+3
-1
No files found.
gcc/c-family/ChangeLog
View file @
2b8235ea
2019
-
05
-
23
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
c
-
ada
-
spec
.
c
(
compare_node
):
Compare
the
DECL_UIDs
as
a
last
resort
.
2019
-
05
-
22
Martin
Liska
<
mliska
@
suse
.
cz
>
PR
lto
/
90500
...
...
gcc/c-family/c-ada-spec.c
View file @
2b8235ea
...
...
@@ -679,8 +679,10 @@ compare_node (const void *lp, const void *rp)
{
const_tree
lhs
=
*
((
const
tree
*
)
lp
);
const_tree
rhs
=
*
((
const
tree
*
)
rp
);
const
int
ret
=
compare_location
(
decl_sloc
(
lhs
,
true
),
decl_sloc
(
rhs
,
true
));
return
compare_location
(
decl_sloc
(
lhs
,
true
),
decl_sloc
(
rhs
,
true
)
);
return
ret
?
ret
:
DECL_UID
(
lhs
)
-
DECL_UID
(
rhs
);
}
/* Compare two comments (LP and RP) by their source location. */
...
...
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