mirror of git://gcc.gnu.org/git/gcc.git
Skip tests that assume 4 byte alignment for avr
gcc/testsuite
* gcc.dg/ipa/propalign-1.c: Skip for targets with !natural_alignment_32
and !natural_alignment_64.
* gcc.dg/ipa/propalign-2.c: Likewise.
* gcc.dg/ipa/propalign-3.c: Likewise.
* gcc.dg/ipa/propalign-4.c: Likewise.
* gcc.dg/ipa/propalign-5.c: Likewise.
* lib/target-supports.exp
(check_effective_target_natural_alignment_32): Add avr-*-*.
From-SVN: r239647
This commit is contained in:
parent
fd3cda8b87
commit
cd8002350e
|
|
@ -1,3 +1,14 @@
|
||||||
|
2016-08-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
||||||
|
|
||||||
|
* gcc.dg/ipa/propalign-1.c: Skip for targets with !natural_alignment_32
|
||||||
|
and !natural_alignment_64.
|
||||||
|
* gcc.dg/ipa/propalign-2.c: Likewise.
|
||||||
|
* gcc.dg/ipa/propalign-3.c: Likewise.
|
||||||
|
* gcc.dg/ipa/propalign-4.c: Likewise.
|
||||||
|
* gcc.dg/ipa/propalign-5.c: Likewise.
|
||||||
|
* lib/target-supports.exp
|
||||||
|
(check_effective_target_natural_alignment_32): Add avr-*-*.
|
||||||
|
|
||||||
2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
|
2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
|
||||||
|
|
||||||
PR tree-optimization/61839
|
PR tree-optimization/61839
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
||||||
|
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
||||||
|
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fno-ipa-cp-alignment -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fno-ipa-cp-alignment -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
|
||||||
|
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fdump-ipa-cp" } */
|
/* { dg-options "-O2 -fdump-ipa-cp" } */
|
||||||
|
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fdump-ipa-cp" } */
|
/* { dg-options "-O2 -fdump-ipa-cp" } */
|
||||||
|
/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
|
|
@ -5350,7 +5350,8 @@ proc check_effective_target_natural_alignment_32 { } {
|
||||||
} else {
|
} else {
|
||||||
# FIXME: 32bit powerpc: guaranteed only if MASK_ALIGN_NATURAL/POWER.
|
# FIXME: 32bit powerpc: guaranteed only if MASK_ALIGN_NATURAL/POWER.
|
||||||
set et_natural_alignment_32_saved 1
|
set et_natural_alignment_32_saved 1
|
||||||
if { ([istarget *-*-darwin*] && [is-effective-target lp64]) } {
|
if { ([istarget *-*-darwin*] && [is-effective-target lp64])
|
||||||
|
|| [istarget avr-*-*] } {
|
||||||
set et_natural_alignment_32_saved 0
|
set et_natural_alignment_32_saved 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue