OSDN Git Service

PR testsuite/30179
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Dec 2006 21:41:58 +0000 (21:41 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Dec 2006 21:41:58 +0000 (21:41 +0000)
PR testsuite/30180
* gcc.dg/builtin-bswap-1.c: Require stdint_types.
* gcc.dg/builtin-bswap-2.c: Likewise.
* gcc.dg/builtin-bswap-3.c: Likewise.
* gcc.dg/builtin-bswap-4.c: Likewise.
* lib/target-supports.exp (check_effective_target_stdint_types): New.
* cc.c-torture/execute/mode-dependent-address.x: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119945 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/mode-dependent-address.x [new file with mode: 0644]
gcc/testsuite/gcc.dg/builtin-bswap-1.c
gcc/testsuite/gcc.dg/builtin-bswap-2.c
gcc/testsuite/gcc.dg/builtin-bswap-3.c
gcc/testsuite/gcc.dg/builtin-bswap-4.c
gcc/testsuite/lib/target-supports.exp

index 330e62a..d117169 100644 (file)
@@ -1,3 +1,14 @@
+2006-12-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR testsuite/30179
+       PR testsuite/30180
+       * gcc.dg/builtin-bswap-1.c: Require stdint_types.
+       * gcc.dg/builtin-bswap-2.c: Likewise.
+       * gcc.dg/builtin-bswap-3.c: Likewise.
+       * gcc.dg/builtin-bswap-4.c: Likewise.
+       * lib/target-supports.exp (check_effective_target_stdint_types): New.
+       * cc.c-torture/execute/mode-dependent-address.x: New file.
+
 2006-12-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/30145
 2006-12-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/30145
diff --git a/gcc/testsuite/gcc.c-torture/execute/mode-dependent-address.x b/gcc/testsuite/gcc.c-torture/execute/mode-dependent-address.x
new file mode 100644 (file)
index 0000000..6622e71
--- /dev/null
@@ -0,0 +1,7 @@
+load_lib target-supports.exp
+
+if { ! [check_effective_target_stdint_types] } {
+       return 1
+}
+
+return 0
index 02912db..6b4a805 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
 /* { dg-do compile } */
+/* { dg-require-effective-target stdint_types } */
 /* { dg-options "" } */
 /* { dg-final { scan-assembler-not "__builtin_" } } */
 
 /* { dg-options "" } */
 /* { dg-final { scan-assembler-not "__builtin_" } } */
 
index f601056..745fed9 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
 /* { dg-do run } */
+/* { dg-require-effective-target stdint_types } */
 /* { dg-options "" } */
 #include <stdint.h>
 
 /* { dg-options "" } */
 #include <stdint.h>
 
index 3416d65..031817e 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
 /* { dg-do run } */
+/* { dg-require-effective-target stdint_types } */
 /* { dg-options "" } */
 #include <stdint.h>
 
 /* { dg-options "" } */
 #include <stdint.h>
 
index d14358e..03e190a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
 /* { dg-do run } */
+/* { dg-require-effective-target stdint_types } */
 /* { dg-options "-Wall" } */
 
 #include <stdint.h>
 /* { dg-options "-Wall" } */
 
 #include <stdint.h>
index 9bf6193..4c99345 100644 (file)
@@ -2044,3 +2044,14 @@ proc check_effective_target_string_merging { } {
                    const char *var = "String";
                } {-O2}]
 }
                    const char *var = "String";
                } {-O2}]
 }
+
+# Return 1 if target has the basic signed and unsigned types in
+# <stdint.h>, 0 otherwise.
+
+proc check_effective_target_stdint_types { } {
+    return [check_no_compiler_messages stdint_types assembly {
+       #include <stdint.h>
+       int8_t a; int16_t b; int32_t c; int64_t d;
+       uint8_t e; uint16_t f; uint32_t g; uint64_t h;
+    }]
+}