diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2016-11-17 16:15:40 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2016-11-17 17:15:40 +0100 |
commit | cc4aa6592b3822043ab5d6b1fad958b9bc21acbd (patch) | |
tree | e67dbe285a7339d42e0e9280b871788e1b3e4d5c /gcc | |
parent | b8f564124ed51964b704452e3ea05b2423446e1c (diff) | |
download | gcc-cc4aa6592b3822043ab5d6b1fad958b9bc21acbd.zip gcc-cc4aa6592b3822043ab5d6b1fad958b9bc21acbd.tar.gz gcc-cc4aa6592b3822043ab5d6b1fad958b9bc21acbd.tar.bz2 |
Fix PR78333 testcase for non-glibc systems.
2016-11-17 Christophe Lyon <christophe.lyon@linaro.org>
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr78333.c | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fb0bd45..dc7ab84 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-11-17 Christophe Lyon <christophe.lyon@linaro.org> + + * 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 <dmalcolm@redhat.com> * 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 fd3669c..ca037e5 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() { |