* [patch libstdc++]: Fix PR target/55445 Always defined __SEH__ when build from trunk
@ 2012-11-25 15:42 Kai Tietz
2012-11-28 18:02 ` Kai Tietz
0 siblings, 1 reply; 3+ messages in thread
From: Kai Tietz @ 2012-11-25 15:42 UTC (permalink / raw)
To: GCC Patches; +Cc: libstdc++
Hi,
this patch fixes used exception-mechanism for SEH-enabled targets,
which are requesting for SjLj-exception-mechanism.
See also patch for libgcc.
ChangeLog
2012-11-25 Kai Tietz
PR target/55445
* libsupc++/eh_personaltity.cc (__SEH__): Additional check
for not being SjLj.
Tested for multilib i686-w64-mingw32, and x86_64-w64-mingw32 targets.
Ok for apply?
Regards,
Kai
Index: eh_personality.cc
===================================================================
--- eh_personality.cc (Revision 193669)
+++ eh_personality.cc (Arbeitskopie)
@@ -332,13 +332,13 @@
#ifdef _GLIBCXX_SJLJ_EXCEPTIONS
#define PERSONALITY_FUNCTION __gxx_personality_sj0
#define __builtin_eh_return_data_regno(x) x
-#elif defined(__SEH__)
+#elif defined(__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
#define PERSONALITY_FUNCTION __gxx_personality_imp
#else
#define PERSONALITY_FUNCTION __gxx_personality_v0
#endif
-#ifdef __SEH__
+#if defined (__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
static
#else
extern "C"
@@ -785,7 +785,7 @@
}
#endif
-#ifdef __SEH__
+#if defined (__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
extern "C"
EXCEPTION_DISPOSITION
__gxx_personality_seh0 (PEXCEPTION_RECORD ms_exc, void *this_frame,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch libstdc++]: Fix PR target/55445 Always defined __SEH__ when build from trunk
2012-11-25 15:42 [patch libstdc++]: Fix PR target/55445 Always defined __SEH__ when build from trunk Kai Tietz
@ 2012-11-28 18:02 ` Kai Tietz
2012-11-28 18:54 ` Paolo Carlini
0 siblings, 1 reply; 3+ messages in thread
From: Kai Tietz @ 2012-11-28 18:02 UTC (permalink / raw)
To: GCC Patches; +Cc: libstdc++
Ping
2012/11/25 Kai Tietz <ktietz70@googlemail.com>:
> Hi,
>
> this patch fixes used exception-mechanism for SEH-enabled targets,
> which are requesting for SjLj-exception-mechanism.
> See also patch for libgcc.
>
> ChangeLog
>
> 2012-11-25 Kai Tietz
>
> PR target/55445
> * libsupc++/eh_personaltity.cc (__SEH__): Additional check
> for not being SjLj.
>
> Tested for multilib i686-w64-mingw32, and x86_64-w64-mingw32 targets.
> Ok for apply?
>
> Regards,
> Kai
>
> Index: eh_personality.cc
> ===================================================================
> --- eh_personality.cc (Revision 193669)
> +++ eh_personality.cc (Arbeitskopie)
> @@ -332,13 +332,13 @@
> #ifdef _GLIBCXX_SJLJ_EXCEPTIONS
> #define PERSONALITY_FUNCTION __gxx_personality_sj0
> #define __builtin_eh_return_data_regno(x) x
> -#elif defined(__SEH__)
> +#elif defined(__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
> #define PERSONALITY_FUNCTION __gxx_personality_imp
> #else
> #define PERSONALITY_FUNCTION __gxx_personality_v0
> #endif
>
> -#ifdef __SEH__
> +#if defined (__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
> static
> #else
> extern "C"
> @@ -785,7 +785,7 @@
> }
> #endif
>
> -#ifdef __SEH__
> +#if defined (__SEH__) && !defined (_GLIBCXX_SJLJ_EXCEPTIONS)
> extern "C"
> EXCEPTION_DISPOSITION
> __gxx_personality_seh0 (PEXCEPTION_RECORD ms_exc, void *this_frame,
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch libstdc++]: Fix PR target/55445 Always defined __SEH__ when build from trunk
2012-11-28 18:02 ` Kai Tietz
@ 2012-11-28 18:54 ` Paolo Carlini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Carlini @ 2012-11-28 18:54 UTC (permalink / raw)
To: Kai Tietz; +Cc: GCC Patches, libstdc++
On 11/28/2012 07:02 PM, Kai Tietz wrote:
> Ping
>
> 2012/11/25 Kai Tietz <ktietz70@googlemail.com>:
>> Hi,
>>
>> this patch fixes used exception-mechanism for SEH-enabled targets,
>> which are requesting for SjLj-exception-mechanism.
>> See also patch for libgcc.
>>
>> ChangeLog
>>
>> 2012-11-25 Kai Tietz
>>
>> PR target/55445
>> * libsupc++/eh_personaltity.cc (__SEH__): Additional check
>> for not being SjLj.
>>
>> Tested for multilib i686-w64-mingw32, and x86_64-w64-mingw32 targets.
>> Ok for apply?
These libstdc++ bits are of course also Ok.
Thanks,
Paolo.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-28 18:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-25 15:42 [patch libstdc++]: Fix PR target/55445 Always defined __SEH__ when build from trunk Kai Tietz
2012-11-28 18:02 ` Kai Tietz
2012-11-28 18:54 ` Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).