This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40097] inconsistent printf handling
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2009 03:27:21 -0000
- Subject: [Bug c/40097] inconsistent printf handling
- References: <bug-40097-17696@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hp at gcc dot gnu dot org 2009-05-26 03:27 -------
When porting code such as in the description, it can be argued that
robustifying the code is an important part; that undefined code that just
happened to "work" for the initial target(s) is corrected to use defined
constructs that work everywhere. If that's not an option here, perhaps you can
add application-specific printf and puts, versions that handles NULL arguments
such as the application expects.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40097