Hello! Alpha needs "-mno-explicit-relocs" to count number of function calls properly.
2014-01-19 Uros Bizjak <ubiz...@gmail.com> * g++.dg/pr49718.C: Add "-mno-explicit-relocs" for alpha*-*-* targets. Tested on alphaev6-pc-linux-gnu and committed to mainline SVN. Uros.
Index: g++.dg/pr49718.C =================================================================== --- g++.dg/pr49718.C (revision 206758) +++ g++.dg/pr49718.C (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -finstrument-functions" } */ +/* { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } } */ /* { dg-final { scan-assembler-times "__cyg_profile_func_enter" 1} } */ #define NOINSTR __attribute__((no_instrument_function))