]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_effective_target_ptr32plus): Fail for MSP430.
authorNick Clifton <nickc@redhat.com>
Tue, 1 Oct 2013 09:18:30 +0000 (09:18 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 1 Oct 2013 09:18:30 +0000 (09:18 +0000)
* lib/target-supports.exp (check_effective_target_ptr32plus): Fail
for MSP430.
* gcc.c-torture/compile/20010327-1.c: Only run the test for
ptr32plus targets.
* gcc.c-torture/compile/pr41181.c: Likewise.
* gcc.c-torture/compile/calls.c: Likewise.
* gcc.c-torture/compile/990617-1.c: Likewise.
* gcc.c-torture/compile/pr55955.c: Only run the test for
int32plus targets.
* gcc.c-torture/compile/limits-externdecl.c: Likewise.

From-SVN: r203055

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010327-1.c
gcc/testsuite/gcc.c-torture/compile/20020604-1.c
gcc/testsuite/gcc.c-torture/compile/20080625-1.c
gcc/testsuite/gcc.c-torture/compile/990617-1.c
gcc/testsuite/gcc.c-torture/compile/calls.c
gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c
gcc/testsuite/gcc.c-torture/compile/pr41181.c
gcc/testsuite/gcc.c-torture/compile/pr55955.c
gcc/testsuite/lib/target-supports.exp

index 37af098de5d25779792f182b9400ef9c8938a283..2e49e458188679ba33ba76da3bfea8d80cfedbd6 100644 (file)
@@ -1,3 +1,16 @@
+2013-10-01  Nick Clifton  <nickc@redhat.com>
+
+       * lib/target-supports.exp (check_effective_target_ptr32plus): Fail
+       for MSP430.
+       * gcc.c-torture/compile/20010327-1.c: Only run the test for
+       ptr32plus targets.
+       * gcc.c-torture/compile/pr41181.c: Likewise.
+       * gcc.c-torture/compile/calls.c: Likewise.
+       * gcc.c-torture/compile/990617-1.c: Likewise.
+       * gcc.c-torture/compile/pr55955.c: Only run the test for
+       int32plus targets.
+       * gcc.c-torture/compile/limits-externdecl.c: Likewise.
+
 2013-10-01  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/58553
index ce68f78df1d9f1e740bc0de25f153774646662e6..7e9c0c73a0275e40bffeb5285f3ee78d852bc88e 100644 (file)
@@ -1,7 +1,4 @@
-/* { dg-skip-if "non-SI pointers" { m32c-*-* } { "*" } { "" } } */
-/* { dg-skip-if "HI mode pointer for avr" { "avr-*-*" } { "*" } { "" } } */ 
-/* { dg-skip-if "HI mode pointer for pdp11" { "pdp11-*-*" } { "*" } { "" } } */ 
-/* { dg-skip-if "non-SI pointers for w64" { "x86_64-*-mingw*" } { "*" } { "" } } */ 
+/* { dg-require-effective-target ptr32plus } */
 
 /* This testcase tests whether GCC can produce static initialized data
    that references addresses of size 'unsigned long', even if that's not
index 9486583e973e024310b7bdd7a26e80a70185c66d..d2e186a7182c7d91b8b2510a1da70240d37aae6a 100644 (file)
@@ -1,7 +1,6 @@
 /* { dg-do assemble } */
-/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } { "*" } { "" } } */ 
+/* { dg-require-effective-target ptr32plus } */
 /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
-/* { dg-skip-if "" { m32c-*-* } { } { } } */
 
 /* PR c/6957
    This testcase ICEd at -O2 on IA-32, because
index 16def2c8a371a2c405025c103eb9137eee204efb..4b3b7c2c142e52c31b61d443925d651f4adb6a93 100644 (file)
@@ -1,4 +1,5 @@
-/* { dg-skip-if "too much data" { "avr-*-*" "m32c-*-*" "pdp11-*-*" } { "*" } { "" } } */
+/* { dg-require-effective-target int32plus } */
+
 struct peakbufStruct {
     unsigned int lnum [5000];
     int lscan [5000][4000];
index e9d3cf336fcf97fd55aabb610e1877db1dda6411..350b96a61c8605fb19d1c57342760207067822a0 100644 (file)
@@ -1,7 +1,5 @@
-/* 0x70000000 is too large a constant to become a pointer on
-   xstormy16. */
 /* { dg-do assemble } */
-/* { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } } */
+/* { dg-require-effective-target ptr32plus } */
 
 int main()
 {
index 1582c0e92fa9191412eaff41ed8f562ee11e95b2..1241058a0735bdbcb91d5eea267131c4cc1d8791 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target ptr32plus } */
 typedef void  *(*T)(void);
 f1 ()
 {
index 6899d4b097dd1047b6dc22c96a5a1cf7b6f19d21..17afe73088367f94762e1a824f1c0038da1763a9 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target int32plus } */
 /* Inspired by the test case for PR middle-end/52640.  */
 
 typedef struct
@@ -52,4 +53,4 @@ LIM5 (X);
 REFERENCE references[] = {
   LIM5 (X)
   0
-}; /* { dg-error "size of array is too large" "" { target avr-*-* } } */
+};
index 5fafb020ea5f4789b72859979959e24de5a9028a..e1e48063a94f2cbab4d788e8e1dfde0b3064ce38 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target ptr32plus } */
 /* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } { "*" } { "" } } */ 
 char paths[1024];
 static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
index 2656ffb94fb4b9c56c5cd46c4341b98a7957bc42..cd96d56e8bbdf0090e59585cbba20ab2e041c54c 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target int32plus } */
 /* PR tree-optimization/55955 */
 
 int b;
index f99703106562ccb53bf50180491a03004c0cebb2..7eb4dfeec0e8fbae770e4dc2206108bcbd559a7a 100644 (file)
@@ -1751,6 +1751,13 @@ proc check_effective_target_int32plus { } {
 # options, 0 otherwise.
 
 proc check_effective_target_ptr32plus { } {
+    # The msp430 has 16-bit or 20-bit pointers.  The 20-bit pointer is stored
+    # in a 32-bit slot when in memory, so sizeof(void *) returns 4, but it
+    # cannot really hold a 32-bit address, so we always return false here.
+    if { [istarget msp430-*-*] } {
+        return 0
+    }
     return [check_no_compiler_messages ptr32plus object {
        int dummy[sizeof (void *) >= 4 ? 1 : -1];
     }]