[Bug c/40097] inconsistent printf handling

2009-05-25 Thread hp 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 constr

[Bug c/40097] inconsistent printf handling

2009-05-10 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-11 04:38 --- (In reply to comment #2) > (In reply to comment #1) > > Actually this code is undefined. Using %s with a NULL pointer is undefined > > so > > GCC's behavior is correct. > > > > You are wrong, the GCC behavior is

[Bug c/40097] inconsistent printf handling

2009-05-10 Thread Andrey dot Martchovsky at gmail dot com
--- Comment #2 from Andrey dot Martchovsky at gmail dot com 2009-05-11 01:26 --- (In reply to comment #1) > Actually this code is undefined. Using %s with a NULL pointer is undefined so > GCC's behavior is correct. > You are wrong, the GCC behavior is incorrect. Please compile code a

[Bug c/40097] inconsistent printf handling

2009-05-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-11 01:15 --- Actually this code is undefined. Using %s with a NULL pointer is undefined so GCC's behavior is correct. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---