This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26544] printf calls optimized at -O0
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2006 12:49:58 -0000
- Subject: [Bug middle-end/26544] printf calls optimized at -O0
- References: <bug-26544-361@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from nathan at gcc dot gnu dot org 2006-03-03 12:49 -------
I find it a surprise that when not optimizing, the compiler has examined the
printf string and determined it can replace the printf with a puts call. This
seems more than mere constant folding.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26544