[llvm-commits] [llvm-gcc-4.2] r48288 - in /llvm-gcc-4.2/trunk/gcc/testsuite: gcc.dg/vmx/varargs-4.c lib/target-supports-dg.exp
Dale Johannesen
dalej at apple.com
Wed Mar 12 10:29:52 PDT 2008
Author: johannes
Date: Wed Mar 12 12:29:52 2008
New Revision: 48288
URL: http://llvm.org/viewvc/llvm-project?rev=48288&view=rev
Log:
Disable for llvm a test that assumes the holes in
structs get copied when the struct does. Llvm does
not do this and it is not required to.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/vmx/varargs-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp
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=48288&r1=48287&r2=48288&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 Wed Mar 12 12:29:52 2008
@@ -1,3 +1,4 @@
+/* { dg-require-holes-deterministic "" } */
#include "harness.h"
#include <stdarg.h>
#include <stddef.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp?rev=48288&r1=48287&r2=48288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp Wed Mar 12 12:29:52 2008
@@ -88,6 +88,15 @@
}
}
+# Skip tests that assume padding holes in a struct have
+# deterministic values.
+proc dg-require-holes-deterministic { args } {
+ if { [ is_llvm ] } {
+ upvar dg-do-what dg-do-what
+ set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
+ }
+}
+
# LLVM LOCAL end
# If this target does not support DLL attributes skip this test.
More information about the llvm-commits
mailing list