From 4ff10c0ec2db831023cc9c2a3242e8580beb3ec8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 26 Jun 2011 09:57:30 +0200 Subject: [PATCH] [multiple changes] 2011-06-26 Jakub Jelinek PR tree-optimization/48377 * gcc.dg/vect/pr48377.c: Add dg-require-effective-target non_strict_align. 2011-06-26 Steve Ellcey PR middle-end/49191 * lib/target-supports.exp (check_effective_target_non_strict_align): New. * gcc.dg/memcpy-3.c: Add dg-require-effective-target non_strict_align. From-SVN: r175408 --- gcc/testsuite/ChangeLog | 13 +++++++++++++ gcc/testsuite/gcc.dg/memcpy-3.c | 1 + gcc/testsuite/gcc.dg/vect/pr48377.c | 1 + gcc/testsuite/lib/target-supports.exp | 8 ++++++++ 4 files changed, 23 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c0f297671da..01ef0d9544f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2011-06-26 Jakub Jelinek + + PR tree-optimization/48377 + * gcc.dg/vect/pr48377.c: Add dg-require-effective-target + non_strict_align. + +2011-06-26 Steve Ellcey + + PR middle-end/49191 + * lib/target-supports.exp (check_effective_target_non_strict_align): + New. + * gcc.dg/memcpy-3.c: Add dg-require-effective-target non_strict_align. + 2011-06-24 Martin Jambor PR tree-optimizations/49516 diff --git a/gcc/testsuite/gcc.dg/memcpy-3.c b/gcc/testsuite/gcc.dg/memcpy-3.c index ba3db56c99d..3b5693b13ef 100644 --- a/gcc/testsuite/gcc.dg/memcpy-3.c +++ b/gcc/testsuite/gcc.dg/memcpy-3.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-require-effective-target non_strict_align } */ int get_int(const void *p) { diff --git a/gcc/testsuite/gcc.dg/vect/pr48377.c b/gcc/testsuite/gcc.dg/vect/pr48377.c index b9aaf49ee73..24846cd042e 100644 --- a/gcc/testsuite/gcc.dg/vect/pr48377.c +++ b/gcc/testsuite/gcc.dg/vect/pr48377.c @@ -1,4 +1,5 @@ /* PR tree-optimization/48377 */ +/* { dg-require-effective-target non_strict_align } */ typedef unsigned int U __attribute__((__aligned__ (1), __may_alias__)); diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index b0e69c1c5ce..c69847a6ced 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3962,3 +3962,11 @@ proc check_vect_support_and_set_flags { } { return 1 } +proc check_effective_target_non_strict_align {} { + return [check_no_compiler_messages non_strict_align assembly { + char *y; + typedef char __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) c; + c *z; + void foo(void) { z = (c *) y; } + } "-Wcast-align"] +} -- 2.30.2