This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25609] too agressive printf optimization
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2008 18:51:44 -0000
- Subject: [Bug rtl-optimization/25609] too agressive printf optimization
- References: <bug-25609-700@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from manu at gcc dot gnu dot org 2008-01-15 18:51 -------
This will be fixed yesterday if printf("%s\n", s) were equivalent to puts(s) in
glibc.
Also there is a way to disable the optimization: "-fno-builtin-printf".
People that don't rely on undefined behaviour don't deserve to be punished with
suboptimal code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25609