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
27a36778
Commit
27a36778
authored
Apr 23, 1997
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add setjmp/longjmp exception handling.
From-SVN: r13969
parent
e976b8b2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
gcc/config/pa/pa.h
+3
-0
gcc/config/sparc/sparc.h
+3
-0
gcc/except.c
+0
-0
gcc/optabs.c
+17
-0
No files found.
gcc/config/pa/pa.h
View file @
27a36778
...
@@ -2388,3 +2388,6 @@ do { \
...
@@ -2388,3 +2388,6 @@ do { \
/* The privilege level is in the two low order bits, mask em out \
/* The privilege level is in the two low order bits, mask em out \
of the return address. */
\
of the return address. */
\
(GEN_INT (0xfffffffc))
(GEN_INT (0xfffffffc))
/* The number of Pmode words for the setjmp buffer. */
#define JMP_BUF_SIZE 50
gcc/config/sparc/sparc.h
View file @
27a36778
...
@@ -3089,6 +3089,9 @@ do { \
...
@@ -3089,6 +3089,9 @@ do { \
} \
} \
}
}
/* The number of Pmode words for the setjmp buffer. */
#define JMP_BUF_SIZE 12
/* Declare functions defined in sparc.c and used in templates. */
/* Declare functions defined in sparc.c and used in templates. */
extern
char
*
singlemove_string
();
extern
char
*
singlemove_string
();
...
...
gcc/except.c
View file @
27a36778
This diff is collapsed.
Click to expand it.
gcc/optabs.c
View file @
27a36778
...
@@ -119,6 +119,12 @@ rtx memset_libfunc;
...
@@ -119,6 +119,12 @@ rtx memset_libfunc;
rtx
bzero_libfunc
;
rtx
bzero_libfunc
;
rtx
throw_libfunc
;
rtx
throw_libfunc
;
rtx
sjthrow_libfunc
;
rtx
sjpopnthrow_libfunc
;
rtx
terminate_libfunc
;
rtx
setjmp_libfunc
;
rtx
longjmp_libfunc
;
rtx
get_dynamic_handler_chain_libfunc
;
rtx
eqhf2_libfunc
;
rtx
eqhf2_libfunc
;
rtx
nehf2_libfunc
;
rtx
nehf2_libfunc
;
...
@@ -4268,6 +4274,17 @@ init_optabs ()
...
@@ -4268,6 +4274,17 @@ init_optabs ()
bzero_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"bzero"
);
bzero_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"bzero"
);
throw_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__throw"
);
throw_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__throw"
);
sjthrow_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__sjthrow"
);
sjpopnthrow_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__sjpopnthrow"
);
terminate_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__terminate"
);
#ifdef USE_BUILTIN_SETJMP
setjmp_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__builtin_setjmp"
);
longjmp_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__builtin_longjmp"
);
#else
setjmp_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"setjmp"
);
longjmp_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"longjmp"
);
#endif
get_dynamic_handler_chain_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__get_dynamic_handler_chain"
);
eqhf2_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__eqhf2"
);
eqhf2_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__eqhf2"
);
nehf2_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__nehf2"
);
nehf2_libfunc
=
gen_rtx
(
SYMBOL_REF
,
Pmode
,
"__nehf2"
);
...
...
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