Почему у меня не работает `-finstrument-functions`?

Согласно этот ответ , он должен печатать все имена функций:

[root@ test]# cat hw.c
#include 

int func(void)
{  
  return 1;
}
int main(void)
{
  func();
  printf("%d",6);
  return 6;
}
[root@ test]# gcc -Wall hw.c -o hw -finstrument-functions
[root@ test]# ./hw 
6
[root@ test]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.

Но почему у меня это не работает?

5
задан Community 23 May 2017 в 11:47
поделиться