public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/63180] New: Inconsistent replacement of printf by puts
@ 2014-09-04 20:08 JuergenUrban at gmx dot de
  2014-09-04 21:46 ` [Bug tree-optimization/63180] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: JuergenUrban at gmx dot de @ 2014-09-04 20:08 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tree-optimization/63180] Inconsistent replacement of printf by puts
  2014-09-04 20:08 [Bug tree-optimization/63180] New: Inconsistent replacement of printf by puts JuergenUrban at gmx dot de
@ 2014-09-04 21:46 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-09-04 21:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63180

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Well long could be passed differently from pointers and %s requires a pointer. 
Use -Wformat or -Wall to see the warning.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-04 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04 20:08 [Bug tree-optimization/63180] New: Inconsistent replacement of printf by puts JuergenUrban at gmx dot de
2014-09-04 21:46 ` [Bug tree-optimization/63180] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).