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?

I haven't yet requested commit authority, so I would appreciate someone
committing this for me if you agree with the change.

Thanks!
Bill

-- 
Bill Schmidt, Ph.D.
IBM Advance Toolchain for PowerLinux
IBM Linux Technology Center
[email protected]
[email protected]





Index: test/CodeGenObjC/2008-10-3-EhValue.m
===================================================================
--- test/CodeGenObjC/2008-10-3-EhValue.m	(revision 162672)
+++ test/CodeGenObjC/2008-10-3-EhValue.m	(working copy)
@@ -1,4 +1,4 @@
-// RUN: %clang -fexceptions -S -emit-llvm  %s -o /dev/null
+// RUN: %clang -fobjc-exceptions -S -emit-llvm  %s -o /dev/null
 
 @interface Object {
 @public
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to