------- Comment #16 from gustavodn at gmail dot com 2008-01-15 17:20 ------- "Glibc being Linux being the world" is not really relevant, IMHO. What is relevant is printf() (or any function) is, fundamentally, implemented by library, not by compiler, so compiler should not prevent library from defining behavior not defined in the standard.
So I think gcc should either: - provide means to disable printf (or more generaly, any specific function) optimization based on library being linked - not optimize printf in this way, unless requested (i.e. do not include this optimization in any predefined optimizations list - probably other alternatives -- gustavodn at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gustavodn at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25609