the attached program compiles the printf call to puts, even when optimization is disabled. This seems confusing.
-- Summary: printf calls optimized at -O0 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nathan at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26544