Optimized out pthread?

Hei Chan structurechart@yahoo.com
Wed Aug 28 11:44:00 GMT 2013


Hi,

I am curious whether g++ will optimize out pthread function calls (meaning completely dropping them because g++ thinks they have no effect).

I could write a dummy program and objdump on the .o output.

However, it would be great to have a definite answer than trial and error later.

Thanks in advance.


Cheers,
Hei



More information about the Gcc-help mailing list