mirror of git://gcc.gnu.org/git/gcc.git
2013-02-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* lib/target-supports.exp
(check_effective_target_powerpc_eabi_ok): New.
* gcc.target/powerpc/ppc-eabi.c: Use require effective target
powerpc_eabi_ok.
* gcc.target/powerpc/ppc-sdata-1.c: Likewise.
* gcc.target/powerpc/spe-small-data-2.c: Likewise. Do not run, compile
only.
* gcc.target/powerpc/ppc-sdata-2.c: Add powerpc-*-rtems*.
* gcc.target/powerpc/pr51623.c: Likewise.
* gcc.target/powerpc/ppc-stackalign-1.c: Likewise.
* gcc.target/powerpc/ppc-ldstruct.c: Likewise.
From-SVN: r195957
This commit is contained in:
parent
6a52ccb3b8
commit
0c5c0b4cd5
|
|
@ -1,3 +1,17 @@
|
||||||
|
2013-02-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
|
* lib/target-supports.exp
|
||||||
|
(check_effective_target_powerpc_eabi_ok): New.
|
||||||
|
* gcc.target/powerpc/ppc-eabi.c: Use require effective target
|
||||||
|
powerpc_eabi_ok.
|
||||||
|
* gcc.target/powerpc/ppc-sdata-1.c: Likewise.
|
||||||
|
* gcc.target/powerpc/spe-small-data-2.c: Likewise. Do not run, compile
|
||||||
|
only.
|
||||||
|
* gcc.target/powerpc/ppc-sdata-2.c: Add powerpc-*-rtems*.
|
||||||
|
* gcc.target/powerpc/pr51623.c: Likewise.
|
||||||
|
* gcc.target/powerpc/ppc-stackalign-1.c: Likewise.
|
||||||
|
* gcc.target/powerpc/ppc-ldstruct.c: Likewise.
|
||||||
|
|
||||||
2013-02-11 Alexander Potapenko <glider@google.com>
|
2013-02-11 Alexander Potapenko <glider@google.com>
|
||||||
Jack Howarth <howarth@bromo.med.uc.edu>
|
Jack Howarth <howarth@bromo.med.uc.edu>
|
||||||
Jakub Jelinek <jakub@redhat.com>
|
Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
/* PR target/16952 */
|
/* PR target/16952 */
|
||||||
/* { dg-do compile { target { powerpc*-*-linux* && ilp32 } } } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target powerpc_eabi_ok } */
|
||||||
/* { dg-options "-meabi -mrelocatable" } */
|
/* { dg-options "-meabi -mrelocatable" } */
|
||||||
char *s = "boo";
|
char *s = "boo";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */
|
/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* powerpc*-*-rtems* } } */
|
||||||
/* { dg-options "-O -mlong-double-128" } */
|
/* { dg-options "-O -mlong-double-128" } */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* } } } } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
|
/* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
|
||||||
|
/* { dg-require-effective-target powerpc_eabi_ok } */
|
||||||
/* { dg-require-effective-target nonpic } */
|
/* { dg-require-effective-target nonpic } */
|
||||||
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
|
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
|
||||||
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
|
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* } } } } */
|
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* powerpc-*-rtems* } } } } */
|
||||||
/* { dg-options "-O2 -fno-common -G 8 -msdata=sysv" } */
|
/* { dg-options "-O2 -fno-common -G 8 -msdata=sysv" } */
|
||||||
/* { dg-require-effective-target nonpic } */
|
/* { dg-require-effective-target nonpic } */
|
||||||
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
|
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* { dg-do run { target powerpc*-*-linux* powerpc*-*-eabi* } } */
|
/* { dg-do run { target powerpc*-*-linux* powerpc*-*-eabi* powerpc-*-rtems* } } */
|
||||||
/* { dg-options {} } */
|
/* { dg-options {} } */
|
||||||
|
|
||||||
/* Test stack pointer alignment against variable alloca. */
|
/* Test stack pointer alignment against variable alloca. */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* PR target/51623 */
|
/* PR target/51623 */
|
||||||
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* } } } } */
|
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* powerpc-*-rtems* } } } } */
|
||||||
/* { dg-options "-mrelocatable -ffreestanding" } */
|
/* { dg-options "-mrelocatable -ffreestanding" } */
|
||||||
|
|
||||||
/* This generated an error, since the compiler was calling
|
/* This generated an error, since the compiler was calling
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* Verify that we don't ICE trying to put float data in .sdata2. */
|
/* Verify that we don't ICE trying to put float data in .sdata2. */
|
||||||
/* { dg-do run { target { powerpc*-*-linux* && powerpc_spe } } } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target powerpc_eabi_ok } */
|
||||||
/* { dg-options "-msdata=eabi -mcall-eabi -G 8" } */
|
/* { dg-options "-msdata=eabi -mcall-eabi -G 8" } */
|
||||||
|
|
||||||
double x;
|
double x;
|
||||||
|
|
|
||||||
|
|
@ -2605,6 +2605,18 @@ proc check_effective_target_arm_prefer_ldrd_strd { } {
|
||||||
} "-O2 -mthumb" ]
|
} "-O2 -mthumb" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Return 1 if this is a PowerPC target supporting -meabi.
|
||||||
|
|
||||||
|
proc check_effective_target_powerpc_eabi_ok { } {
|
||||||
|
if { [istarget powerpc*-*-*] } {
|
||||||
|
return [check_no_compiler_messages powerpc_eabi_ok object {
|
||||||
|
int dummy;
|
||||||
|
} "-meabi"]
|
||||||
|
} else {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Return 1 if this is a PowerPC target with floating-point registers.
|
# Return 1 if this is a PowerPC target with floating-point registers.
|
||||||
|
|
||||||
proc check_effective_target_powerpc_fprs { } {
|
proc check_effective_target_powerpc_fprs { } {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue