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
c0727e2a
Commit
c0727e2a
authored
Sep 17, 1997
by
Jason Merrill
Committed by
Jason Merrill
Sep 16, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* libgcc2.c (find_exception_handler): Not found is -1.
From-SVN: r15504
parent
5ae9a80a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
gcc/ChangeLog
+2
-0
gcc/libgcc2.c
+4
-4
No files found.
gcc/ChangeLog
View file @
c0727e2a
Tue Sep 16 14:22:36 1997 Jason Merrill <jason@yorick.cygnus.com>
* libgcc2.c (find_exception_handler): Not found is -1.
* integrate.c (expand_inline_function): Move expand_start_bindings
after expanding the arguments.
...
...
gcc/libgcc2.c
View file @
c0727e2a
...
...
@@ -3335,7 +3335,7 @@ find_exception_handler (void *pc, exception_table *table)
if
(
table
)
{
int
pos
;
int
best
=
0
;
int
best
=
-
1
;
/* We can't do a binary search because the table isn't guaranteed
to be sorted from function to function. */
...
...
@@ -3345,15 +3345,15 @@ find_exception_handler (void *pc, exception_table *table)
{
/* This can apply. Make sure it is at least as small as
the previous best. */
if
(
best
==
0
||
(
table
[
pos
].
end
<=
table
[
best
].
end
&&
table
[
pos
].
start
>=
table
[
best
].
start
))
if
(
best
==
-
1
||
(
table
[
pos
].
end
<=
table
[
best
].
end
&&
table
[
pos
].
start
>=
table
[
best
].
start
))
best
=
pos
;
}
/* But it is sorted by starting PC within a function. */
else
if
(
best
&&
table
[
pos
].
start
>
pc
)
break
;
}
if
(
best
!=
0
)
if
(
best
!=
-
1
)
return
table
[
best
].
exception_handler
;
}
...
...
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