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
bff4b641
Commit
bff4b641
authored
Oct 21, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(push_float_handler, pop_float_handler): New functions.
From-SVN: r2543
parent
210d97af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/toplev.c
+30
-0
No files found.
gcc/toplev.c
View file @
bff4b641
...
@@ -1360,6 +1360,36 @@ set_float_handler (handler)
...
@@ -1360,6 +1360,36 @@ set_float_handler (handler)
bcopy
(
handler
,
float_handler
,
sizeof
(
float_handler
));
bcopy
(
handler
,
float_handler
,
sizeof
(
float_handler
));
}
}
/* Specify, in HANDLER, where to longjmp to when a floating arithmetic
error happens, pushing the previous specification into OLD_HANDLER.
Return an indication of whether there was a previous handler in effect. */
int
push_float_handler
(
handler
,
old_handler
)
jmp_buf
handler
;
{
int
was_handled
=
float_handled
;
float_handled
=
1
;
if
(
was_handled
)
bcopy
(
float_handler
,
old_handler
,
sizeof
(
float_handler
));
bcopy
(
handler
,
float_handler
,
sizeof
(
float_handler
));
return
was_handled
;
}
/* Restore the previous specification of whether and where to longjmp to
when a floating arithmetic error happens. */
void
pop_float_handler
(
handled
,
handler
)
int
handled
;
jmp_buf
handler
;
{
float_handled
=
handled
;
if
(
handled
)
bcopy
(
handler
,
float_handler
,
sizeof
(
float_handler
));
}
/* Signals actually come here. */
/* Signals actually come here. */
static
void
static
void
...
...
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