aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/seh_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/seh_init.c')
-rw-r--r--gcc/ada/seh_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/seh_init.c b/gcc/ada/seh_init.c
index 89c9ea4..fa5310f 100644
--- a/gcc/ada/seh_init.c
+++ b/gcc/ada/seh_init.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 2005-2011, Free Software Foundation, Inc. *
+ * Copyright (C) 2005-2012, 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- *
@@ -219,6 +219,9 @@ __gnat_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord,
the loaded DLL (for example it results in unexpected behaviors in the
Win32 subsystem. */
+#ifndef __SEH__
+ /* Don't use this trick when SEH are emitted by gcc, as it will conflict with
+ them. */
asm
(
" .section .rdata, \"dr\"\n"
@@ -238,6 +241,7 @@ asm
"\n"
" .text\n"
);
+#endif /* __SEH__ */
void __gnat_install_SEH_handler (void *eh ATTRIBUTE_UNUSED)
{