diff options
author | Geert Bosch <bosch@gcc.gnu.org> | 2001-10-29 18:45:03 +0100 |
---|---|---|
committer | Geert Bosch <bosch@gcc.gnu.org> | 2001-10-29 18:45:03 +0100 |
commit | 4565903525842e90c4fc5df51cc5dfa3cebfafbe (patch) | |
tree | 84e043479e91b33e543375c19186765d10a6238d /gcc/ada/init.c | |
parent | 4b77bfab08b2154873311f36bd3e3f1fd37944c1 (diff) | |
download | gcc-4565903525842e90c4fc5df51cc5dfa3cebfafbe.zip gcc-4565903525842e90c4fc5df51cc5dfa3cebfafbe.tar.gz gcc-4565903525842e90c4fc5df51cc5dfa3cebfafbe.tar.bz2 |
* init.c:
(Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
const.
(_gnat_error_handler): Make MSG const.
* sysdep.c: Fix localtime_r problem on LynxOS.
Also remove #elif to avoid warnings.
* misc.c (yyparse): Don't set up and register jmpbuf; remove decls
used by this.
* decl.c (annotate_value): Make SIZE unsigned to avoid warning.
From-SVN: r46609
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r-- | gcc/ada/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c index d20c9cb..1c8f4c7 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -4,7 +4,7 @@ * * * I N I T * * * - * $Revision: 1.2 $ + * $Revision$ * * * C Implementation File * * * @@ -86,12 +86,12 @@ extern int (*Check_Abort_Status) PARAMS ((void)); #define Raise_From_Signal_Handler \ ada__exceptions__raise_from_signal_handler extern void Raise_From_Signal_Handler PARAMS ((struct Exception_Data *, - char *)); + const char *)); #define Propagate_Signal_Exception \ __gnat_propagate_sig_exc extern void Propagate_Signal_Exception - PARAMS ((struct Machine_State *, struct Exception_Data *, char *)); + PARAMS ((struct Machine_State *, struct Exception_Data *, const char *)); /* Copies of global values computed by the binder */ @@ -226,7 +226,7 @@ __gnat_error_handler (sig) int sig; { struct Exception_Data *exception; - char *msg; + const char *msg; switch (sig) { @@ -557,7 +557,7 @@ __gnat_error_handler (sig) int sig; { struct Exception_Data *exception; - char *msg; + const char *msg; static int recurse = 0; struct sigcontext *info |