Commit 8f3fc4aa by John David Anglin Committed by John David Anglin

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
parent b65151d3
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
load_lib target-supports.exp
if { ! [check_effective_target_stdint_types] } {
return 1
}
return 0
/* { dg-do compile } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
......
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>
......
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
#include <stdint.h>
......
/* { dg-do run } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "-Wall" } */
#include <stdint.h>
......
......@@ -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;
}]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment