Closed Bug 1022050 Opened 10 years ago Closed 10 years ago

Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support

Categories

(Core :: MFBT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → ehsan
Blocks: winclang
Attachment #8436195 - Flags: review?(nfroyd)
Comment on attachment 8436195 [details] [diff] [review]
Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support

This should be
#if defined(_MSC_VER) && !(defined(_HAS_EXCEPTIONS) && _HAS_EXCEPTIONS == 0)

That matches what standard library does and will automatically enable itself once clang gets support for exceptions
Attachment #8436195 - Flags: review?(nfroyd) → review-
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2)
> Comment on attachment 8436195 [details] [diff] [review]
> Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows
> SEH support
> 
> This should be
> #if defined(_MSC_VER) && !(defined(_HAS_EXCEPTIONS) && _HAS_EXCEPTIONS == 0)
> 
> That matches what standard library does and will automatically enable itself
> once clang gets support for exceptions

Except we explicitly set _HAS_EXCEPTIONS=0, so it would never enable itself, and would in fact also be disabled in msvc.
Comment on attachment 8436195 [details] [diff] [review]
Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support

glandium is right.  Jeff, my plan is to periodically look at the __clang__ occurrences in the tree and take care of them.
Attachment #8436195 - Flags: review- → review?(nfroyd)
Comment on attachment 8436195 [details] [diff] [review]
Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support

Review of attachment 8436195 [details] [diff] [review]:
-----------------------------------------------------------------

::: mfbt/tests/TestPoisonArea.cpp
@@ +406,5 @@
>    } __except (EXCEPTION_EXECUTE_HANDLER) {
>      ret = true;
>    }
>  #else
>    printf("INFO | exec test not supported on MinGW build\n");

Can you modify this, too?
Attachment #8436195 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/a0b0886c3ed1
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: