https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63180
Bug ID: 63180 Summary: Inconsistent replacement of printf by puts Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: JuergenUrban at gmx dot de printf("%s\n", (long) NULL) is not replaced by puts. printf("%s\n", NULL) is replaced by puts. The code generation should be consistent. The same problem happens when using valid pointers.