Commit 0a7fa29f by Cesar Strauss Committed by Eric Botcazou

re PR ada/52123 (gcc bootstrap with ada fails on mingw target)

	PR ada/52123
	* seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
	(__gnat_SEH_error_handler): Likewise.  Remove final return.

From-SVN: r196536
parent 84ea618a
2013-03-08 Cesar Strauss <cestrauss@gmail.com>
PR ada/52123
* seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
(__gnat_SEH_error_handler): Likewise. Remove final return.
2013-03-06 Eric Botcazou <ebotcazou@adacore.com> 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * C Implementation File *
* * * *
* Copyright (C) 2005-2012, Free Software Foundation, Inc. * * Copyright (C) 2005-2013, Free Software Foundation, Inc. *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * 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- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -60,7 +60,8 @@ extern struct Exception_Data _abort_signal; ...@@ -60,7 +60,8 @@ extern struct Exception_Data _abort_signal;
#define Raise_From_Signal_Handler \ #define Raise_From_Signal_Handler \
ada__exceptions__raise_from_signal_handler ada__exceptions__raise_from_signal_handler
extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *); extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *)
ATTRIBUTE_NORETURN;
#if defined (_WIN32) #if defined (_WIN32)
...@@ -72,7 +73,7 @@ extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *); ...@@ -72,7 +73,7 @@ extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *);
extern void _global_unwind2 (void *); extern void _global_unwind2 (void *);
EXCEPTION_DISPOSITION __gnat_SEH_error_handler EXCEPTION_DISPOSITION __gnat_SEH_error_handler
(struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*); (struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*) ATTRIBUTE_NORETURN;
struct Exception_Data * struct Exception_Data *
__gnat_map_SEH (EXCEPTION_RECORD* ExceptionRecord, const char **msg); __gnat_map_SEH (EXCEPTION_RECORD* ExceptionRecord, const char **msg);
...@@ -198,7 +199,6 @@ __gnat_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord, ...@@ -198,7 +199,6 @@ __gnat_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord,
#endif #endif
Raise_From_Signal_Handler (exception, msg); Raise_From_Signal_Handler (exception, msg);
return 0; /* This is never reached, avoid compiler warning */
} }
#endif /* !(defined (_WIN64) && defined (__SEH__)) */ #endif /* !(defined (_WIN64) && defined (__SEH__)) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment