From: Christophe Lyon Date: Thu, 17 Nov 2016 16:15:40 +0000 (+0000) Subject: Fix PR78333 testcase for non-glibc systems. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc4aa6592b3822043ab5d6b1fad958b9bc21acbd;p=gcc.git Fix PR78333 testcase for non-glibc systems. 2016-11-17 Christophe Lyon gcc/testsuite/ * gcc.dg/pr78333.c: Add empty implementations of __cyg_profile_func_enter() and __cyg_profile_func_exit() to avoid problems on non-glibc systems. From-SVN: r242553 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fb0bd45f431..dc7ab84e86f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-11-17 Christophe Lyon + + * gcc.dg/pr78333.c: Add empty implementations of + __cyg_profile_func_enter() and __cyg_profile_func_exit() to avoid + problems on non-glibc systems. + 2016-11-17 David Malcolm * gcc.dg/plugin/diagnostic-test-string-literals-1.c diff --git a/gcc/testsuite/gcc.dg/pr78333.c b/gcc/testsuite/gcc.dg/pr78333.c index fd3669ce925..ca037e55f82 100644 --- a/gcc/testsuite/gcc.dg/pr78333.c +++ b/gcc/testsuite/gcc.dg/pr78333.c @@ -1,6 +1,19 @@ /* { dg-do link } */ /* { dg-options "-finstrument-functions" } */ +/* Add empty implementations of __cyg_profile_func_enter() and + __cyg_profile_func_exit() to avoid problems on non-glibc + systems. */ +void __attribute__((no_instrument_function)) +__cyg_profile_func_enter(void *this_fn, void *call_site) +{ +} + +void __attribute__((no_instrument_function)) +__cyg_profile_func_exit(void *this_fn, void *call_site) +{ +} + extern inline __attribute__((gnu_inline, always_inline)) int foo () { } int main() {