callgrind and sin/cos under GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   I'm trying to profile (using valgrind's callgrind) some code that
uses sin/cos and I'm seeing some things I'm not expecting.

  My OS is Ubuntu 12.04/x86_64, hardware is an Intel Xeon X5690.  GCC
is the distro version, gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1.  I'm
compiling with -O2.

  The strange thing is that I'm seeing sincos (from libm.so) is
showing up in the callgrind output.   From reading the manual, GCC
should replace our calls to sin and cos with __builtin_ versions,
right?   I'm not using -fno-builtin.

Thanks,
Pete


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux