[ARM/FDPIC v5 17/21] [ARM][testsuite] FDPIC: Handle *-*-uclinux*
Kyrill Tkachov
kyrylo.tkachov@foss.arm.com
Fri Jul 19 08:57:00 GMT 2019
On 5/15/19 1:39 PM, Christophe Lyon wrote:
> Add *-*-uclinux* to tests that work on this target.
>
> 2019-XX-XX Christophe Lyon <christophe.lyon@st.com>
>
> Â Â Â Â Â Â Â gcc/testsuite/
> Â Â Â Â Â Â Â * g++.dg/abi/forced.C: Add *-*-uclinux*.
> Â Â Â Â Â Â Â * g++.dg/abi/guard2.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ext/cleanup-10.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ext/cleanup-11.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ext/cleanup-8.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ext/cleanup-9.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ext/sync-4.C: Likewise.
> Â Â Â Â Â Â Â * g++.dg/ipa/comdat.C: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/20041106-1.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/cleanup-10.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/cleanup-11.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/cleanup-8.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/cleanup-9.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/fdata-sections-1.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/fdata-sections-2.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr39323-1.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr39323-2.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr39323-3.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr65780-1.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr65780-2.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr67338.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr78185.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr83100-1.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/pr83100-4.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-12g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-14g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-14gf.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-16g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-17g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-18g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-1f.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-22g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-2f.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-31g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-33g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-4g.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strlenopt-4gf.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/strncmp-2.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/struct-ret-3.c: Likewise.
> Â Â Â Â Â Â Â * gcc.dg/torture/pr69760.c: Likewise.
> Â Â Â Â Â Â Â * gcc.target/arm/div64-unwinding.c: Likewise.
> Â Â Â Â Â Â Â * gcc.target/arm/stack-checking.c: Likewise.
> Â Â Â Â Â Â Â * gcc.target/arm/synchronize.c: Likewise.
> Â Â Â Â Â Â Â * gcc.target/arm/pr66912.c: Add arm*-*-uclinuxfdpiceabi.
> Â Â Â Â Â Â Â * lib/target-supports.exp (check_effective_target_pie): Likewise.
> Â Â Â Â Â Â Â (check_effective_target_sync_long_long_runtime): Likewise.
> Â Â Â Â Â Â Â (check_effective_target_sync_int_long): Likewise.
> Â Â Â Â Â Â Â (check_effective_target_sync_char_short): Likewise.
>
I think these are ok, but you're changing many generic test targets.
Are the testsuite maintainers ok with this change?
Thanks,
Kyrill
> Change-Id: I89bfea79d4490c5df0b6470def5a31d7f31ac2cc
>
> diff --git a/gcc/testsuite/g++.dg/abi/forced.C
> b/gcc/testsuite/g++.dg/abi/forced.C
> index 0e6be28..2d1ec53 100644
> --- a/gcc/testsuite/g++.dg/abi/forced.C
> +++ b/gcc/testsuite/g++.dg/abi/forced.C
> @@ -1,4 +1,4 @@
> -// { dg-do run { target *-*-linux* *-*-gnu* } }
> +// { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } }
> Â // { dg-options "-pthread" }
>
> Â #include <pthread.h>
> diff --git a/gcc/testsuite/g++.dg/abi/guard2.C
> b/gcc/testsuite/g++.dg/abi/guard2.C
> index c35fa7e..74139a8 100644
> --- a/gcc/testsuite/g++.dg/abi/guard2.C
> +++ b/gcc/testsuite/g++.dg/abi/guard2.C
> @@ -1,6 +1,6 @@
> Â // PR c++/41611
> Â // Test that the guard gets its own COMDAT group.
> -// { dg-final { scan-assembler "_ZGVZN1A1fEvE1i,comdat" { target
> *-*-linux* *-*-gnu* } } }
> +// { dg-final { scan-assembler "_ZGVZN1A1fEvE1i,comdat" { target
> *-*-linux* *-*-gnu* *-*-uclinux* } } }
>
> Â struct A {
> Â Â static int f()
> diff --git a/gcc/testsuite/g++.dg/ext/cleanup-10.C
> b/gcc/testsuite/g++.dg/ext/cleanup-10.C
> index 66c7b76..56aeb66 100644
> --- a/gcc/testsuite/g++.dg/ext/cleanup-10.C
> +++ b/gcc/testsuite/g++.dg/ext/cleanup-10.C
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* Verify that cleanups work with exception handling through signal
> frames
>    on alternate stack. */
> diff --git a/gcc/testsuite/g++.dg/ext/cleanup-11.C
> b/gcc/testsuite/g++.dg/ext/cleanup-11.C
> index 6e96521..c6d3560 100644
> --- a/gcc/testsuite/g++.dg/ext/cleanup-11.C
> +++ b/gcc/testsuite/g++.dg/ext/cleanup-11.C
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* Verify that cleanups work with exception handling through realtime
> signal
>    frames on alternate stack. */
> diff --git a/gcc/testsuite/g++.dg/ext/cleanup-8.C
> b/gcc/testsuite/g++.dg/ext/cleanup-8.C
> index ccf9bef..e99508d 100644
> --- a/gcc/testsuite/g++.dg/ext/cleanup-8.C
> +++ b/gcc/testsuite/g++.dg/ext/cleanup-8.C
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* Verify that cleanups work with exception handling through signal
>    frames. */
> diff --git a/gcc/testsuite/g++.dg/ext/cleanup-9.C
> b/gcc/testsuite/g++.dg/ext/cleanup-9.C
> index dcdfcae..45e5f90 100644
> --- a/gcc/testsuite/g++.dg/ext/cleanup-9.C
> +++ b/gcc/testsuite/g++.dg/ext/cleanup-9.C
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* Verify that cleanups work with exception handling through realtime
>    signal frames. */
> diff --git a/gcc/testsuite/g++.dg/ext/sync-4.C
> b/gcc/testsuite/g++.dg/ext/sync-4.C
> index 8a2de48..029afb0 100644
> --- a/gcc/testsuite/g++.dg/ext/sync-4.C
> +++ b/gcc/testsuite/g++.dg/ext/sync-4.C
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* FIXME The following additional option should be removed after the
> fix for radr://19802258.
> Â /* { dg-xfail-run-if "PR60563 radr://19802258" { *-*-darwin* } } */
> Â /* { dg-require-effective-target sync_long_long_runtime } */
> diff --git a/gcc/testsuite/g++.dg/ipa/comdat.C
> b/gcc/testsuite/g++.dg/ipa/comdat.C
> index 1945e32..f3df99a 100644
> --- a/gcc/testsuite/g++.dg/ipa/comdat.C
> +++ b/gcc/testsuite/g++.dg/ipa/comdat.C
> @@ -1,4 +1,4 @@
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-ipa-comdats"Â } */
> Â #include <stdio.h>
> Â __attribute__ ((noinline))
> diff --git a/gcc/testsuite/gcc.dg/20041106-1.c
> b/gcc/testsuite/gcc.dg/20041106-1.c
> index cba4a06..95579ff 100644
> --- a/gcc/testsuite/gcc.dg/20041106-1.c
> +++ b/gcc/testsuite/gcc.dg/20041106-1.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target *-*-linux* *-*-gnu* *-*-solaris* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-solaris* *-*-uclinux*
> } } */
> Â /* { dg-options -O2 } */
>
> Â #include <sys/types.h>
> diff --git a/gcc/testsuite/gcc.dg/cleanup-10.c
> b/gcc/testsuite/gcc.dg/cleanup-10.c
> index 1af63ea..9fc8658 100644
> --- a/gcc/testsuite/gcc.dg/cleanup-10.c
> +++ b/gcc/testsuite/gcc.dg/cleanup-10.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* { dg-require-effective-target exceptions } */
> Â /* Verify that cleanups work with exception handling through signal
> frames
> diff --git a/gcc/testsuite/gcc.dg/cleanup-11.c
> b/gcc/testsuite/gcc.dg/cleanup-11.c
> index c1f19fe..6b499d4 100644
> --- a/gcc/testsuite/gcc.dg/cleanup-11.c
> +++ b/gcc/testsuite/gcc.dg/cleanup-11.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* { dg-require-effective-target exceptions } */
> Â /* Verify that cleanups work with exception handling through realtime
> signal
> diff --git a/gcc/testsuite/gcc.dg/cleanup-8.c
> b/gcc/testsuite/gcc.dg/cleanup-8.c
> index 45abdb2..87f4186 100644
> --- a/gcc/testsuite/gcc.dg/cleanup-8.c
> +++ b/gcc/testsuite/gcc.dg/cleanup-8.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* { dg-require-effective-target exceptions } */
> Â /* Verify that cleanups work with exception handling through signal
> diff --git a/gcc/testsuite/gcc.dg/cleanup-9.c
> b/gcc/testsuite/gcc.dg/cleanup-9.c
> index 98dc268..d34ce12 100644
> --- a/gcc/testsuite/gcc.dg/cleanup-9.c
> +++ b/gcc/testsuite/gcc.dg/cleanup-9.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* } } */
> +/* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu*
> powerpc*-*-darwin* *-*-darwin[912]* *-*-uclinux* } } */
> Â /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
> Â /* { dg-require-effective-target exceptions } */
> Â /* Verify that cleanups work with exception handling through realtime
> diff --git a/gcc/testsuite/gcc.dg/fdata-sections-1.c
> b/gcc/testsuite/gcc.dg/fdata-sections-1.c
> index 51686b9..e8a6639 100644
> --- a/gcc/testsuite/gcc.dg/fdata-sections-1.c
> +++ b/gcc/testsuite/gcc.dg/fdata-sections-1.c
> @@ -1,7 +1,7 @@
> Â /* PR middle-end/15486 */
> Â /* Origin: Jonathan Larmour <jifl-bugzilla@jifvik.org> */
>
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-fdata-sections" } */
>
> Â int x;
> diff --git a/gcc/testsuite/gcc.dg/fdata-sections-2.c
> b/gcc/testsuite/gcc.dg/fdata-sections-2.c
> index dda90ba7..48d44a2 100644
> --- a/gcc/testsuite/gcc.dg/fdata-sections-2.c
> +++ b/gcc/testsuite/gcc.dg/fdata-sections-2.c
> @@ -4,7 +4,7 @@
> Â /* This checks that string constants are put in per-function rodata
>    sections, so that they can be garbage collected. */
>
> -/* { dg-do compile { target *-*-linux* } } */
> +/* { dg-do compile { target *-*-linux* *-*-uclinux* } } */
> Â /* { dg-options "-O -ffunction-sections -fdata-sections" } */
>
> Â const char *f1(void) { return "falderalde"; }
> diff --git a/gcc/testsuite/gcc.dg/pr39323-1.c
> b/gcc/testsuite/gcc.dg/pr39323-1.c
> index 7a7fd63..d84009c 100644
> --- a/gcc/testsuite/gcc.dg/pr39323-1.c
> +++ b/gcc/testsuite/gcc.dg/pr39323-1.c
> @@ -1,5 +1,5 @@
> Â /* PR c/39323 - MAX_OFILE_ALIGNMENT in elfos.h is too big */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
>
> Â int foo __attribute__ ((aligned(1 << 29))) =Â 20; /* { dg-error
> "requested alignment" } */
> Â typedef int __attribute__ ((aligned(1 << 29))) int29; /* { dg-error
> "requested alignment" } */
> diff --git a/gcc/testsuite/gcc.dg/pr39323-2.c
> b/gcc/testsuite/gcc.dg/pr39323-2.c
> index a870729..6b6cb2e 100644
> --- a/gcc/testsuite/gcc.dg/pr39323-2.c
> +++ b/gcc/testsuite/gcc.dg/pr39323-2.c
> @@ -1,5 +1,5 @@
> Â /* PR c/39323 */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
>
> Â int bar __attribute__ ((aligned(1 << 28))) =Â 20;
>
> diff --git a/gcc/testsuite/gcc.dg/pr39323-3.c
> b/gcc/testsuite/gcc.dg/pr39323-3.c
> index b452d3c..2e2c1a2 100644
> --- a/gcc/testsuite/gcc.dg/pr39323-3.c
> +++ b/gcc/testsuite/gcc.dg/pr39323-3.c
> @@ -1,5 +1,5 @@
> Â /* PR c/39323 */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
>
> Â typedef int __attribute__ ((aligned(1 << 28))) int28;
> Â int28 foo = 20;
> diff --git a/gcc/testsuite/gcc.dg/pr65780-1.c
> b/gcc/testsuite/gcc.dg/pr65780-1.c
> index b586211..5e3226e 100644
> --- a/gcc/testsuite/gcc.dg/pr65780-1.c
> +++ b/gcc/testsuite/gcc.dg/pr65780-1.c
> @@ -1,5 +1,5 @@
> Â /* PR target/65780 */
> -/* { dg-do link { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do link { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2" } */
>
> Â int optopt;
> diff --git a/gcc/testsuite/gcc.dg/pr65780-2.c
> b/gcc/testsuite/gcc.dg/pr65780-2.c
> index bff3323..932cbe1 100644
> --- a/gcc/testsuite/gcc.dg/pr65780-2.c
> +++ b/gcc/testsuite/gcc.dg/pr65780-2.c
> @@ -1,5 +1,5 @@
> Â /* PR target/65780 */
> -/* { dg-do link { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do link { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-require-effective-target pie } */
> Â /* { dg-options "-O2 -fpie" } */
>
> diff --git a/gcc/testsuite/gcc.dg/pr67338.c
> b/gcc/testsuite/gcc.dg/pr67338.c
> index 0fdc302..7bfbef2 100644
> --- a/gcc/testsuite/gcc.dg/pr67338.c
> +++ b/gcc/testsuite/gcc.dg/pr67338.c
> @@ -1,4 +1,4 @@
> Â /* PR c/67338 */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
>
> Â struct S { __attribute__((aligned (1 << 28))) double a; };
> diff --git a/gcc/testsuite/gcc.dg/pr78185.c
> b/gcc/testsuite/gcc.dg/pr78185.c
> index 405f748..d7781b2 100644
> --- a/gcc/testsuite/gcc.dg/pr78185.c
> +++ b/gcc/testsuite/gcc.dg/pr78185.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O" } */
>
> Â #include <unistd.h>
> diff --git a/gcc/testsuite/gcc.dg/pr83100-1.c
> b/gcc/testsuite/gcc.dg/pr83100-1.c
> index 233c1f6..ccfb8c6 100644
> --- a/gcc/testsuite/gcc.dg/pr83100-1.c
> +++ b/gcc/testsuite/gcc.dg/pr83100-1.c
> @@ -1,5 +1,5 @@
> Â /* PR target/83100 */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fcommon -fdata-sections" } */
>
> Â const int a;
> diff --git a/gcc/testsuite/gcc.dg/pr83100-4.c
> b/gcc/testsuite/gcc.dg/pr83100-4.c
> index bb26735..2f83247 100644
> --- a/gcc/testsuite/gcc.dg/pr83100-4.c
> +++ b/gcc/testsuite/gcc.dg/pr83100-4.c
> @@ -1,5 +1,5 @@
> Â /* PR target/83100 */
> -/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do compile { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fno-common -fdata-sections" } */
>
> Â const int a;
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-12g.c
> b/gcc/testsuite/gcc.dg/strlenopt-12g.c
> index f1dec1f..fb0eeb2 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-12g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-12g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-14g.c
> b/gcc/testsuite/gcc.dg/strlenopt-14g.c
> index 62a83bf..8bce645 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-14g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-14g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy and mempcpy
> functions. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
> Â /* Bionic targets don't have mempcpy */
> Â /* { dg-require-effective-target non_bionic } */
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-14gf.c
> b/gcc/testsuite/gcc.dg/strlenopt-14gf.c
> index 8b126fc..cc9092b 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-14gf.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-14gf.c
> @@ -1,6 +1,6 @@
> Â /* This test needs runtime that provides stpcpy, mempcpy and __*_chk
>    functions. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
> Â /* Bionic targets don't have mempcpy */
> Â /* { dg-require-effective-target non_bionic } */
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-16g.c
> b/gcc/testsuite/gcc.dg/strlenopt-16g.c
> index 0cf8410..8b8f0d6 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-16g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-16g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-17g.c
> b/gcc/testsuite/gcc.dg/strlenopt-17g.c
> index 184e530..0d5f559 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-17g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-17g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-18g.c
> b/gcc/testsuite/gcc.dg/strlenopt-18g.c
> index f734675..e3706d2 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-18g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-18g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-1f.c
> b/gcc/testsuite/gcc.dg/strlenopt-1f.c
> index 856774d..bb320ab 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-1f.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-1f.c
> @@ -1,5 +1,5 @@
>  /* This test needs runtime that provides __*_chk functions. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinu* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define FORTIFY_SOURCE 2
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-22g.c
> b/gcc/testsuite/gcc.dg/strlenopt-22g.c
> index 9c5d020..348903f 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-22g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-22g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-2f.c
> b/gcc/testsuite/gcc.dg/strlenopt-2f.c
> index 1e915da..f61a8ba 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-2f.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-2f.c
> @@ -1,5 +1,5 @@
>  /* This test needs runtime that provides __*_chk functions. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define FORTIFY_SOURCE 2
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-31g.c
> b/gcc/testsuite/gcc.dg/strlenopt-31g.c
> index 45cc29c..3588b06 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-31g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-31g.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-33g.c
> b/gcc/testsuite/gcc.dg/strlenopt-33g.c
> index 7d24d2b..8566782 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-33g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-33g.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-4g.c
> b/gcc/testsuite/gcc.dg/strlenopt-4g.c
> index 879d566..c6a2d6f 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-4g.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-4g.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy function. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strlenopt-4gf.c
> b/gcc/testsuite/gcc.dg/strlenopt-4gf.c
> index 7f261b7..2783c3b 100644
> --- a/gcc/testsuite/gcc.dg/strlenopt-4gf.c
> +++ b/gcc/testsuite/gcc.dg/strlenopt-4gf.c
> @@ -1,5 +1,5 @@
> Â /* This test needs runtime that provides stpcpy and __*_chk
> functions. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2 -fdump-tree-strlen" } */
>
> Â #define USE_GNU
> diff --git a/gcc/testsuite/gcc.dg/strncmp-2.c
> b/gcc/testsuite/gcc.dg/strncmp-2.c
> index f5555ba..6818b30 100644
> --- a/gcc/testsuite/gcc.dg/strncmp-2.c
> +++ b/gcc/testsuite/gcc.dg/strncmp-2.c
> @@ -1,5 +1,5 @@
> Â /* Test strncmp builtin expansion for compilation and proper
> execution. */
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-options "-O2" } */
> Â /* { dg-require-effective-target ptr32plus } */
>
> diff --git a/gcc/testsuite/gcc.dg/struct-ret-3.c
> b/gcc/testsuite/gcc.dg/struct-ret-3.c
> index 4083bb4..4c0a0e6 100644
> --- a/gcc/testsuite/gcc.dg/struct-ret-3.c
> +++ b/gcc/testsuite/gcc.dg/struct-ret-3.c
> @@ -1,7 +1,7 @@
> Â /* PR middle-end/31309 */
> Â /* Origin: Peeter Joot <peeterj@ca.ibm.com> */
>
> -/* { dg-do run { target *-*-linux* *-*-gnu* } } */
> +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } */
> Â /* { dg-add-options stack_size } */
>
> Â #include <sys/mman.h>
> diff --git a/gcc/testsuite/gcc.dg/torture/pr69760.c
> b/gcc/testsuite/gcc.dg/torture/pr69760.c
> index 8f24608..53733c7 100644
> --- a/gcc/testsuite/gcc.dg/torture/pr69760.c
> +++ b/gcc/testsuite/gcc.dg/torture/pr69760.c
> @@ -1,5 +1,5 @@
> Â /* PR tree-optimization/69760 */
> -/* { dg-do run { target { { *-*-linux* *-*-gnu* } && mmap } } } */
> +/* { dg-do run { target { { *-*-linux* *-*-gnu* *-*-uclinux* } &&
> mmap } } } */
> Â /* { dg-options "-O2" } */
>
> Â #include <unistd.h>
> diff --git a/gcc/testsuite/gcc.target/arm/div64-unwinding.c
> b/gcc/testsuite/gcc.target/arm/div64-unwinding.c
> index 7f112ee..0944281 100644
> --- a/gcc/testsuite/gcc.target/arm/div64-unwinding.c
> +++ b/gcc/testsuite/gcc.target/arm/div64-unwinding.c
> @@ -1,6 +1,6 @@
>  /* Performing a 64-bit division should not pull in the unwinder. */
>
> -/* { dg-do run { target { ! *-*-linux* } } } */
> +/* { dg-do run { target { { ! *-*-linux* } && { ! *-*-uclinux* } } } } */
> Â /* { dg-options "-O0" } */
>
> Â #include <stdlib.h>
> diff --git a/gcc/testsuite/gcc.target/arm/pr66912.c
> b/gcc/testsuite/gcc.target/arm/pr66912.c
> index 27e4c45..7e6294c 100644
> --- a/gcc/testsuite/gcc.target/arm/pr66912.c
> +++ b/gcc/testsuite/gcc.target/arm/pr66912.c
> @@ -1,4 +1,4 @@
> -/* { dg-do compile { target *-*-linux* } } */
> +/* { dg-do compile { target *-*-linux* arm*-*-uclinuxfdpiceabi } } */
> Â /* { dg-options "-O2 -fpic" } */
>
> Â __attribute__((visibility("protected")))
> diff --git a/gcc/testsuite/gcc.target/arm/stack-checking.c
> b/gcc/testsuite/gcc.target/arm/stack-checking.c
> index 4b53bed..9d1d2b0 100644
> --- a/gcc/testsuite/gcc.target/arm/stack-checking.c
> +++ b/gcc/testsuite/gcc.target/arm/stack-checking.c
> @@ -1,4 +1,4 @@
> -/* { dg-do run { target { *-*-linux* } } } */
> +/* { dg-do run { target { *-*-linux* *-*-uclinux* } } } */
> Â /* { dg-require-stack-check "" } */
> Â /* { dg-options "-fstack-check" } */
>
> diff --git a/gcc/testsuite/gcc.target/arm/synchronize.c
> b/gcc/testsuite/gcc.target/arm/synchronize.c
> index 7ef10e2..912f407 100644
> --- a/gcc/testsuite/gcc.target/arm/synchronize.c
> +++ b/gcc/testsuite/gcc.target/arm/synchronize.c
> @@ -1,4 +1,4 @@
> -/* { dg-final { scan-assembler "__sync_synchronize|dmb|mcr" { target
> arm*-*-linux-* } } } */
> +/* { dg-final { scan-assembler "__sync_synchronize|dmb|mcr" { target
> arm*-*-linux-* arm*-*-uclinux* } } } */
>
> Â void *foo (void)
> Â {
> diff --git a/gcc/testsuite/lib/target-supports.exp
> b/gcc/testsuite/lib/target-supports.exp
> index 4bb7da2..60d68f4 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -1189,6 +1189,7 @@ proc check_effective_target_pie { } {
> Â Â Â Â Â Â Â Â Â || [istarget *-*-dragonfly*]
> Â Â Â Â Â Â Â Â Â || [istarget *-*-freebsd*]
> Â Â Â Â Â Â Â Â Â || [istarget *-*-linux*]
> +Â Â Â Â Â Â Â || [istarget arm*-*-uclinuxfdpiceabi]
> Â Â Â Â Â Â Â Â Â || [istarget *-*-gnu*]
> Â Â Â Â Â Â Â Â Â || [istarget *-*-amdhsa]} {
> Â Â Â Â Â Â Â Â return 1;
> @@ -6752,6 +6753,7 @@ proc
> check_effective_target_sync_long_long_runtime { } {
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â } ""
> Â Â Â Â Â Â Â Â Â Â }])
> Â Â Â Â Â Â Â Â Â || [istarget aarch64*-*-*]
> +Â Â Â Â Â Â Â || [istarget arm*-*-uclinuxfdpiceabi]
> Â Â Â Â Â Â Â Â Â || ([istarget arm*-*-linux-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â && [check_runtime sync_longlong_runtime {
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #include <stdlib.h>
> @@ -6812,6 +6814,7 @@ proc check_effective_target_sync_int_long { } {
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget aarch64*-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget alpha*-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget arm*-*-linux-*]
> +Â Â Â Â Â Â Â Â Â Â Â || [istarget arm*-*-uclinuxfdpiceabi]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || ([istarget arm*-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â && [check_effective_target_arm_acq_rel])
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget bfin*-*linux*]
> @@ -6836,6 +6839,7 @@ proc check_effective_target_sync_char_short { } {
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget i?86-*-*] || [istarget x86_64-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget alpha*-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget arm*-*-linux-*]
> +Â Â Â Â Â Â Â Â Â Â Â || [istarget arm*-*-uclinuxfdpiceabi]
> Â Â Â Â Â Â Â Â Â Â Â Â Â || ([istarget arm*-*-*]
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â && [check_effective_target_arm_acq_rel])
> Â Â Â Â Â Â Â Â Â Â Â Â Â || [istarget hppa*-*linux*]
> --
> 2.6.3
>
More information about the Gcc-patches
mailing list