diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-04-27 12:49:37 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-04-27 12:49:37 +0200 |
commit | f2c9e65ac590ba889a92e83d27869f4c8472b316 (patch) | |
tree | 6e6eb891c379af7ef0a0d22a61df9c3c339df288 /gcc/ada/utils.c | |
parent | 4b763d779cd3cc674a476fa5a9c21e7481c309fd (diff) | |
download | gcc-f2c9e65ac590ba889a92e83d27869f4c8472b316.zip gcc-f2c9e65ac590ba889a92e83d27869f4c8472b316.tar.gz gcc-f2c9e65ac590ba889a92e83d27869f4c8472b316.tar.bz2 |
[multiple changes]
2004-04-27 Ed Schonberg <schonberg@gnat.com>
* a-wtmoio.ads: Formal type must be a modular type, not a signed
integer type.
2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* decl.c (gnat_to_gnu_entity, case object): Call
__builtin_update_setjmp_buf.
* gigi.h (update_setjmp_buf): Deleted.
(ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
* misc.c: (update_setjmp_buf): Deleted.
* trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
around block of RTL.
* utils.c (init_gigi_decls): Initialize update_setjmp_buf.
From-SVN: r81218
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r-- | gcc/ada/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index 8c25f48..01be160 100644 --- a/gcc/ada/utils.c +++ b/gcc/ada/utils.c @@ -688,6 +688,18 @@ init_gigi_decls (tree long_long_float_type, tree exception_type) DECL_BUILT_IN_CLASS (setjmp_decl) = BUILT_IN_NORMAL; DECL_FUNCTION_CODE (setjmp_decl) = BUILT_IN_SETJMP; + /* update_setjmp_buf updates a setjmp buffer from the current stack pointer + address. */ + update_setjmp_buf_decl + = create_subprog_decl + (get_identifier ("__builtin_update_setjmp_buf"), NULL_TREE, + build_function_type (void_type_node, + tree_cons (NULL_TREE, jmpbuf_ptr_type, endlink)), + NULL_TREE, 0, 1, 1, 0); + + DECL_BUILT_IN_CLASS (update_setjmp_buf_decl) = BUILT_IN_NORMAL; + DECL_FUNCTION_CODE (update_setjmp_buf_decl) = BUILT_IN_UPDATE_SETJMP_BUF; + main_identifier_node = get_identifier ("main"); } |