------- Comment #1 from jakub at gcc dot gnu dot org 2009-10-21 07:12 ------- The testcase is invalid, you can't pass NULL to %s. The fact that glibc printf doesn't crash on it is just an extension. In your case gcc optimizes the printf into puts and that one crashes even with glibc.
-- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41776