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
+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
--- /dev/null
+load_lib target-supports.exp
+
+if { ! [check_effective_target_stdint_types] } {
+ return 1
+}
+
+return 0
+/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
+/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>
/* { dg-options "" } */
#include <stdint.h>
+/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>
/* { dg-options "" } */
#include <stdint.h>
+/* { dg-require-effective-target stdint_types } */
/* { dg-options "-Wall" } */
#include <stdint.h>
/* { dg-options "-Wall" } */
#include <stdint.h>
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;
+ }]
+}