aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/misc.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2005-02-10 14:54:45 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2005-02-10 14:54:45 +0100
commit5f57ad31792778dd585481c39f0deffef3aaa0a5 (patch)
tree260cb614852d6263229864541810297807d70342 /gcc/ada/misc.c
parent16e845ef3dcb66829c8b5f086164cc7540093a73 (diff)
downloadgcc-5f57ad31792778dd585481c39f0deffef3aaa0a5.zip
gcc-5f57ad31792778dd585481c39f0deffef3aaa0a5.tar.gz
gcc-5f57ad31792778dd585481c39f0deffef3aaa0a5.tar.bz2
init.c (__gnat_initialize): Add a new parameter eh which contains the address of the exception registration.
* init.c (__gnat_initialize): Add a new parameter eh which contains the address of the exception registration. The Win32 version of this routine calls __gnat_install_SEH_handler() to initialize the SEH (Structured Exception Handling) handler. (__gnat_error_handler) [Win32]: Removed. Not needed as we use SEH (Structured Exception Handling) now. (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH. (__gnat_initialize for ppc-vxworks): Adjust comments and the preprocessor condition protecting the call to the extra eh setup subprogram, which is only available for the ppc target. (__gnat_clear_exception_count): replaced reference to variable taskIdCurrent by call to taskIdSelf(), cleaner. * seh_init.c: New file. * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o. (GNATBIND_OBJS): Idem. * misc.c (gnat_parse_file): Update call to __gnat_initialize. This routine takes a new parameter (a pointer to the exception registration for the SEH (Structured Exception Handling) support. * raise.h: (__gnat_install_SEH_handler): New prototype. Update copyright notice. * s-tassta.adb (Task_Wrapper): Declare the exception registration record and initialize it by calling __gnat_install_SEH_handler. From-SVN: r94816
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r--gcc/ada/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index 8c44421..e63277d 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2004 Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2005, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -217,7 +217,7 @@ extern char **gnat_argv;
/* Declare functions we use as part of startup. */
-extern void __gnat_initialize (void);
+extern void __gnat_initialize (void *);
extern void adainit (void);
extern void _ada_gnat1drv (void);
@@ -227,7 +227,7 @@ static void
gnat_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
{
/* call the target specific initializations */
- __gnat_initialize();
+ __gnat_initialize (NULL);
/* Call the front-end elaboration procedures */
adainit ();