[cfe-commits] PATCH: test/CodeGenObjC/2008-10-3-EhValue.m

William J. Schmidt wschmidt at linux.vnet.ibm.com
Mon Aug 27 12:10:26 PDT 2012


On Aug 27, 2012, at 12:30 PM, John McCall wrote:
>On Aug 27, 2012, at 8:03 AM, William J. Schmidt wrote:
>> This test fails as written on powerpc64-unknown-linux-gnu, as
follows:
>> 
>>   Block containing LandingPadInst must be jumped to only by the
unwind edge of an invoke.
>>   %5 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)*
@__gnu_objc_personality_v0 to i8*)
>> 
>>       catch i8* getelementptr inbounds ([5 x i8]* @.class_name, i64
0, i64 0)
>>       catch i8* null
>> 
>>   Broken module found, compilation aborted!
>> 
>> However, if I change the test case to use Objective-C exceptions
instead
>> of -fexceptions, the test passes.  I'm new here, but it seems to me
to
>> be a mis-specified test case.  Proposing the attached change.  Is
this
>> ok, or am I missing something?
>
>It looks like it should be passing -fexceptions -fobjc-exceptions.
>Does that work for you?
>
>John.

Yes, indeed, that works as well.

Thanks,
Bill

-- 
Bill Schmidt, Ph.D.
IBM Advance Toolchain for PowerLinux
IBM Linux Technology Center
wschmidt at us.ibm.com
wschmidt at linux.vnet.ibm.com









More information about the cfe-commits mailing list