http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44606
--- Comment #17 from Sebastian Andrzej Siewior <gcc at breakpoint dot cc> 2011-03-17 13:02:58 UTC --- (In reply to comment #16) > Does the testcase still test for the problem if you replace the declarations > of > stderr etc. with "#include <stdio.h>"? This fails with link errors of the > "unresolved reference to stderr" variety on newlib targets. As long as your stdio.h does not optimize fprintf away it should work :)