Hi Richard, >> Probably providing dummy implemenations as in the original testcase in >> the PR is enough? > > Maybe { dg-require weak } plus weak definitions of the cyg_profile funcs? > Or simply restrict the test to { target *-*-linux* }?
the only existing dg-do run testcase (gcc.dg/20001117-1.c) just has void __attribute__((no_instrument_function)) __cyg_profile_func_enter(void *this_fn, void *call_site) { if (call_site == (void *)0) abort (); } void __attribute__((no_instrument_function)) __cyg_profile_func_exit(void *this_fn, void *call_site) { if (call_site == (void *)0) abort (); } In the case at hand, we could do with empty implementations. This certainly works on Solaris. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University