[llvm-commits] [llvm-gcc-4.2] r54182 - in /llvm-gcc-4.2/trunk/gcc/testsuite: bugs/powerpc/ g++.apple/ g++.dg/eh/ g++.dg/ext/ g++.dg/gomp/ g++.dg/inherit/ g++.dg/init/ g++.dg/template/ gcc.apple/ gcc.c-torture/execute/ gcc.c-torture/execute/ieee/ gcc.dg/ gcc.dg/gomp/ gcc.dg/pch/ gcc.dg/tree-ssa/ gcc.dg/vect/ gcc.dg/vmx/ gcc.target/arm/ gcc.target/i386/ gcc.target/powerpc/ gfortran.dg/ lib/ obj-c++.dg/ objc.dg/ objc/execute/
Bill Wendling
isanbard at gmail.com
Tue Jul 29 16:46:20 PDT 2008
Author: void
Date: Tue Jul 29 18:46:19 2008
New Revision: 54182
URL: http://llvm.org/viewvc/llvm-project?rev=54182&view=rev
Log:
Merge changes from the Apple GCC 4.2 testsuite
Added:
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/complex2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/interface4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/gomp/pr31748.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/covariant15.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/virtual4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/new21.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/ptrmem4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/overload9.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/static30.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4641942.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/qnan-eq-inf.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr32500.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/gomp/pr32468-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pr32450.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/pr31966.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/arm/stack-corruption.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pr32389.c
llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/fmt_p_1.f90
llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/pr32533.f90
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/disambiguate-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-5.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-2.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-aggr-assign-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-instanceSizeStart-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-5.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-2.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-setter-name.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-assign-ivar-2.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2.c
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/gcc.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/libstdc++-v3.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/eh/table.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5814283.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/apple-altivec-abi-test.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pragma-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/uninit-test-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/zerofill-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/arm-mmx-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-weakref-1-darwin.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-no-ms-layout.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/darwin-version-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/framework-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pch/pch.exp
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/trampoline-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/vect-70.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/powerpc/rotate.c
llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-cfstring-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-10.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-11.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-9.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs-warn-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-3.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/message-metadata-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/method-11.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-copy-3.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-neg-ivar-check-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/no-offsetof-warn.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-bycopy-return-warn-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-section-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-instantiate-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-passby-ref-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-visibility-hidden-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-13.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/template-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-3.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-5.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10-64bit.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11-64bit.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-13.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9-64bit.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs-warn-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-7.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-8.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/format-arg-attribute-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/image-info.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/message-metadata-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-4.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-copy-3.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-ivar-check-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1-64bit.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-bycopy-return-warn-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-section-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-visibility-hidden-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-4.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/stret-2.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1-64bit.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/try-catch-15.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/type-stream-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/zero-link-2.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string1.x
llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string2.x
llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string3.x
llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string4.x
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g%2B%2B.xfail?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail Tue Jul 29 18:46:19 2008
@@ -12,14 +12,5 @@
###------------------------------------------------------------------
4531667: g++.dg/bitreverse-23.C execution test
#
-# The following tests fail only when the c++ suite is run through Obj-C++.
-#
-# The following tests fail only when the c++ suite is run with -m64
-#
-# The following tests fail only when the c++ suite is run on ppc with -m64
-#
-# The following tests fail only when the c++ suite is run on x86
-#
-# The following tests fail only when the c++ suite is run on G5 with -m64
-#
-# The following tests fail only when the c++ suite is run on x86 with -m64
+# The following tests fail only when the c++ suite is run with -mcpu=G5
+5822514: g++.dg/altivec-8.C execution test
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/gcc.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/gcc.xfail?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/gcc.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/gcc.xfail Tue Jul 29 18:46:19 2008
@@ -11,6 +11,7 @@
###
###------------------------------------------------------------------
5066141: gcc.dg/pr30643.c scan-assembler-not undefined
+5951276: gcc.target/i386/20020616-1.c execution test
#
# ppc only
3906375: gcc.dg/debug/debug-1.c -gstabs -fast scan-assembler xyzzy
@@ -74,12 +75,6 @@
5275911: gcc.dg/invalid-call-1.c non-compatible type (test for warnings, line 18)
0000000: compiler driver --coverage option(s) (compiler options)
#
-# -mmacosx-version-min=10.4 only
-5342828: gcc.dg/pie-link.c (test for excess errors)
-#
-# -m64 -mmacosx-version-min=10.4 only
-5342857: gcc.apple/objcpp.c (test for excess errors)
-#
# -fasm-blocks only
5087183: gcc.dg/cpp/19951227-1.c (test for errors, line 2)
5087183: gcc.dg/cpp/direct2.c non-include (test for errors, line 13)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/libstdc++-v3.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/libstdc%2B%2B-v3.xfail?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/libstdc++-v3.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/libstdc++-v3.xfail Tue Jul 29 18:46:19 2008
@@ -22,3 +22,15 @@
#
# ppc only
4227568: 26_numerics/complex/13450.cc execution test
+##
+# the following failures are for SnowLeopard only
+5713011: 22_locale/num_get/get/char/12.cc execution test
+5713011: 22_locale/num_get/get/wchar_t/12.cc execution test
+5713011: 27_io/basic_istream/extractors_arithmetic/char/07.cc execution test
+5713011: 27_io/basic_istream/extractors_arithmetic/wchar_t/07.cc execution test
+5713011: 27_io/basic_istream/extractors_other/char/1.cc execution test
+5713011: 27_io/basic_istream/extractors_other/wchar_t/1.cc execution test
+5713011: 27_io/basic_stringbuf/in_avail/char/1.cc execution test
+5713011: 27_io/basic_stringbuf/in_avail/wchar_t/1.cc execution test
+5713011: 27_io/basic_stringbuf/str/char/1.cc execution test
+5713011: 27_io/basic_stringbuf/str/wchar_t/1.cc execution test
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail Tue Jul 29 18:46:19 2008
@@ -15,34 +15,6 @@
5405050: objc.dg/encode-8.m (test for excess errors)
5405050: objc.dg/gnu-runtime-3.m (test for excess errors)
5405050: objc.dg/type-stream-1.m (test for excess errors)
-4943900: objc/execute/string1.m compilation, -O0 -fnext-runtime
-4943900: objc/execute/string1.m compilation, -O1 -fnext-runtime
-4943900: objc/execute/string1.m compilation, -O2 -fnext-runtime
-4943900: objc/execute/string1.m compilation, -O3 -fomit-frame-pointer -fnext-runtime
-4943900: objc/execute/string1.m compilation, -O3 -g -fnext-runtime
-4943900: objc/execute/string1.m compilation, -Os -fnext-runtime
-4943900: objc/execute/string1.m compilation, -fast -fnext-runtime
-4943900: objc/execute/string2.m compilation, -O0 -fnext-runtime
-4943900: objc/execute/string2.m compilation, -O1 -fnext-runtime
-4943900: objc/execute/string2.m compilation, -O2 -fnext-runtime
-4943900: objc/execute/string2.m compilation, -O3 -fomit-frame-pointer -fnext-runtime
-4943900: objc/execute/string2.m compilation, -O3 -g -fnext-runtime
-4943900: objc/execute/string2.m compilation, -Os -fnext-runtime
-4943900: objc/execute/string2.m compilation, -fast -fnext-runtime
-4943900: objc/execute/string3.m compilation, -O0 -fnext-runtime
-4943900: objc/execute/string3.m compilation, -O1 -fnext-runtime
-4943900: objc/execute/string3.m compilation, -O2 -fnext-runtime
-4943900: objc/execute/string3.m compilation, -O3 -fomit-frame-pointer -fnext-runtime
-4943900: objc/execute/string3.m compilation, -O3 -g -fnext-runtime
-4943900: objc/execute/string3.m compilation, -Os -fnext-runtime
-4943900: objc/execute/string3.m compilation, -fast -fnext-runtime
-4943900: objc/execute/string4.m compilation, -O0 -fnext-runtime
-4943900: objc/execute/string4.m compilation, -O1 -fnext-runtime
-4943900: objc/execute/string4.m compilation, -O2 -fnext-runtime
-4943900: objc/execute/string4.m compilation, -O3 -fomit-frame-pointer -fnext-runtime
-4943900: objc/execute/string4.m compilation, -O3 -g -fnext-runtime
-4943900: objc/execute/string4.m compilation, -Os -fnext-runtime
-4943900: objc/execute/string4.m compilation, -fast -fnext-runtime
5095016: objc.dg-struct-layout-encoding-1/t001_main.m (test for excess errors)
5095016: objc.dg-struct-layout-encoding-1/t002_main.m (test for excess errors)
5095016: objc.dg-struct-layout-encoding-1/t003_main.m (test for excess errors)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-13.C?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C Tue Jul 29 18:46:19 2008
@@ -17,6 +17,8 @@
add eax, eax
add fool, eax
add eax, fool
+ addpd xmm0, xmm0
+ addpd xmm0, fool
addps xmm0, xmm0
addps xmm0, fool
addsd xmm0, xmm0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/pubtypes.C?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C Tue Jul 29 18:46:19 2008
@@ -2,10 +2,12 @@
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-O0 -gdwarf-2 -dA -fno-eliminate-unused-debug-types" } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long+\[ \t\]+0x\[0-9a-f]+\[ \t\]+\[#;]+\[ \t\]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "\"empty\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
-/* { dg-final { scan-assembler "\"A\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
-/* { dg-final { scan-assembler "\"B\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long+\[ \t\]+\(0x\)?\[0-9a-f]+\[ \t\n\]+\[#;@]+\[ \t\]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "\"empty\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* { dg-final { scan-assembler "\"A\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* { dg-final { scan-assembler "\"B\\\\0\"+\[ \t\]+\[#;@]+\[ \t\]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
struct A
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/eh/table.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/eh/table.C?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/eh/table.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/eh/table.C Tue Jul 29 18:46:19 2008
@@ -3,11 +3,21 @@
void needed();
void unneeded();
+/* APPLE LOCAL begin omit calls to empty destructors 5559195 */
+int n = 0;
+/* APPLE LOCAL end omit calls to empty destructors 5559195 */
+
class Bar
{
public:
Bar() {}
- virtual ~Bar() {}
+ /* APPLE LOCAL begin omit calls to empty destructors 5559195 */
+ virtual ~Bar() {
+ // Without this nontrivial operation, destructor is optimized away and
+ // GCC_except_table0 is not generated.
+ n = 1;
+ }
+ /* APPLE LOCAL end omit calls to empty destructors 5559195 */
void unneeded();
};
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/complex2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/complex2.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/complex2.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/complex2.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,5 @@
+// PR c++/31388
+// { dg-options "" }
+
+bool b = !0i;
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/interface4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/interface4.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/interface4.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/interface4.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,13 @@
+/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=227376 */
+
+/* { dg-do compile } */
+/* { dg-options "-g2" } */
+
+/* We used to crash when emitting debug info for type N::A because its
+ context was a namespace, not a function. */
+
+#include "interface4.h"
+
+void f ( ) {
+ g ( );
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/gomp/pr31748.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/gomp/pr31748.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/gomp/pr31748.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/gomp/pr31748.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,10 @@
+// PR c++/31748
+
+struct A;
+
+void
+foo ()
+{
+#pragma omp parallel private(A) // { dg-error "struct A.*is not a variable" }
+ ;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/covariant15.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/inherit/covariant15.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/covariant15.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/covariant15.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,18 @@
+/* This used to ICE (PR c++/27492) */
+/* { dg-do "compile" } */
+
+struct A {};
+
+class B : A
+{
+ virtual A* foo(); /* { dg-error "overriding" } */
+};
+
+struct C : virtual B
+{
+ virtual C* foo(); /* { dg-error "invalid covariant return type" } */
+};
+
+C* C::foo() { return 0; }
+
+struct D : C {};
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/virtual4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/inherit/virtual4.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/virtual4.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/inherit/virtual4.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,24 @@
+// PR c++/31027
+
+struct A {};
+
+template<typename T>
+struct C: virtual A {
+ C() {}
+ template<typename T_OTHER> C(const C<T_OTHER>&) {}
+ C func(const class C<long>&) const;
+ operator bool() const;
+};
+
+template<typename T>
+struct D: C<T> {
+ void func2() {
+ C<int>a;
+ a.func(a);
+ }
+};
+
+void func3() {
+ C<int>a;
+ a.func(a);
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/new21.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/init/new21.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/new21.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/new21.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,10 @@
+// PR c++/32251
+
+struct A {
+ A();
+ void operator delete(void *, ...);
+};
+
+void foo () {
+ new A; // { dg-warning "deallocation" }
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/ptrmem4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/init/ptrmem4.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/ptrmem4.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/ptrmem4.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,13 @@
+// PR c++/32245
+// { dg-do run }
+
+struct foo {
+ int mem1;
+ int foo::* mem2;
+};
+
+int main () {
+ foo x = { 0 } ;
+ if (x.mem2 != foo().mem2)
+ return 1;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/overload9.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/template/overload9.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/overload9.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/overload9.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,18 @@
+// PR c++/32232
+
+template <typename T> struct A;
+template <typename T> struct B {};
+template <typename T> A<T>& operator<<(A<T>&, const B<T>&);
+
+template <typename T>
+struct A
+{
+ A<T>& operator<<(A<T>& (*)(A<T>&)); // { dg-error "candidate" }
+};
+
+template <typename T> A<T>& foo(A<T>&);
+extern A<char> c;
+
+int main () {
+ c << (1, foo); // { dg-error "no match" }
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/static30.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/template/static30.C?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/static30.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/template/static30.C Tue Jul 29 18:46:19 2008
@@ -0,0 +1,10 @@
+// PR c++/31992
+
+template <int> struct A
+{
+ static const int i1;
+ static const int i2;
+};
+
+template <int N> const int A<N>::i1(A<N>::i);
+template <int N> const int A<N>::i2(3, A<N>::i);
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4641942.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4641942.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4641942.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4641942.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,21 @@
+/* APPLE LOCAL file 4641942 */
+/* { dg-do compile } */
+/* { dg-options "-fstrict-aliasing -Wstrict-aliasing" } */
+
+typedef struct rec {
+ unsigned long hi;
+ unsigned long lo;
+} rec;
+
+typedef struct data
+{
+ unsigned long long s;
+ unsigned long long t;
+} data;
+
+void foo (void)
+{
+ data* eng;
+ unsigned long long next = eng->t + eng->s;
+ rec m = *((rec*)&next); /* { dg-warning "dereferencing type-punned pointer will break strict-aliasing rules" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5814283.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5814283.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5814283.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5814283.c Tue Jul 29 18:46:19 2008
@@ -1,5 +1,5 @@
/* APPLE LOCAL file 5814283 */
-/* { dg-do compile } */
+/* { dg-do compile { target "i?86-*-darwin*" } } */
/* { dg-options "-O2 -mssse3" } */
#include <emmintrin.h>
#include <tmmintrin.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/apple-altivec-abi-test.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/apple-altivec-abi-test.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/apple-altivec-abi-test.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/apple-altivec-abi-test.c Tue Jul 29 18:46:19 2008
@@ -13,7 +13,7 @@
/* { dg-final { scan-assembler "vspltisw v11, *10" } } */
/* { dg-final { scan-assembler "vspltisw v12, *11" } } */
/* { dg-final { scan-assembler "vspltisw v13, *12" } } */
-
+
void
foo (vector signed int v0, vector signed int v1, vector signed int v2,
vector signed int v3, vector signed int v4, vector signed int v5,
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c Tue Jul 29 18:46:19 2008
@@ -16,6 +16,8 @@
add eax, eax
add fool, eax
add eax, fool
+ addpd xmm0, xmm0
+ addpd xmm0, fool
addps xmm0, xmm0
addps xmm0, fool
addsd xmm0, xmm0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pragma-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pragma-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pragma-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pragma-1.c Tue Jul 29 18:46:19 2008
@@ -7,21 +7,3 @@
#if 1
#error Don't? /* { dg-error "Don't?" } */
#endif
-/* { dg-options "" } */
-
-#warning Don't? /* { dg-warning "Don't?" } */
-#if 0
-#error Don't? /* { dg-bogus "Don't?" } */
-#endif
-#if 1
-#error Don't? /* { dg-error "Don't?" } */
-#endif
-/* { dg-options "" } */
-
-#warning Don't? /* { dg-warning "Don't?" } */
-#if 0
-#error Don't? /* { dg-bogus "Don't?" } */
-#endif
-#if 1
-#error Don't? /* { dg-error "Don't?" } */
-#endif
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-1.c Tue Jul 29 18:46:19 2008
@@ -3,10 +3,11 @@
/* { dg-options "-O0 -gdwarf-2 -dA -fno-eliminate-unused-debug-types" } */
/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long\[ \t]+0x\[0-9a-f]+\[ \t]+\[#;]\[ \t]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler "unused_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long\[ \t]+\(0x\)?\[0-9a-f]+\[ \t\n]+\[#;@]\[ \t]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler "unused_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
#include <stdlib.h>
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-2.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-2.c Tue Jul 29 18:46:19 2008
@@ -3,9 +3,11 @@
/* { dg-options "-O0 -gdwarf-2 -dA" } */
/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long\[ \t]+0x6a+\[ \t]+\[#;]\[ \t]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;]\[ \t\]+external name" } } */
-/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long\[ \t]+\(0x6a|106\)+\[ \t\n]+\[#;@]\[ \t]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;@]\[ \t\]+external name" } } */
+/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
#include <stdlib.h>
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-3.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-3.c Tue Jul 29 18:46:19 2008
@@ -3,10 +3,12 @@
/* { dg-options "-O0 -gdwarf-2 -dA" } */
/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long\[ \t]+0x6a+\[ \t]+\[#;]\[ \t\]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler-not "\"list_name_type\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long\[ \t]+\(0x6a|106\)+\[ \t\n]+\[#;@]\[ \t\]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler-not "\"list_name_type\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
#include <stdlib.h>
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-4.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-4.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/pubtypes-4.c Tue Jul 29 18:46:19 2008
@@ -90,9 +90,11 @@
}
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long\[ \t]+0xa1+\[ \t]+\[#;]\[ \t]+Length of Public Type Names Info" } } */
-/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler "\"list_name_type\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler "\"enum_list_array\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
-/* { dg-final { scan-assembler "\"field_union\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
+/* APPLE LOCAL begin ARM assembler uses @ for comments */
+/* { dg-final { scan-assembler "long\[ \t]+\(0xa1|161\)+\[ \t\n]+\[#;@]\[ \t]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "used_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler-not "unused_struct\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler "\"list_name_type\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler "\"enum_list_array\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* { dg-final { scan-assembler "\"field_union\\\\0\"\[ \t]+\[#;@]\[ \t]+external name" } } */
+/* APPLE LOCAL end ARM assembler uses @ for comments */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/qnan-eq-inf.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/qnan-eq-inf.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/qnan-eq-inf.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/qnan-eq-inf.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,27 @@
+/* APPLE LOCAL file 5752613 */
+/* { dg-options "-std=c99" } */
+/* { dg-do run { target arm-*-darwin* } } */
+#include <stdio.h>
+#include <stdlib.h>
+#include <fenv.h>
+
+int main (int argc, const char *argv[])
+{
+ volatile union{ double d; unsigned long long u; }u;
+ volatile int fred;
+ unsigned invalid;
+
+ feclearexcept (FE_ALL_EXCEPT);
+
+ /* Create a QNaN */
+ u.u = 0xffffffffffffffffULL;
+
+ /* Comparing to inf should not set 'invalid'. testing > DBL_MAX will.
+ testing == inf will not. */
+ fred = (u.d == __builtin_inf()) ;
+
+ invalid = fetestexcept (FE_INVALID);
+ if (invalid)
+ abort();
+ exit (0);
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/uninit-test-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/uninit-test-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/uninit-test-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/uninit-test-1.c Tue Jul 29 18:46:19 2008
@@ -1,6 +1,7 @@
/* Radar 4964532 */
/* { dg-do compile } */
-/* { dg-options "-O2 -gdwarf-2 -dA -mmacosx-version-min=10.4" } */
+/* { dg-options "-O2 -gdwarf-2 -dA -mmacosx-version-min=10.4" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-O2 -gdwarf-2 -dA" { target arm*-*-darwin* } } */
/* { dg-final { scan-assembler "DW_OP_APPLE_uninit" } } */
#include <stdio.h>
#include <stdlib.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/zerofill-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/zerofill-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/zerofill-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/zerofill-1.c Tue Jul 29 18:46:19 2008
@@ -2,11 +2,3 @@
/* { dg-final { scan-assembler "foo,bar" } } */
int foo __attribute__((section("foo,bar")));
-/* { dg-do compile { target *-*-darwin* } } */
-/* { dg-final { scan-assembler "foo,bar" } } */
-
-int foo __attribute__((section("foo,bar")));
-/* { dg-do compile { target *-*-darwin* } } */
-/* { dg-final { scan-assembler "foo,bar" } } */
-
-int foo __attribute__((section("foo,bar")));
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x Tue Jul 29 18:46:19 2008
@@ -0,0 +1,6 @@
+# APPLE LOCAL file ARM no hw subnormal support
+if [istarget "arm*-apple-darwin*"] {
+ lappend additional_flags "-msoft-float"
+}
+
+return 0
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr32500.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr32500.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr32500.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr32500.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,26 @@
+extern void abort(void);
+extern void exit(int);
+void foo(int) __attribute__((noinline));
+void bar(void) __attribute__((noinline));
+
+/* Make sure foo is not inlined or considered pure/const. */
+int x;
+void foo(int i) { x = i; }
+void bar(void) { exit(0); }
+
+int
+main(int argc, char *argv[])
+{
+ int i;
+ int numbers[4] = { 0xdead, 0xbeef, 0x1337, 0x4242 };
+
+ for (i = 1; i <= 12; i++) {
+ if (i <= 4)
+ foo(numbers[i]);
+ else if (i >= 7 && i <= 9)
+ bar();
+ }
+
+ abort();
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/arm-mmx-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/arm-mmx-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/arm-mmx-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/arm-mmx-1.c Tue Jul 29 18:46:19 2008
@@ -5,6 +5,8 @@
/* { dg-skip-if "" { *-*-* } { "-mfloat-abi=softfp" } { "" } } */
/* { dg-require-effective-target arm32 } */
/* { dg-final { scan-assembler "ldmfd\[ ]sp!.*ip,\[ ]*pc" } } */
+/* APPLE LOCAL alternate frame layout */
+/* { dg-skip-if "" { arm*-apple-darwin* } { "*" } { "" } } */
/* This function uses all the call-saved registers, namely r4, r5, r6,
r7, r8, r9, sl, fp. Since we also save lr, that leaves an odd
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-1.c Tue Jul 29 18:46:19 2008
@@ -1,5 +1,6 @@
/* Test for MS structure sizes. */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* APPLE LOCAL 5946347 ms_struct support */
+/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* arm*-*-darwin* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-2.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-ms_struct-2.c Tue Jul 29 18:46:19 2008
@@ -1,5 +1,6 @@
/* Test for MS structure sizes. */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* APPLE LOCAL 5946347 ms_struct support */
+/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* arm*-*-darwin*} } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-weakref-1-darwin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-weakref-1-darwin.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-weakref-1-darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-weakref-1-darwin.c Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
/* APPLE LOCAL end mainline 4.3 2007-06-14 */ \
// { dg-require-weak "" }
// { dg-options "-O2" }
-// { dg-options "-O2 -mmacosx-version-min=10.2" { target { powerpc-*-darwin* } } }
+/* APPLE LOCAL begin 5817940 */
+/* APPLE LOCAL end special options for ppc no longer needed */
// { dg-additional-sources "attr-weakref-1a.c attr-weakref-1b.c" }
// Copyright 2005 Free Software Foundation, Inc.
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout-2.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout-2.c Tue Jul 29 18:46:19 2008
@@ -5,7 +5,8 @@
posted to GCC-patches
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* APPLE LOCAL 5946347 ms_struct support */
+/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* arm*-*-darwin*} } */
/* { dg-options "-D_TEST_MS_LAYOUT" } */
/* This test uses the attribute instead of the command line option. */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-ms-layout.c Tue Jul 29 18:46:19 2008
@@ -6,7 +6,7 @@
posted to GCC-patches
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* arm*-*-darwin*} } */
/* { dg-options "-mms-bitfields -D_TEST_MS_LAYOUT" } */
#include <stddef.h>
@@ -178,6 +178,29 @@
#else /* testing -mno-ms-bitfields */
+#ifdef __arm__
+ size_t exp_sizeof_one = 8;
+ size_t exp_sizeof_two = 8;
+ size_t exp_sizeof_three = 6;
+ size_t exp_sizeof_four = 8;
+ size_t exp_sizeof_five = 8;
+ size_t exp_sizeof_six = 8;
+ size_t exp_sizeof_seven = 8;
+ size_t exp_sizeof_eight = 2;
+ size_t exp_sizeof_nine = 1;
+ size_t exp_sizeof_ten = 2;
+
+ unsigned short exp_one_c = 6;
+ unsigned int exp_two_c = 6;
+ unsigned char exp_three_c = 64;
+ unsigned char exp_four_c = 4;
+ char exp_five_c = 5;
+ char exp_six_c = 5;
+ char exp_seven_c = 5;
+ char exp_eight_c = 1;
+ char exp_nine_c = 0;
+ char exp_ten_c = 1;
+#else
size_t exp_sizeof_one = 8;
size_t exp_sizeof_two = 8;
size_t exp_sizeof_three = 6;
@@ -199,7 +222,7 @@
char exp_eight_c = 1;
char exp_nine_c = 0;
char exp_ten_c = 1;
-
+#endif
#endif
unsigned char i;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-no-ms-layout.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-no-ms-layout.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-no-ms-layout.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/bf-no-ms-layout.c Tue Jul 29 18:46:19 2008
@@ -6,7 +6,7 @@
posted to GCC-patches
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin } } */
+/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin arm*-*-darwin*} } */
/* { dg-options "-mno-ms-bitfields" } */
#include <stddef.h>
@@ -178,6 +178,29 @@
#else /* testing -mno-ms-bitfields */
+#ifdef __arm__
+ size_t exp_sizeof_one = 8;
+ size_t exp_sizeof_two = 8;
+ size_t exp_sizeof_three = 6;
+ size_t exp_sizeof_four = 8;
+ size_t exp_sizeof_five = 8;
+ size_t exp_sizeof_six = 8;
+ size_t exp_sizeof_seven = 8;
+ size_t exp_sizeof_eight = 2;
+ size_t exp_sizeof_nine = 1;
+ size_t exp_sizeof_ten = 2;
+
+ unsigned short exp_one_c = 6;
+ unsigned int exp_two_c = 6;
+ unsigned char exp_three_c = 64;
+ unsigned char exp_four_c = 4;
+ char exp_five_c = 5;
+ char exp_six_c = 5;
+ char exp_seven_c = 5;
+ char exp_eight_c = 1;
+ char exp_nine_c = 0;
+ char exp_ten_c = 1;
+#else
size_t exp_sizeof_one = 8;
size_t exp_sizeof_two = 8;
size_t exp_sizeof_three = 6;
@@ -199,7 +222,7 @@
char exp_eight_c = 1;
char exp_nine_c = 0;
char exp_ten_c = 1;
-
+#endif
#endif
unsigned char i;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/darwin-version-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/darwin-version-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/darwin-version-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/darwin-version-1.c Tue Jul 29 18:46:19 2008
@@ -1,7 +1,8 @@
/* Basic test of the -mmacosx-version-min option. */
/* { dg-options "-mmacosx-version-min=10.1" } */
-/* { dg-do link { target *-*-darwin* } } */
+/* APPLE LOCAL ARM */
+/* { dg-do link { target powerpc*-*-darwin* i?86*-*-darwin* } } */
int main()
{
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/framework-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/framework-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/framework-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/framework-1.c Tue Jul 29 18:46:19 2008
@@ -1,4 +1,5 @@
-/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM no Carbon support */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-F." } */
#include <Carbon/Carbon.h>
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/gomp/pr32468-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/gomp/pr32468-1.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/gomp/pr32468-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/gomp/pr32468-1.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,100 @@
+/* PR libgomp/32468 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fopenmp -fdump-tree-ompexp" } */
+
+extern int printf (const char *, ...);
+extern int omp_get_thread_num (void), omp_get_num_threads (void);
+extern int bar (void);
+extern int baz (const char *, ...);
+
+void
+f1 (void)
+{
+#pragma omp parallel
+ {
+ baz ("%d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ #pragma omp sections
+ {
+ #pragma omp section
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ #pragma omp section
+ printf ("section2 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+ }
+}
+
+void
+f2 (void)
+{
+#pragma omp parallel
+ {
+ #pragma omp sections
+ {
+ #pragma omp section
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ #pragma omp section
+ printf ("section2 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+ baz ("%d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+}
+
+void
+f3 (void)
+{
+#pragma omp parallel
+ {
+ int bb = bar ();
+ #pragma omp sections
+ {
+ #pragma omp section
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ #pragma omp section
+ printf ("section2 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+ }
+}
+
+void
+f4 (void)
+{
+ int i;
+#pragma omp parallel
+ {
+ baz ("%d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ #pragma omp for schedule (dynamic, 15)
+ for (i = 0; i < 10000; i++)
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+}
+
+void
+f5 (void)
+{
+ int i;
+#pragma omp parallel
+ {
+ #pragma omp for schedule (dynamic, 15)
+ for (i = 0; i < 10000; i++)
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ baz ("%d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+}
+
+void
+f6 (void)
+{
+ int i;
+#pragma omp parallel
+ {
+ int bb = bar ();
+ #pragma omp for schedule (runtime)
+ for (i = 0; i < 10000; i++)
+ printf ("section1 %d/%d\n", omp_get_thread_num (), omp_get_num_threads ());
+ }
+}
+
+/* There should not be a GOMP_parallel_{loop,sections}* call. */
+/* { dg-final { scan-tree-dump-times "GOMP_parallel_loop" 0 "ompexp"} } */
+/* { dg-final { scan-tree-dump-times "GOMP_parallel_sections" 0 "ompexp"} } */
+/* { dg-final { cleanup-tree-dump "ompexp" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pch/pch.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pch/pch.exp?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pch/pch.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pch/pch.exp Tue Jul 29 18:46:19 2008
@@ -28,8 +28,14 @@
# APPLE LOCAL begin
# Test MACOSX_DEPLOYMENT_TARGET
-set macosx_deployment_target env(MACOSX_DEPLOYMENT_TARGET)
-setenv MACOSX_DEPLOYMENT_TARGET 10.2
+# Due to a TCL bug (Radar 5823211), unsetenv() does not work properly.
+# The var will be set to empty, not unset, and then the linker complains.
+#set macosx_deployment_target_saved 0
+#if [info exists env(MACOSX_DEPLOYMENT_TARGET)] {
+# set macosx_deployment_target "$env(MACOSX_DEPLOYMENT_TARGET)"
+# set macosx_deployment_target_saved 1
+#}
+#setenv MACOSX_DEPLOYMENT_TARGET 10.4
set test "cfstring-1.c"
set f [open $test w]
set v 0
@@ -44,7 +50,13 @@
puts $f ""
close $f
dg-pch $subdir $test [concat [list {-O0 -g}] $torture_without_loops] ".h"
-set MACOSX_DEPLOYMENT_TARGET $macosx_deployment_target
+# Due to a TCL bug (Radar 5823211), unsetenv() does not work properly.
+# The var will be set to empty, not unset, and then the linker complains.
+#if { ${macosx_deployment_target_saved} == 1 } {
+# setenv MACOSX_DEPLOYMENT_TARGET "$macosx_deployment_target"
+#} else {
+# unsetenv MACOSX_DEPLOYMENT_TARGET
+#}
file delete $test
file delete $testh
# APPLE LOCAL end
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pr32450.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pr32450.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pr32450.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pr32450.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,33 @@
+/* Contributed by Joost VandeVondele <jv244 at cam.ac.uk> */
+
+/* { dg-do run } */
+/* { dg-require-profiling "-pg" } */
+/* { dg-options "-O2 -pg" } */
+/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
+
+extern void abort (void);
+
+int stack_pointer;
+
+void
+__attribute__((noinline))
+mystop ()
+{
+ abort ();
+}
+
+void
+__attribute__((noinline))
+add ()
+{
+ if (stack_pointer + 1 > 10)
+ mystop ();
+
+ stack_pointer = stack_pointer + 1;
+}
+
+int main ()
+{
+ add ();
+ return stack_pointer - 1;
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-3.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-3.c Tue Jul 29 18:46:19 2008
@@ -7,6 +7,8 @@
/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
/* { dg-options "-O2 -foptimize-sibling-calls" } */
+/* APPLE LOCAL ARM 5798689 sibcalls not implemented for Thumb mode */
+/* { dg-skip-if "" { arm-*-darwin* } { "-mthumb" } { "" } } */
/* The option -foptimize-sibling-calls is the default, but serves as
marker. This test is xfailed on targets without sibcall patterns
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-4.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-4.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-4.c Tue Jul 29 18:46:19 2008
@@ -7,6 +7,8 @@
/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
/* { dg-options "-O2 -foptimize-sibling-calls" } */
+/* APPLE LOCAL ARM 5798689 sibcalls not implemented for Thumb mode */
+/* { dg-skip-if "" { arm-*-darwin* } { "-mthumb" } { "" } } */
/* The option -foptimize-sibling-calls is the default, but serves as
marker. This test is xfailed on targets without sibcall patterns
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/trampoline-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/trampoline-1.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/trampoline-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/trampoline-1.c Tue Jul 29 18:46:19 2008
@@ -6,7 +6,8 @@
/* { dg-options "-O2 -fnested-functions" } */
/* APPLE LOCAL testsuite nested functions */
/* Weird, if one adds -lgcc, then it works, seems like ar isn't pulling all it needs to out of a single .a file (libgcc.a. */
-
+/* APPLE LOCAL ARM stack not executable */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* This used to fail on various versions of Solaris 2 because the
trampoline couldn't be made executable. */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/pr31966.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/pr31966.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/pr31966.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/pr31966.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,50 @@
+/* Contributed by Jack Lloyd <lloyd at randombit.net> */
+
+/* { dg-options "-O2 -ftree-vectorize" } */
+/* { dg-options "-O2 -ftree-vectorize -march=nocona" { target { i?86-*-* x86_64-*-* } } } */
+
+typedef unsigned long long word;
+
+const unsigned int MP_WORD_BITS = 64;
+const word MP_WORD_MASK = ~((word)0);
+const word MP_WORD_TOP_BIT = (word)1 << (8*sizeof(word) - 1);
+
+extern void abort (void);
+
+word do_div(word n1, word n0, word d)
+{
+ word high = n1 % d, quotient = 0;
+ unsigned int j;
+
+ for(j = 0; j != MP_WORD_BITS; ++j)
+ {
+ word high_top_bit = (high & MP_WORD_TOP_BIT);
+
+ high <<= 1;
+ high |= (n0 >> (MP_WORD_BITS-1-j)) & 1;
+ quotient <<= 1;
+
+ if(high_top_bit || high >= d)
+ {
+ high -= d;
+ quotient |= 1;
+ }
+ }
+
+ return quotient;
+}
+
+int main()
+{
+ word result;
+
+ result = do_div(0x0000000000200000ll,
+ 0x0000000000000000ll,
+ 0x86E53497CE000000ll);
+
+
+ if (result != 0x3CBA83)
+ abort ();
+
+ return 0;
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c Tue Jul 29 18:46:19 2008
@@ -50,6 +50,5 @@
return 0;
}
-/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_compare_double } } } */
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_no_compare_double } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/vect-70.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/vect-70.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/vect-70.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vect/vect-70.c Tue Jul 29 18:46:19 2008
@@ -3,7 +3,7 @@
#include <stdarg.h>
#include "tree-vect.h"
-#define N 12
+#define N 16
struct s{
int m;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c Tue Jul 29 18:46:19 2008
@@ -1,4 +1,3 @@
-/* { dg-require-holes-deterministic "" } */
#include "harness.h"
#include <stdarg.h>
#include <stddef.h>
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/arm/stack-corruption.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/arm/stack-corruption.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/arm/stack-corruption.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/arm/stack-corruption.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-options "-O -mthumb -fno-omit-frame-pointer" } */
+
+int main() {
+ return 0;
+}
+
+/* { dg-final { scan-assembler-not "\tadd\tr7, sp, #8\n" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pr32389.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pr32389.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pr32389.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pr32389.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,10 @@
+/* Testcase by Mike Frysinger <vapier at gentoo.org> */
+
+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-options "-msse" } */
+
+double f1();
+int f2() {
+ __builtin_ia32_stmxcsr();
+ return f1();
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/powerpc/rotate.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/powerpc/rotate.c?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/powerpc/rotate.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/powerpc/rotate.c Tue Jul 29 18:46:19 2008
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "slwi" } } */
unsigned int foo (unsigned int x)
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/fmt_p_1.f90
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/fmt_p_1.f90?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/fmt_p_1.f90 (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/fmt_p_1.f90 Tue Jul 29 18:46:19 2008
@@ -0,0 +1,12 @@
+! { dg-do run }
+! PR32554 Bug in P formatting
+! Test case from the bug reporter
+program gfcbug66
+ real(8) :: x = 1.0e-100_8
+ character(50) :: outstr
+ write (outstr,'(1X,2E12.3)') x, 2 * x
+ if (outstr.ne." 0.100E-99 0.200E-99") call abort
+ write (outstr,'(1X,1P,2E12.3)') x, 2 * x ! Second printed number is wrong
+ if (outstr.ne." 1.000-100 2.000-100") call abort
+end program gfcbug66
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/pr32533.f90
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/pr32533.f90?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/pr32533.f90 (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gfortran.dg/pr32533.f90 Tue Jul 29 18:46:19 2008
@@ -0,0 +1,18 @@
+! { dg-do run }
+! { dg-options "-O2 -ftree-vectorize -ffast-math" }
+!
+! Contributed by Joost VandeVondele <jv244 at cam.ac.uk>
+!
+SUBROUTINE T(nsubcell,sab_max,subcells)
+ INTEGER, PARAMETER :: dp=KIND(0.0D0)
+ REAL(dp) :: sab_max(3), subcells,nsubcell(3)
+ nsubcell(:) = MIN(MAX(1,NINT(0.5_dp*subcells/sab_max(:))),20)
+END SUBROUTINE T
+
+INTEGER, PARAMETER :: dp=KIND(0.0D0)
+REAL(dp) :: sab_max(3), subcells,nsubcell(3)
+subcells=2.0_dp
+sab_max=0.590060749244805_dp
+CALL T(nsubcell,sab_max,subcells)
+IF (ANY(nsubcell.NE.2.0_dp)) CALL ABORT()
+END
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp Tue Jul 29 18:46:19 2008
@@ -126,48 +126,6 @@
return $value
}
-# APPLE LOCAL begin 5612787 sse4
-# Implement an effective-target check for property PROP by invoking
-# the compiler and seeing if it prints any messages. Assume that the
-# property holds if the compiler doesn't print anything. The other
-# arguments are as for get_compiler_messages, starting with TYPE.
-proc check_no_compiler_messages {prop args} {
- global et_cache
-
- set target [current_target_name]
- if {![info exists et_cache($prop,target)]
- || $et_cache($prop,target) != $target} {
- verbose "check_no_compiler_messages $prop: compiling source for $target" 2
- set et_cache($prop,target) $target
- set et_cache($prop,value) \
- [string match "" [eval get_compiler_messages $prop 0 $args]]
- }
- set value $et_cache($prop,value)
- verbose "check_no_compiler_messages $prop: returning $value for $target" 2
- return $value
-}
-
-# Similar to check_no_compiler_messages, but also verify that the regular
-# expression PATTERN matches the compiler's output.
-proc check_no_messages_and_pattern {prop pattern args} {
- global et_cache
-
- set target [current_target_name]
- if {![info exists et_cache($prop,target)]
- || $et_cache($prop,target) != $target} {
- verbose "check_no_messages_and_pattern $prop: compiling source for $target" 2
- set et_cache($prop,target) $target
- set results [eval get_compiler_messages $prop 1 $args]
- set et_cache($prop,value) \
- [expr [string match "" [lindex $results 0]] \
- && [regexp $pattern [lindex $results 1]]]
- }
- set value $et_cache($prop,value)
- verbose "check_no_messages_and_pattern $prop: returning $value for $target" 2
- return $value
-}
-# APPLE LOCAL end 5612787 sse4
-
###############################
# proc check_weak_available { }
###############################
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/5599048.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 5599048 */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-O -framework Cocoa" } */
-#import <Cocoa/Cocoa.h>
+/* { dg-options "-O -framework Foundation" } */
+#import <Foundation/Foundation.h>
const NSPoint orig = NSMakePoint(20, 8);
@interface foo:NSObject
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/bitfield-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-1.mm Tue Jul 29 18:46:19 2008
@@ -9,6 +9,8 @@
/* { dg-do run } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <objc/objc.h>
/* APPLE LOCAL radar 4894756 */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/bitfield-4.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-4.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/bitfield-4.mm Tue Jul 29 18:46:19 2008
@@ -6,6 +6,8 @@
/* { dg-do run } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-cfstring-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/const-cfstring-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-cfstring-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-cfstring-1.mm Tue Jul 29 18:46:19 2008
@@ -7,6 +7,8 @@
/* { dg-do run { target *-*-darwin* } } */
/* { dg-options "-fconstant-cfstrings -framework Cocoa" } */
+/* APPLE LOCAL ARM Cocoa not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#import <Foundation/NSString.h>
#import <CoreFoundation/CFString.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-10.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/const-str-10.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-10.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-10.mm Tue Jul 29 18:46:19 2008
@@ -4,7 +4,7 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com> */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-11.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/const-str-11.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-11.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-11.mm Tue Jul 29 18:46:19 2008
@@ -4,7 +4,7 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com> */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings -fconstant-string-class=XStr" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-9.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/const-str-9.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-9.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/const-str-9.mm Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com> */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM radar 5804096 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/cxx-ivars-2.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm Tue Jul 29 18:46:19 2008
@@ -2,7 +2,9 @@
// and if they perform their desired function.
// { dg-do run }
-// { dg-options "-fobjc-call-cxx-cdtors" }
+/* APPLE LOCAL begin 5809596 */
+/* Removed option */
+/* APPLE LOCAL end 5809596 */
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/cxx-ivars-3.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm Tue Jul 29 18:46:19 2008
@@ -1,8 +1,9 @@
// APPLE LOCAL file mainline
// Check if ObjC classes with non-POD C++ ivars are specially marked in the metadata.
-// { dg-do run { target *-*-darwin* } }
+// APPLE LOCAL ARM radar 5804096 - radar 5706927
+// { dg-do run { target powerpc*-*-darwin* } }
// APPLE LOCAL radar 4842158
-// { dg-options "-fobjc-call-cxx-cdtors -fnext-runtime -mmacosx-version-min=10.3" }
+// { dg-options "-fnext-runtime -mmacosx-version-min=10.3" }
/* APPLE LOCAL radar 4280641 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs-warn-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/defs-warn-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs-warn-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs-warn-1.mm Tue Jul 29 18:46:19 2008
@@ -4,6 +4,8 @@
/* { dg-do run } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <stdlib.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/defs.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/defs.mm Tue Jul 29 18:46:19 2008
@@ -5,6 +5,8 @@
/* { dg-do run } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <stdlib.h>
#include <objc/objc.h>
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/disambiguate-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/disambiguate-1.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/disambiguate-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/disambiguate-1.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,19 @@
+/* APPLE LOCAL file radar 5355344 */
+/* Test that parser can disambiguate a conditional expression from a protocol type use. */
+
+/* { dg-do run } */
+int m_nMinID, m_nMaxID;
+extern "C" void abort (void);
+
+int MyFunction(int id)
+{
+ return (id < m_nMinID || id > m_nMaxID) ;
+}
+
+int main()
+{
+ if (!MyFunction (100))
+ abort ();
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-3.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/encode-3.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-3.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-3.mm Tue Jul 29 18:46:19 2008
@@ -18,12 +18,19 @@
int main(void) {
const char *encode = @encode(long);
-#if __OBJC2__
- if (strcmp (encode, "q"))
-#else
- if (strcmp (encode, "l"))
-#endif
- abort();
+ /* APPLE LOCAL begin ARM 5804096 */
+ switch (sizeof (long))
+ {
+ case 4:
+ if (strcmp (encode, "l"))
+ abort ();
+ break;
+ case 8:
+ if (strcmp (encode, "q"))
+ abort ();
+ break;
+ }
+ /* APPLE LOCAL end ARM 5804096 */
if (strcmp (enc, "{Vec<float>=ffiq}"))
abort();
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/message-metadata-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/message-metadata-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/message-metadata-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/message-metadata-1.mm Tue Jul 29 18:46:19 2008
@@ -1,7 +1,9 @@
/* APPLE LOCAL file radar 4582204 */
/* Test that message_ref_t meta-data is generated for for objc and obj-c++ */
-/* { dg-options "-fobjc-abi-version=2 -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-fobjc-abi-version=2 -mmacosx-version-min=10.5" } */
/* { dg-do compile } */
+/* APPLE LOCAL ARM hybrid ABI */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
@interface Foo
+class;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/method-11.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/method-11.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/method-11.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/method-11.mm Tue Jul 29 18:46:19 2008
@@ -5,6 +5,8 @@
/* { dg-do compile } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <objc/Object.h>
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-5.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-5.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-5.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-5.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file radar 5285911 */
+/* Test that can have a 'setter' method only without a property or the corresponding
+ 'getter' method. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-framework Foundation" { target arm*-*-darwin* } } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+/* { dg-do run } */
+
+static int g_val;
+
+ at interface Subclass : NSObject
+{
+ int setterOnly;
+}
+- (void) setSetterOnly:(int)value;
+ at end
+
+ at implementation Subclass
+- (void) setSetterOnly:(int)value {
+ setterOnly = value;
+ g_val = setterOnly;
+}
+ at end
+
+int main (void) {
+ Subclass *x = [[Subclass alloc] init];
+
+ x.setterOnly = 4;
+ if (g_val != 4)
+ abort ();
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-class-method-1.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-1.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,66 @@
+/* APPLE LOCAL file radar 5277239 */
+/* Test use of class method calls using property dot-syntax used for
+ property 'getter' and 'setter' messaging. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-framework Foundation" { target arm*-*-darwin* } } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+/* { dg-do run } */
+
+ at interface Subclass : NSObject
++ (int)magicNumber;
++ (void)setMagicNumber:(int)value;
++ (void)setFakeSetterNumber:(int)value;
+ at end
+
+ at implementation Subclass
+int _magicNumber = 0;
++ (int)magicNumber {
+ return _magicNumber;
+}
+
++ (void)setMagicNumber:(int)value {
+ _magicNumber = value;
+}
+
++ (void)setFakeSetterNumber:(int)value {
+ _magicNumber = value;
+}
+
++ (void) classMeth
+{
+ self.magicNumber = 10;
+ if (self.magicNumber != 10)
+ abort ();
+}
+ at end
+
+int main (void) {
+
+ if (Subclass.magicNumber != 0)
+ abort ();
+ Subclass.magicNumber = 2 /*[Subclass setMagicNumber:2]*/;
+ if (Subclass.magicNumber != 2)
+ abort ();
+
+ Subclass.magicNumber += 3;
+ if (Subclass.magicNumber != 5)
+ abort ();
+ Subclass.magicNumber -= 5;
+ if (Subclass.magicNumber != 0)
+ abort ();
+ /* We only have a setter in the following case. */
+ Subclass.fakeSetterNumber = 123;
+ /* We read it using the other getter. */
+ if (Subclass.magicNumber != 123)
+ abort ();
+ Subclass.fakeSetterNumber = Subclass.magicNumber;
+ if (Subclass.magicNumber != 123)
+ abort ();
+
+ /* Test class methods using the new syntax. */
+ [Subclass classMeth];
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-2.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-class-method-2.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-2.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-class-method-2.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,27 @@
+/* APPLE LOCAL file radar 5277239 */
+/* Test use of class method calls using property dot-syntax used for
+ property 'getter' and 'setter' messaging. */
+/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
+
+ at interface INTF
+- (int) METH;
+- (void)setMETH:(int)value;
++ (void) c_method;
+ at end
+
+ at implementation INTF
++ (void) c_method
+{
+ int j = self.METH; /* { dg-error "accessing unknown" } */
+ self.METH = 2; /* { dg-error "accessing unknown" } */
+}
+
+- (int) METH { return 1; }
+- (void)setMETH:(int)value { }
+ at end
+
+int main() {
+ int i = INTF.METH ; /* { dg-error "accessing unknown" } */
+ INTF.METH = 1; /* { dg-error "accessing unknown" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-copy-3.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-copy-3.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-copy-3.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-copy-3.mm Tue Jul 29 18:46:19 2008
@@ -2,7 +2,7 @@
/* { dg-options "-mmacosx-version-min=10.5 -fobjc-new-property" } */
/* { dg-do compile { target *-*-darwin* } } */
-#include <Cocoa/Cocoa.h>
+#include <Foundation/Foundation.h>
@interface NamedObject : NSObject
@property(copy) NSString *name;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-neg-ivar-check-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-neg-ivar-check-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-neg-ivar-check-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-neg-ivar-check-1.mm Tue Jul 29 18:46:19 2008
@@ -9,9 +9,9 @@
@end
@implementation Moe
- at synthesize ivar;
+ at synthesize ivar; /* { dg-error "synthesized property 'ivar' must either be named the same as a compatible ivar or must explicitly name an ivar" } */
- (void)setIvar:(int)arg{}
- at end /* { dg-error "synthesized property 'ivar' must either be named the same as a compatible ivar or must explicitly name an ivar" } */
+ at end
@interface Fred
@property int ivar;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/no-offsetof-warn.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/no-offsetof-warn.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/no-offsetof-warn.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/no-offsetof-warn.mm Tue Jul 29 18:46:19 2008
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 4783068 */
/* Don't issue error when objctive-c internally synthesizes dereferencing of a null object. */
-/* { dg-options "-Werror -fobjc-gc -fobjc-call-cxx-cdtors" } */
+/* { dg-options "-Werror -fobjc-gc" } */
/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-require-effective-target objc_gc } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-bycopy-return-warn-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-bycopy-return-warn-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-bycopy-return-warn-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-bycopy-return-warn-1.mm Tue Jul 29 18:46:19 2008
@@ -2,6 +2,8 @@
/* Check that an instance method with 'bycopy' return type issues a warning when the
object it is returning does not conform to NSCoding protocol. */
/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM Cocoa not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <Cocoa/Cocoa.h>
@interface MyClass : NSObject
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-gc-4.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-4.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-4.mm Tue Jul 29 18:46:19 2008
@@ -1,7 +1,8 @@
/* APPLE LOCAL file ObjC GC */
/* A run-time test for insertion of write barriers. */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* APPLE LOCAL radar 5706927 */
+/* { dg-do run { target powerpc*-*-darwin* } } */
/* { dg-options "-fnext-runtime -fobjc-gc -mmacosx-version-min=10.3" } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-aggr-assign-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-gc-aggr-assign-1.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-aggr-assign-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-aggr-assign-1.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,127 @@
+/* APPLE LOCAL file radar 3742561 */
+/* Test that we generate void * objc_memmove_collectable(void *dst, const void *src, size_t size)
+ API when struct has a 'strong' object pointer in a variety of situations. */
+/* { dg-options "-fobjc-gc -mmacosx-version-min=10.5 -framework Cocoa" } */
+/* { dg-do run { target *-*-darwin* } } */
+/* { dg-require-effective-target objc_gc } */
+
+#define objc_copyStruct X_objc_copyStruct
+#define objc_memmove_collectable X_objc_memmove_collectable
+#include <Cocoa/Cocoa.h>
+#undef objc_memmove_collectable
+#undef objc_copyStruct
+
+static int count;
+
+/* Only ppc32 API for property assignment makes the call to objc_copyStruct. */
+static void
+objc_copyStruct (void *dst, const void * src, size_t size, bool arg, bool arg2)
+{
+ memcpy (dst, src, size);
+ count++;
+}
+
+typedef struct S {
+ int ii;
+} SS;
+
+struct type_s {
+ SS may_recurse;
+ id id_val;
+};
+
+struct nono {
+ nono & operator = (const nono & arg)
+ {
+ memcpy (this, &arg, sizeof(nono));
+ return *this;
+ }
+ struct type_s nono_val;
+ id id_nono;
+ nono (int val)
+ {
+ nono_val.may_recurse.ii = val;
+ }
+};
+
+ at interface NamedObject : NSObject
+{
+ struct type_s type_s_ivar;
+}
+- (void) setSome : (struct type_s) arg;
+- (struct type_s) getSome;
+ at property(assign) struct type_s aggre_prop;
+ at end
+
+ at implementation NamedObject
+- (void) setSome : (struct type_s) arg
+ {
+ type_s_ivar = arg;
+ }
+- (struct type_s) getSome
+ {
+ return type_s_ivar;
+ }
+ at synthesize aggre_prop = type_s_ivar;
+ at end
+
+struct type_s some = {{1234}, (id)0};
+
+struct type_s get(void)
+{
+ return some;
+}
+
+struct type_s GlobalVariable;
+
+static void *
+objc_memmove_collectable(void *dst, const void *src, size_t size)
+{
+ memcpy (dst, src, size);
+ count++;
+}
+
+int main(void) {
+ struct type_s local;
+ struct type_s *p;
+ int old_count;
+
+ NamedObject *object = [[NamedObject alloc] init];
+
+ /* Assigning into a global */
+ GlobalVariable = get();
+ if (count != 1 || GlobalVariable.may_recurse.ii != 1234)
+ abort ();
+
+ /* Assigning into a local */
+ local = GlobalVariable;
+ if (count != 2 || local.may_recurse.ii != 1234)
+ abort ();
+
+ p = (struct type_s *) malloc (sizeof (struct type_s));
+ /* Assigning thourgh a pointer */
+ *p = local;
+ if (count != 3 || p->may_recurse.ii != 1234)
+ abort ();
+
+ /* Assigning to an ivar */
+ [object setSome:GlobalVariable];
+ if (count != 4 || [object getSome].may_recurse.ii != 1234)
+ abort ();
+
+ local.may_recurse.ii = 6578;
+ object.aggre_prop = local;
+ if (count != 5 || object.aggre_prop.may_recurse.ii != 6578)
+ abort ();
+
+ /* class assignment with overloaded '=' operator must NOT call the new API. */
+ old_count = count;
+ nono nono_rhs (89);
+ nono nono_lhs (100);
+ nono_lhs = nono_rhs;
+ if (count != old_count || nono_lhs.nono_val.may_recurse.ii != 89)
+ abort ();
+
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-section-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-gc-section-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-section-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-gc-section-1.mm Tue Jul 29 18:46:19 2008
@@ -4,6 +4,7 @@
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
@interface INTF
@end
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-instantiate-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-instantiate-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-instantiate-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-instantiate-1.mm Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 4439126 */
/* Test to see if instantiation occurs before meta-data is generated. */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-framework Cocoa" } */
+/* { dg-options "-framework Foundation" } */
#import <Foundation/Foundation.h>
class Base
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-passby-ref-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-passby-ref-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-passby-ref-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-passby-ref-1.mm Tue Jul 29 18:46:19 2008
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 4476365 */
/* This that pass-by-referencong workd in obj-c++ */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-framework Cocoa" } */
-#include <Cocoa/Cocoa.h>
+/* { dg-options "-framework Foundation" } */
+#include <Foundation/Foundation.h>
@interface Test : NSObject
- (void) process: (int)r3 :(int)r4 :(int)r5 :(int)r6 :(int)r7 :(int)r8 :(int)r9 :(int)r10 :(int &)i;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-visibility-hidden-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-visibility-hidden-1.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-visibility-hidden-1.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-visibility-hidden-1.mm Tue Jul 29 18:46:19 2008
@@ -3,6 +3,7 @@
/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
__attribute__((visibility("hidden")))
@interface Foo {
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-instanceSizeStart-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc2-instanceSizeStart-1.mm?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-instanceSizeStart-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-instanceSizeStart-1.mm Tue Jul 29 18:46:19 2008
@@ -0,0 +1,14 @@
+/* APPLE LOCAL file radar 5333233 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5 -m64" } */
+
+ at interface Super { id isa; } @end
+ at implementation Super @end
+
+ at interface SubNoIvars : Super
+ at end
+
+ at implementation SubNoIvars @end
+
+int main() { return 0; }
+/* { dg-final { scan-assembler "L_ZL27_OBJC_CLASS_RO_\\\$_SubNoIvars:\n\t.long\t0\n\t.long\t8\n\t.long\t8" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-13.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/property-13.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-13.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-13.mm Tue Jul 29 18:46:19 2008
@@ -1,7 +1,9 @@
/* APPLE LOCAL file radar 4660569 */
/* No warning here because accessor methods are INHERITED from NSButton */
/* APPLE LOCAL radar 4899595 */
-/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* AppKit not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <AppKit/AppKit.h>
@interface NSButton (Properties)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/property-4.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-4.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/property-4.mm Tue Jul 29 18:46:19 2008
@@ -3,7 +3,9 @@
/* Program should compile with no error or warning. */
/* { dg-do compile { target *-*-darwin* } } */
/* APPLE LOCAL radar 4899595 */
-/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* Cocoa not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#import <Cocoa/Cocoa.h>
@interface NSWindow (Properties)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/template-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/template-4.mm?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/template-4.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/template-4.mm Tue Jul 29 18:46:19 2008
@@ -1,8 +1,10 @@
/* APPLE LOCAL file mainline */
/* Author: Ziemowit Laski <zlaski at apple.com>. */
-/* APPLE LOCAL radar 4842177 */
-/* { dg-options "-fnext-runtime -mmacosx-version-min=10.3 -fno-constant-cfstrings" } */
-/* { dg-do run } */
+/* APPLE LOCAL radar 4842177 , radar 5706927 */
+/* { dg-options "-fnext-runtime -mmacosx-version-min=10.3 -fno-constant-cfstrings" { target powerpc*-*-darwin* } } */
+/* { dg-options "-fnext-runtime -fno-constant-cfstrings" { target arm*-*-darwin* } } */
+/* APPLE LOCAL Radar 5706927 */
+/* { dg-do run { target powerpc*-*-darwin* } } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-3.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-3.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-3.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-3.m Tue Jul 29 18:46:19 2008
@@ -3,8 +3,10 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-lobjc -Wpadded" } */
/* { dg-do run } */
-/* APPLE LOCAL objc2 */
+/* APPLE LOCAL begin objc2 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
+/* APPLE LOCAL end objc2 */
#include <objc/objc.h>
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-5.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-5.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-5.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/bitfield-5.m Tue Jul 29 18:46:19 2008
@@ -6,8 +6,10 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-Wpadded" } */
/* { dg-do run } */
-/* APPLE LOCAL objc2 */
+/* APPLE LOCAL begin objc2 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
+/* APPLE LOCAL end objc2 */
#include <objc/objc.h>
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-1.m Tue Jul 29 18:46:19 2008
@@ -6,7 +6,8 @@
/* Developed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-fconstant-cfstrings -framework Cocoa" } */
+/* { dg-options "-fconstant-cfstrings -framework Cocoa" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-fconstant-cfstrings -framework Foundation" { target arm*-*-darwin* } } */
#import <Foundation/NSString.h>
#import <CoreFoundation/CFString.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10-64bit.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10-64bit.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10-64bit.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10-64bit.m Tue Jul 29 18:46:19 2008
@@ -2,7 +2,7 @@
/* Test if ObjC constant string layout is checked properly, regardless of how
constant string classes get derived. */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings -m64 -fobjc-abi-version=1" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-10.m Tue Jul 29 18:46:19 2008
@@ -4,7 +4,7 @@
/* APPLE LOCAL file 4149909 */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11-64bit.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11-64bit.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11-64bit.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11-64bit.m Tue Jul 29 18:46:19 2008
@@ -2,7 +2,7 @@
/* Test if ObjC constant string layout is checked properly, regardless of how
constant string classes get derived. */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings -fconstant-string-class=XStr -m64 -fobjc-abi-version=1" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-11.m Tue Jul 29 18:46:19 2008
@@ -4,7 +4,7 @@
/* APPLE LOCAL file 4149909 */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings -fconstant-string-class=XStr" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-13.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-13.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-13.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-13.m Tue Jul 29 18:46:19 2008
@@ -3,7 +3,7 @@
/* Author: Ziemowit Laski */
/* { dg-options "-fno-constant-cfstrings -fwritable-strings -fconstant-string-class=Foo -mmacosx-version-min=10.4" } */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9-64bit.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9-64bit.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9-64bit.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9-64bit.m Tue Jul 29 18:46:19 2008
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 4492976 */
/* Test if ObjC constant strings get placed in the correct section. */
/* { dg-options "-fnext-runtime -m64 -fobjc-abi-version=1 -fno-constant-cfstrings" } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-str-9.m Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
/* APPLE LOCAL constant cfstrings */
/* { dg-options "-fnext-runtime -fno-constant-cfstrings" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* APPLE LOCAL radar 4492976 */
/* { dg-require-effective-target ilp32 } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs-warn-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs-warn-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs-warn-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs-warn-1.m Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 4441551 */
/* Issue warning wherevr @defs is used. */
/* { dg-options "-lobjc -Wobjc2" } */
-/* { dg-do run } */
+/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include <objc/objc.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/defs.m Tue Jul 29 18:46:19 2008
@@ -3,8 +3,10 @@
/* Contributed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-lobjc" } */
/* { dg-do run } */
-/* APPLE LOCAL objc2 */
+/* APPLE LOCAL begin objc2 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
+/* APPLE LOCAL end objc2 */
#include <objc/objc.h>
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-7.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-7.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-7.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-7.m Tue Jul 29 18:46:19 2008
@@ -1,5 +1,7 @@
/* { dg-options "-fgnu-runtime" } */
/* { dg-do run } */
+/* APPLE LOCAL ARM not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* LLVM LOCAL */
/* { dg-xfail-if "" { *-*-darwin* } { "*" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-8.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-8.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-8.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/encode-8.m Tue Jul 29 18:46:19 2008
@@ -1,5 +1,7 @@
/* { dg-options "-fgnu-runtime" } */
/* { dg-do run } */
+/* APPLE LOCAL ARM not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* LLVM LOCAL */
/* { dg-xfail-if "" { *-*-darwin* } { "*" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/format-arg-attribute-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/format-arg-attribute-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/format-arg-attribute-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/format-arg-attribute-1.m Tue Jul 29 18:46:19 2008
@@ -3,6 +3,7 @@
format strings. */
/* { dg-options "-Wformat -Wformat-security -Wformat-nonliteral -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <Cocoa/Cocoa.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/image-info.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/image-info.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/image-info.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/image-info.m Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
usable on MacOS X 10.3 and later. */
/* Contributed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-freplace-objc-classes" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/message-metadata-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/message-metadata-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/message-metadata-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/message-metadata-1.m Tue Jul 29 18:46:19 2008
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 4582204 */
/* Test that message_ref_t meta-data is generated for for objc and obj-c++ */
/* { dg-options "-fobjc-abi-version=2 -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-fno-objc-legacy-dispatch" { target arm*-*-darwin* } } */
/* { dg-do compile } */
@interface Foo
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-4.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-4.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-4.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-4.m Tue Jul 29 18:46:19 2008
@@ -3,8 +3,10 @@
/* Author: Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-fnext-runtime" } */
/* { dg-do compile } */
-/* APPLE LOCAL objc2 */
+/* APPLE LOCAL begin objc2 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
+/* APPLE LOCAL end objc2 */
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-5.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-5.m?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-5.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-5.m Tue Jul 29 18:46:19 2008
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file radar 5285911 */
+/* Test that can have a 'setter' method only without a property or the corresponding
+ 'getter' method. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-framework Foundation" { target arm*-*-darwin* } } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+/* { dg-do run } */
+
+static int g_val;
+
+ at interface Subclass : NSObject
+{
+ int setterOnly;
+}
+- (void) setSetterOnly:(int)value;
+ at end
+
+ at implementation Subclass
+- (void) setSetterOnly:(int)value {
+ setterOnly = value;
+ g_val = setterOnly;
+}
+ at end
+
+int main (void) {
+ Subclass *x = [[Subclass alloc] init];
+
+ x.setterOnly = 4;
+ if (g_val != 4)
+ abort ();
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-1.m?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-1.m Tue Jul 29 18:46:19 2008
@@ -0,0 +1,66 @@
+/* APPLE LOCAL file radar 5277239 */
+/* Test use of class method calls using property dot-syntax used for
+ property 'getter' and 'setter' messaging. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-framework Foundation" { target arm*-*-darwin* } } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+/* { dg-do run } */
+
+ at interface Subclass : NSObject
++ (int)magicNumber;
++ (void)setMagicNumber:(int)value;
++ (void)setFakeSetterNumber:(int)value;
+ at end
+
+ at implementation Subclass
+int _magicNumber = 0;
++ (int)magicNumber {
+ return _magicNumber;
+}
+
++ (void)setMagicNumber:(int)value {
+ _magicNumber = value;
+}
+
++ (void)setFakeSetterNumber:(int)value {
+ _magicNumber = value;
+}
+
++ (void) classMeth
+{
+ self.magicNumber = 10;
+ if (self.magicNumber != 10)
+ abort ();
+}
+ at end
+
+int main (void) {
+
+ if (Subclass.magicNumber != 0)
+ abort ();
+ Subclass.magicNumber = 2 /*[Subclass setMagicNumber:2]*/;
+ if (Subclass.magicNumber != 2)
+ abort ();
+
+ Subclass.magicNumber += 3;
+ if (Subclass.magicNumber != 5)
+ abort ();
+ Subclass.magicNumber -= 5;
+ if (Subclass.magicNumber != 0)
+ abort ();
+ /* We only have a setter in the following case. */
+ Subclass.fakeSetterNumber = 123;
+ /* We read it using the other getter. */
+ if (Subclass.magicNumber != 123)
+ abort ();
+ Subclass.fakeSetterNumber = Subclass.magicNumber;
+ if (Subclass.magicNumber != 123)
+ abort ();
+
+ /* Test class methods using the new syntax. */
+ [Subclass classMeth];
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-2.m?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-2.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-class-method-2.m Tue Jul 29 18:46:19 2008
@@ -0,0 +1,27 @@
+/* APPLE LOCAL file radar 5277239 */
+/* Test use of class method calls using property dot-syntax used for
+ property 'getter' and 'setter' messaging. */
+/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
+
+ at interface INTF
+- (int) METH;
+- (void)setMETH:(int)value;
++ (void) c_method;
+ at end
+
+ at implementation INTF
++ (void) c_method
+{
+ int j = self.METH; /* { dg-error "accessing unknown" } */
+ self.METH = 2; /* { dg-error "accessing unknown" } */
+}
+
+- (int) METH { return 1; }
+- (void)setMETH:(int)value { }
+ at end
+
+int main() {
+ int i = INTF.METH ; /* { dg-error "accessing unknown" } */
+ INTF.METH = 1; /* { dg-error "accessing unknown" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-copy-3.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-copy-3.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-copy-3.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-copy-3.m Tue Jul 29 18:46:19 2008
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 4805321 */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <Cocoa/Cocoa.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-ivar-check-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-ivar-check-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-ivar-check-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-ivar-check-1.m Tue Jul 29 18:46:19 2008
@@ -9,9 +9,10 @@
@end
@implementation Moe
- at synthesize ivar;
+ at synthesize ivar; /* { dg-error "synthesized property 'ivar' must either be named the same as a compatible ivar or must explicitly name an ivar" } */
+
- (void)setIvar:(int)arg{}
- at end /* { dg-error "synthesized property 'ivar' must either be named the same as a compatible ivar or must explicitly name an ivar" } */
+ at end
@interface Fred
@property int ivar;
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-setter-name.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-setter-name.m?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-setter-name.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-setter-name.m Tue Jul 29 18:46:19 2008
@@ -0,0 +1,21 @@
+/* APPLE LOCAL file radar 5338634 */
+/* Check that no error is issued when setter name is the prefix for property name. */
+/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-do run { target *-*-darwin* } } */
+
+ at interface Foo
+{
+ int intSetter;
+}
+ at property(setter=intSet:) int intSetter;
+ at end
+
+ at implementation Foo
+ at synthesize intSetter;
+ at end
+
+int main()
+{
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1-64bit.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1-64bit.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1-64bit.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1-64bit.m Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file 4492976 */
/* Test that the correct version number (7) is set in the module descriptor
when compiling for the NeXT runtime. */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fnext-runtime -m64 -fobjc-abi-version=1" } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/next-runtime-1.m Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
when compiling for the NeXT runtime. */
/* Author: Ziemowit Laski <zlaski at apple.com> */
-/* { dg-do compile { target *-*-darwin* } } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fnext-runtime" } */
/* APPLE LOCAL 64-bit 4492976 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-bycopy-return-warn-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-bycopy-return-warn-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-bycopy-return-warn-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-bycopy-return-warn-1.m Tue Jul 29 18:46:19 2008
@@ -2,6 +2,7 @@
/* Check that an instance method with 'bycopy' return type issues a warning when the
object it is returning does not conform to NSCoding protocol. */
/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#include <Cocoa/Cocoa.h>
@interface MyClass : NSObject
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-assign-ivar-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-assign-ivar-2.m?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-assign-ivar-2.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-assign-ivar-2.m Tue Jul 29 18:46:19 2008
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file 5675908 */
+/* A write barrier should not be generated if garbage collection is
+ disabled. */
+/* { dg-do compile } */
+/* { dg-options "-fno-objc-gc -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-fno-objc-gc" { target arm*-*-darwin* } } */
+ at interface Foo
+{
+ id x;
+}
+ at property(assign) id x;
+ at end
+
+ at implementation Foo
+ at synthesize x;
+ at end
+/* { dg-final { scan-assembler-not "objc_assign_ivar" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-section-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-section-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-section-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-section-1.m Tue Jul 29 18:46:19 2008
@@ -4,6 +4,7 @@
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
@interface INTF
@end
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-visibility-hidden-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-visibility-hidden-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-visibility-hidden-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-visibility-hidden-1.m Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 5142207 */
/* Test for visibility 'hidden' flag inserted in 32bit objc class's meta-data. */
-/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
__attribute__((visibility("hidden")))
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m Tue Jul 29 18:46:19 2008
@@ -1,5 +1,6 @@
/* APPLE LOCAL file 5724385 */
/* { dg-options "-std=c99 -mmacosx-version-min=10.5 -m64 -lobjc" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-std=c99 -lobjc" { target arm*-*-darwin* } } */
/* { dg-do run { target *-*-darwin* } } */
#include <objc/runtime.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m Tue Jul 29 18:46:19 2008
@@ -1,6 +1,6 @@
/* APPLE LOCAL file 5774213 */
/* We must not generate global symbol for category names in the ObjC2 ABI. */
-/* { dg-options "-mmacosx-version-min=10.5 -m64" } */
+/* { dg-options "-mmacosx-version-min=10.5 -m64" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@interface Foo
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2.c?rev=54182&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2.c Tue Jul 29 18:46:19 2008
@@ -0,0 +1,9 @@
+/* APPLE LOCAL file 5726269 */
+/* Verify that __OBJC2__ is not defined on arm when compiling a C file. */
+/* { dg-do compile { target arm*-*-darwin* } } */
+
+#ifdef __OBJC2__
+error __OBJC2__
+#else
+int i = 3;
+#endif
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m Tue Jul 29 18:46:19 2008
@@ -3,6 +3,8 @@
setter/getters. Program should compile and run with no errors. */
/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
/* { dg-do run { target *-*-darwin* } } */
+/* APPLE LOCAL ARM not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#import <Cocoa/Cocoa.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-4.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-4.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-4.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-4.m Tue Jul 29 18:46:19 2008
@@ -3,7 +3,8 @@
/* Program should compile with no error or warning. */
/* { dg-do compile { target *-*-darwin* } } */
/* APPLE LOCAL radar 4899595 */
-/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5" { target *-*-darwin* } } */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
#import <Cocoa/Cocoa.h>
@interface NSWindow (Properties)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m Tue Jul 29 18:46:19 2008
@@ -6,6 +6,8 @@
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-O0 -g -c -save-temps -dA --no-warn" } */
/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
+/* APPLE LOCAL ARM AppKit not available on darwin-arm */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
/* { dg-final { scan-assembler "long\[ \t]+0x\[0-9a-f]+\[ \t]+\[#;]\[ \t]+Length of Public Type Names Info" } } */
/* { dg-final { scan-assembler "id\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/stret-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/stret-2.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/stret-2.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/stret-2.m Tue Jul 29 18:46:19 2008
@@ -44,9 +44,12 @@
return [foo_obj stret];
}
+/* APPLE LOCAL begin ARM hybrid ABI */
/* { dg-final { scan-assembler "objc_msgSend_stret" } } */
-/* { dg-final { scan-assembler "objc_msgSendSuper_stret" } } */
+/* { dg-final { scan-assembler "objc_msgSendSuper2_stret" { target arm*-*-darwin* } } } */
+/* { dg-final { scan-assembler "objc_msgSendSuper_stret" { target { ! arm*-*-darwin* } } } } */
-/* { dg-final { scan-assembler-not "objc_msgSend\[^_S\]" } } */
-/* { dg-final { scan-assembler-not "objc_msgSendSuper\[^_\]" } } */
+/* { dg-final { scan-assembler-not "objc_msgSend\[^_S\]" { target { ! arm*-*-darwin* } } } } */
+/* { dg-final { scan-assembler-not "objc_msgSendSuper\[^_\]" { target { ! arm*-*-darwin* } } } } */
+/* APPLE LOCAL end ARM hybrid ABI */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1-64bit.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1-64bit.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1-64bit.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1-64bit.m Tue Jul 29 18:46:19 2008
@@ -1,7 +1,7 @@
/* APPLE LOCAL file 4492976 */
/* Check if the objc_symtab descriptor is being laid out correctly. */
/* { dg-options "-fnext-runtime -m64 -fobjc-abi-version=1" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
#include <objc/Object.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/symtab-1.m Tue Jul 29 18:46:19 2008
@@ -4,6 +4,8 @@
/* { dg-do compile { target *-*-darwin* } } */
/* APPLE LOCAL radar 4492976 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
+/* APPLE LOCAL ARM not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/try-catch-15.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/try-catch-15.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/try-catch-15.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/try-catch-15.m Tue Jul 29 18:46:19 2008
@@ -2,7 +2,8 @@
/* Any exception usage should generate a warning when -mmacosx-version-min < 10.3
(since use of the feature depends on 10.3 specific API's) */
/* { dg-options "-mmacosx-version-min=10.2" } */
-/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* APPLE LOCAL radar 5706927 */
+/* { dg-do compile { target powerpc*-*-darwin* } } */
/* APPLE LOCAL begin radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/type-stream-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/type-stream-1.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/type-stream-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/type-stream-1.m Tue Jul 29 18:46:19 2008
@@ -1,5 +1,7 @@
/* { dg-options "-fgnu-runtime" } */
/* { dg-do run } */
+/* APPLE LOCAL ARM not available on arm-darwin targets */
+/* { dg-skip-if "" { arm*-*-darwin* } { "*" } { "" } } */
/* LLVM LOCAL */
/* { dg-xfail-if "" { *-*-darwin* } { "*" } { "" } } */
#include <objc/typedstream.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/zero-link-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/zero-link-2.m?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/zero-link-2.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/zero-link-2.m Tue Jul 29 18:46:19 2008
@@ -1,7 +1,8 @@
/* Check if the '-fno-zero-link' flag correctly _omits_ an objc_getClass() call. */
/* Contributed by Ziemowit Laski <zlaski at apple.com>. */
/* { dg-options "-fnext-runtime -fno-zero-link" } */
-/* { dg-do compile } */
+/* APPLE LOCAL ARM objc2 */
+/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* APPLE LOCAL radar 4894756 */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string1.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string1.x?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string1.x (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string1.x Tue Jul 29 18:46:19 2008
@@ -1,5 +1,5 @@
# APPLE LOCAL file string workaround 4943900
-if { [istarget "*-*-darwin9*"] } {
+if { [istarget "*-*-darwin\[9123\]*"] } {
set additional_flags "-framework Foundation -fconstant-cfstrings"
}
return 0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string2.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string2.x?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string2.x (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string2.x Tue Jul 29 18:46:19 2008
@@ -1,5 +1,5 @@
# APPLE LOCAL file string workaround 4943900
-if { [istarget "*-*-darwin9*"] } {
+if { [istarget "*-*-darwin\[9123\]*"] } {
set additional_flags "-framework Foundation -fconstant-cfstrings"
}
return 0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string3.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string3.x?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string3.x (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string3.x Tue Jul 29 18:46:19 2008
@@ -1,5 +1,5 @@
# APPLE LOCAL file string workaround 4943900
-if { [istarget "*-*-darwin9*"] } {
+if { [istarget "*-*-darwin\[9123\]*"] } {
set additional_flags "-framework Foundation -fconstant-cfstrings"
}
return 0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string4.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string4.x?rev=54182&r1=54181&r2=54182&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string4.x (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/string4.x Tue Jul 29 18:46:19 2008
@@ -1,5 +1,5 @@
# APPLE LOCAL file string workaround 4943900
-if { [istarget "*-*-darwin9*"] } {
+if { [istarget "*-*-darwin\[9123\]*"] } {
set additional_flags "-framework Foundation -fconstant-cfstrings"
}
return 0
More information about the llvm-commits
mailing list