re PR testsuite/30179 (FAIL: gcc.c-torture/execute/mode-dependent-address.c compilation, -O0)

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.

From-SVN: r119945
This commit is contained in:
John David Anglin 2006-12-15 21:41:58 +00:00 committed by John David Anglin
parent b65151d3dd
commit 8f3fc4aa8d
7 changed files with 33 additions and 0 deletions

View 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

View File

@ -0,0 +1,7 @@
load_lib target-supports.exp
if { ! [check_effective_target_stdint_types] } {
return 1
}
return 0

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */

View File

@ -1,4 +1,5 @@
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>

View File

@ -1,4 +1,5 @@
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>

View File

@ -1,4 +1,5 @@
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "-Wall" } */
#include <stdint.h>

View File

@ -2044,3 +2044,14 @@ proc check_effective_target_string_merging { } {
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;
}]
}