https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83557
Bug ID: 83557 Summary: missing last char in printf fmt string Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: x37a5709 at gmail dot com Target Milestone: --- gcc compiler for m68k code generation m68k-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB no-repo, Newlib 2.2.0.20150423) Copyright (C) 2015 Free Software Foundation, Inc. The following c -statement for printf (possibly always within a while, for and if statement) does not result into a proper implementation printf("\r\n"); AS list code 485 .LC5: 486 .string "\r" 163:init68360.c **** char *txt = "\r\n\n68360 Boot Monitor (%s)\r\n\n"; Work arounds are: printf("\r\n",' '); /* extra argument in printf call */ 485 .LC5: 486 .string "\r\n" 163:init68360.c **** char *txt = "\r\n\n68360 Boot Monitor (%s)\r\n\n"; printf("\r\n "); /* string enhanced with blank */ 485 .LC5: 486 .string "\r\n " 163:init68360.c **** char *txt = "\r\n\n68360 Boot Monitor (%s)\r\n\n"; printf("\r\n \b"); /* string enhanced with white space and backspace */ 485 .LC5: 486 .string "\r\n \b" 163:init68360.c **** char *txt = "\r\n\n68360 Boot Monitor (%s)\r\n\n";