From: Nathan Sidwell Date: Mon, 24 Aug 2015 14:06:12 +0000 (+0000) Subject: pr49551.c: Needs -fdata-sections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55466f20d76b4c619ae777f40d06f83e23dd5170;p=gcc.git pr49551.c: Needs -fdata-sections. * gcc/testsuite/gcc.dg/pr49551.c: Needs -fdata-sections. * gcc/testsuite/gcc.dg/pr64935-2.c: Needs scheduling. * gcc/testsuite/gcc.dg/torture/pr66101.c: Needs nonlocal goto. * gcc/testsuite/gcc.dg/torture/pr63738.c: Likewise. * gcc/testsuite/gcc.dg/torture/pr64728.c: Likewise. * gcc/testsuite/gcc.dg/pr63748.c: Likewise. * gcc/testsuite/gcc.dg/20020312-2.c: Likewise. * gcc/testsuite/gcc.dg/torture/pr66123.c: Needs label_values. * gcc/testsuite/gcc.dg/torture/pr41261.c: Needs profiling. * gcc/testsuite/gcc.dg/pr26570.c: Likewise. * gcc/testsuite/gcc.dg/pr61776.c: Likewise. * gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c: Likewise. * gcc/testsuite/gcc.dg/gomp/pr34610.c: Likewise. * gcc/testsuite/gcc.dg/pr54121.c: Likewise. * gcc/testsuite/gcc.dg/20050325-1.c: Likewise. * gcc/testsuite/gcc.dg/pr66899.c: Likewise. * gcc/testsuite/gcc.dg/pr48770.c: Likewise. * gcc/testsuite/gcc.dg/pr24225.c: Likewise. * gcc/testsuite/gcc.dg/pr27531-1.c: Needs io. * gcc/testsuite/gcc.dg/pr44606.c: Likewise. * gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c: Needs weak. * gcc/testsuite/gcc.dg/pr51990.c: Needs alloca. * gcc/testsuite/gcc.misc-tests/options.exp: Disable profiling check for nvptx. From-SVN: r227128 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 36fc88ffa9a..77c8c23db7f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,38 @@ +2015-08-24 Nathan Sidwell + + * gcc/testsuite/gcc.dg/pr49551.c: Needs -fdata-sections. + + * gcc/testsuite/gcc.dg/pr64935-2.c: Needs scheduling. + + * gcc/testsuite/gcc.dg/torture/pr66101.c: Needs nonlocal goto. + * gcc/testsuite/gcc.dg/torture/pr63738.c: Likewise. + * gcc/testsuite/gcc.dg/torture/pr64728.c: Likewise. + * gcc/testsuite/gcc.dg/pr63748.c: Likewise. + * gcc/testsuite/gcc.dg/20020312-2.c: Likewise. + + * gcc/testsuite/gcc.dg/torture/pr66123.c: Needs label_values. + + * gcc/testsuite/gcc.dg/torture/pr41261.c: Needs profiling. + * gcc/testsuite/gcc.dg/pr26570.c: Likewise. + * gcc/testsuite/gcc.dg/pr61776.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c: Likewise. + * gcc/testsuite/gcc.dg/gomp/pr34610.c: Likewise. + * gcc/testsuite/gcc.dg/pr54121.c: Likewise. + * gcc/testsuite/gcc.dg/20050325-1.c: Likewise. + * gcc/testsuite/gcc.dg/pr66899.c: Likewise. + * gcc/testsuite/gcc.dg/pr48770.c: Likewise. + * gcc/testsuite/gcc.dg/pr24225.c: Likewise. + + * gcc/testsuite/gcc.dg/pr27531-1.c: Needs io. + * gcc/testsuite/gcc.dg/pr44606.c: Likewise. + + * gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c: Needs weak. + + * gcc/testsuite/gcc.dg/pr51990.c: Needs alloca. + + * gcc/testsuite/gcc.misc-tests/options.exp: Disable profiling + check for nvptx. + 2015-08-24 Tom de Vries PR tree-optimization/65468 @@ -96,7 +131,7 @@ * gcc.dg/pr51990-2.c: Likewise. * gcc.dg/vla-22.c: Likewise. -2015-08-22 Manuel López-Ibáñez +2015-08-22 Manuel López-Ibáñez * gcc.dg/cpp/multiline-2.c: Add column numbers. * gcc.dg/dollar.c: Likewise. @@ -496,7 +531,7 @@ * gcc.target/i386/avx2-vect-shift.c: New test. -2015-08-11 Manuel López-Ibáñez +2015-08-11 Manuel López-Ibáñez PR c/66098 PR c/66711 @@ -600,7 +635,7 @@ PR fortran/64022 * gfortran.dg/ieee/large_1.f90: Adjust test. -2015-08-05 Manuel López-Ibáñez +2015-08-05 Manuel López-Ibáñez Jeff Law PR c/16351 @@ -874,7 +909,7 @@ outer loop. 2015-07-28 Luis Felipe Strano Moraes - Manuel López-Ibáñez + Manuel López-Ibáñez * gcc.dg/parm-incomplete-1.c: Update. * gcc.dg/pr18809-1.c: Update. @@ -983,7 +1018,7 @@ * gcc.dg/graphite/uns-interchange-9.c: New test. * gcc.dg/graphite/uns-interchange-mvt.c: New test. -2015-07-24 Manuel López-Ibáñez +2015-07-24 Manuel López-Ibáñez PR c++/64079 * c-c++-common/Wunused-function-1.c: New. @@ -1872,7 +1907,7 @@ PR tree-optimization/66718 * gcc.dg/vect/vect-126.c: New test. -2015-07-08 Carlos Sánchez de La Lama +2015-07-08 Carlos Sánchez de La Lama * g++.dg/debug/dwarf2/*.C: generate dwarf-2 debug information even when dwarf-2 is not the default. @@ -2371,7 +2406,7 @@ * g++.dg/cpp0x/constexpr-friend-3.C: New. * g++.dg/cpp0x/constexpr-friend-2.C: Adjust. -2015-06-29 Manuel López-Ibáñez +2015-06-29 Manuel López-Ibáñez PR fortran/66605 * gfortran.dg/wunused-parameter.f90: New test. @@ -2446,7 +2481,7 @@ * gcc.dg/stack-usage-1.c: Add SIZE values for V850, MN10300, H8300 and M32R targets. -2015-06-24 Manuel López-Ibáñez +2015-06-24 Manuel López-Ibáñez PR fortran/66528 * gfortran.dg/maxerrors.f90: New test. @@ -3269,7 +3304,7 @@ PR c/66341 * gcc.dg/lvalue-8.c: New test. -2015-06-03 Manuel López-Ibáñez +2015-06-03 Manuel López-Ibáñez Paolo Carlini PR c++/66130 @@ -3624,7 +3659,7 @@ PR tree-optimization/66142 * gcc.dg/tree-ssa/ssa-fre-44.c: Fixup. -2015-05-28 Lawrence Velázquez +2015-05-28 Lawrence Velázquez PR target/63810 * gcc.dg/darwin-minversion-3.c: Update testcase. @@ -4018,7 +4053,7 @@ * gcc.dg/lto/pr66221_0.c: New test. * gcc.dg/lto/pr66221_1.c: New test. -2015-05-21 Manuel López-Ibáñez +2015-05-21 Manuel López-Ibáñez PR c/52952 * gcc.dg/redecl-4.c: Update column numbers. @@ -4323,7 +4358,7 @@ PR fortran/66113 * gfortran.dg/block_14.f90: New test. -2015-05-16 Manuel López-Ibáñez +2015-05-16 Manuel López-Ibáñez PR fortran/44054 * lib/gfortran-dg.exp: Update regex to handle two locations for diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c index 71201fee26b..5fce50dfaf2 100644 --- a/gcc/testsuite/gcc.dg/20020312-2.c +++ b/gcc/testsuite/gcc.dg/20020312-2.c @@ -7,6 +7,7 @@ /* { dg-do run } */ /* { dg-options "-O -fno-pic" } */ +/* { dg-require-effective-target nonlocal_goto } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20050325-1.c b/gcc/testsuite/gcc.dg/20050325-1.c index 5760e387a22..db288ee8f69 100644 --- a/gcc/testsuite/gcc.dg/20050325-1.c +++ b/gcc/testsuite/gcc.dg/20050325-1.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprofile-arcs" } */ +/* { dg-require-profiling "-fprofile-generate" } */ extern int *g (int x, void* y); extern void fg (long long x, int y); diff --git a/gcc/testsuite/gcc.dg/gomp/pr34610.c b/gcc/testsuite/gcc.dg/gomp/pr34610.c index 85db164b529..232fa18323b 100644 --- a/gcc/testsuite/gcc.dg/gomp/pr34610.c +++ b/gcc/testsuite/gcc.dg/gomp/pr34610.c @@ -1,6 +1,7 @@ /* PR gcov-profile/34610 */ /* { dg-do compile } */ /* { dg-options "-O2 -fprofile-arcs -fopenmp" } */ +/* { dg-require-profiling "-fprofile-generate" } */ extern void bar (int); extern void baz (int) __attribute__((noreturn)); diff --git a/gcc/testsuite/gcc.dg/pr24225.c b/gcc/testsuite/gcc.dg/pr24225.c index 4161c31bf73..576802ba589 100644 --- a/gcc/testsuite/gcc.dg/pr24225.c +++ b/gcc/testsuite/gcc.dg/pr24225.c @@ -2,6 +2,7 @@ statements around s[b]. */ /* { dg-do compile } */ /* { dg-options "-O1 -fprofile-arcs" } */ +/* { dg-require-profiling "-fprofile-generate" } */ int foo (int a, int b) diff --git a/gcc/testsuite/gcc.dg/pr26570.c b/gcc/testsuite/gcc.dg/pr26570.c index 71c16f20744..8ce8a4465e8 100644 --- a/gcc/testsuite/gcc.dg/pr26570.c +++ b/gcc/testsuite/gcc.dg/pr26570.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprofile-generate -fprofile-use -fopt-info" } */ +/* { dg-require-profiling "-fprofile-generate" } */ unsigned test (unsigned a, unsigned b) { diff --git a/gcc/testsuite/gcc.dg/pr27531-1.c b/gcc/testsuite/gcc.dg/pr27531-1.c index 08e3f5ea245..990c183fe41 100644 --- a/gcc/testsuite/gcc.dg/pr27531-1.c +++ b/gcc/testsuite/gcc.dg/pr27531-1.c @@ -4,6 +4,8 @@ output to reference a label that had been eliminated. */ /* { dg-do link } */ /* { dg-options "-O2" } */ +/* { dg-skip-if "requires io" { freestanding } { "*" } { "" } } */ + typedef struct _IO_FILE FILE; char const *RCSname; void *Locks; diff --git a/gcc/testsuite/gcc.dg/pr44606.c b/gcc/testsuite/gcc.dg/pr44606.c index 3929775535e..1d0848e9c30 100644 --- a/gcc/testsuite/gcc.dg/pr44606.c +++ b/gcc/testsuite/gcc.dg/pr44606.c @@ -1,6 +1,7 @@ /* PR target/44606 */ /* { dg-do run } */ /* { dg-options "-O2" } */ +/* { dg-skip-if "requires io" { freestanding } { "*" } { "" } } */ #include diff --git a/gcc/testsuite/gcc.dg/pr48770.c b/gcc/testsuite/gcc.dg/pr48770.c index 446389d4914..2ebe97063e3 100644 --- a/gcc/testsuite/gcc.dg/pr48770.c +++ b/gcc/testsuite/gcc.dg/pr48770.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target fpic } */ /* { dg-options "-O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate" } */ +/* { dg-require-profiling "-fprofile-generate" } */ int test_goto2 (int f) { diff --git a/gcc/testsuite/gcc.dg/pr49551.c b/gcc/testsuite/gcc.dg/pr49551.c index 204f06deb4e..719a99d2def 100644 --- a/gcc/testsuite/gcc.dg/pr49551.c +++ b/gcc/testsuite/gcc.dg/pr49551.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdata-sections" } */ +/* { dg-skip-if "-fdata-sections not supported" { nvptx-*-* } { "*" } { "" } } */ int x = 1; int x; diff --git a/gcc/testsuite/gcc.dg/pr51990.c b/gcc/testsuite/gcc.dg/pr51990.c index c7d1b537985..4f7e0e4fd37 100644 --- a/gcc/testsuite/gcc.dg/pr51990.c +++ b/gcc/testsuite/gcc.dg/pr51990.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target alloca } */ int zzz (char *s1, char *s2, int len, int *q) diff --git a/gcc/testsuite/gcc.dg/pr54121.c b/gcc/testsuite/gcc.dg/pr54121.c index b9a208ea84e..3e2c0e9bb65 100644 --- a/gcc/testsuite/gcc.dg/pr54121.c +++ b/gcc/testsuite/gcc.dg/pr54121.c @@ -3,6 +3,7 @@ /* { dg-do compile { target fpic } } */ /* { dg-options "-std=gnu99 -O -fPIC -fprofile-generate" } */ +/* { dg-require-profiling "-fprofile-generate" } */ typedef __SIZE_TYPE__ size_t; typedef unsigned char uint8_t; diff --git a/gcc/testsuite/gcc.dg/pr61776.c b/gcc/testsuite/gcc.dg/pr61776.c index 8768c546bda..8deec9e9934 100644 --- a/gcc/testsuite/gcc.dg/pr61776.c +++ b/gcc/testsuite/gcc.dg/pr61776.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprofile-generate" } */ +/* { dg-require-profiling "-fprofile-generate" } */ #include diff --git a/gcc/testsuite/gcc.dg/pr63748.c b/gcc/testsuite/gcc.dg/pr63748.c index 2e5044584a6..cc353a7e5c3 100644 --- a/gcc/testsuite/gcc.dg/pr63748.c +++ b/gcc/testsuite/gcc.dg/pr63748.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Wall" } */ +/* { dg-require-effective-target nonlocal_goto } */ #include diff --git a/gcc/testsuite/gcc.dg/pr64935-2.c b/gcc/testsuite/gcc.dg/pr64935-2.c index 6921a21d76a..3b45382a825 100644 --- a/gcc/testsuite/gcc.dg/pr64935-2.c +++ b/gcc/testsuite/gcc.dg/pr64935-2.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/64935 */ /* { dg-do compile } */ /* { dg-options "-O -fschedule-insns --param=max-sched-ready-insns=0 -fcompare-debug" } */ +/* { dg-require-effective-target scheduling } */ void foo (int *data, unsigned len, const int qlp_coeff[], diff --git a/gcc/testsuite/gcc.dg/pr66899.c b/gcc/testsuite/gcc.dg/pr66899.c index 1fff18153aa..23ecc539c06 100644 --- a/gcc/testsuite/gcc.dg/pr66899.c +++ b/gcc/testsuite/gcc.dg/pr66899.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-Os -fprofile-arcs" } */ +/* { dg-require-profiling "-fprofile-generate" } */ struct { diff --git a/gcc/testsuite/gcc.dg/torture/pr41261.c b/gcc/testsuite/gcc.dg/torture/pr41261.c index 8e601555cb5..448fc0146e1 100644 --- a/gcc/testsuite/gcc.dg/torture/pr41261.c +++ b/gcc/testsuite/gcc.dg/torture/pr41261.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fprofile-arcs" } */ +/* { dg-require-profiling "-fprofile-generate" } */ extern void relocate_kernel(); void machine_kexec(void *control_page) diff --git a/gcc/testsuite/gcc.dg/torture/pr63738.c b/gcc/testsuite/gcc.dg/torture/pr63738.c index 06ede546192..82ac4ff2a63 100644 --- a/gcc/testsuite/gcc.dg/torture/pr63738.c +++ b/gcc/testsuite/gcc.dg/torture/pr63738.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonlocal_goto } */ #include diff --git a/gcc/testsuite/gcc.dg/torture/pr64728.c b/gcc/testsuite/gcc.dg/torture/pr64728.c index 65c8508fc84..7384d85a928 100644 --- a/gcc/testsuite/gcc.dg/torture/pr64728.c +++ b/gcc/testsuite/gcc.dg/torture/pr64728.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonlocal_goto } */ #include diff --git a/gcc/testsuite/gcc.dg/torture/pr66101.c b/gcc/testsuite/gcc.dg/torture/pr66101.c index f3ef5e55bfd..39d380722b4 100644 --- a/gcc/testsuite/gcc.dg/torture/pr66101.c +++ b/gcc/testsuite/gcc.dg/torture/pr66101.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonlocal_goto } */ #include diff --git a/gcc/testsuite/gcc.dg/torture/pr66123.c b/gcc/testsuite/gcc.dg/torture/pr66123.c index 848f8fedcee..5fc0c1c4291 100644 --- a/gcc/testsuite/gcc.dg/torture/pr66123.c +++ b/gcc/testsuite/gcc.dg/torture/pr66123.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target label_values } */ int test (int foo) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c b/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c index 18ccc604838..c9d438e9374 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/nonzero-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdelete-null-pointer-checks" } */ +/* { dg-require-weak "" } */ /* { dg-skip-if "" keeps_null_pointer_checks } */ extern int a; /* { dg-error "declared weak after being used" } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c index 64e71eb620d..eadf71c19f7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fprofile-arcs -fdump-tree-lim1-details" } */ +/* { dg-require-profiling "-fprofile-generate" } */ struct thread_param { diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index 258c9f4c3c4..384c3de03b7 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -21,6 +21,12 @@ load_lib gcc-defs.exp +# disable for non-profile targets explitly, rather than +# rely on check-effective target. We're explicitly trying to check +# profiling works, and if it doesn't check-effective-target will +# simply skip the tests, rather than have this test shout at us. +if [ istarget "nvptx-*-*" ] { return 0 } + # These tests don't run runtest_file_p consistently if it # doesn't return the same values, so disable parallelization # of this *.exp file. The first parallel runtest to reach