This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][test] Gate gcc.dg/aru-2.c test on profiling support


Hi all,

This recently added test adds -pg to its dg-options but not all targets support
 this and fail at link-time with "bin/ld: cannot find -lc_p".

Looking around I see that all tests that use -pg also do a dg-require-profiling.
This patch adds that.

With this patch the test doesn't FAIL on aarch64-none-elf. It appears as UNSUPPORTED.

Ok for trunk?

Thanks,
Kyrill

2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

    * gcc.dg/aru-2.c: Add dg-require-profiling directive.
commit d4cffed0dede524cf1d0b3487e21ab4f783d06bd
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date:   Fri Jan 9 12:13:02 2015 +0000

    [testuite] Add check on profiling in aru-2.c test

diff --git a/gcc/testsuite/gcc.dg/aru-2.c b/gcc/testsuite/gcc.dg/aru-2.c
index efd1f01..d36adc1 100644
--- a/gcc/testsuite/gcc.dg/aru-2.c
+++ b/gcc/testsuite/gcc.dg/aru-2.c
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-O2 -pg" } */
 
 static int __attribute__((noinline))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]