#3259 new defect

m68k-rtems4.11-gcc compiler code generation error

Reported by: Ben Owned by:
Priority: normal Milestone:
Component: tool/gcc Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

the c code

printf("\r\n");

results in assembler code:

485 .LC5:
486 .string "\r"

MISSING \n in the string

Work-arounds:

printf("\r\n", ' '); /* extra argument in call to printf */

code generation

485 .LC5:
486 .string "\r\n"

printf("\r\n "); /* extra withe space in string */

code generation

485 .LC5:
486 .string "\r\n "

printf("\r\n \b"); /* extra while space and backspace */

code generation

485 .LC5:
486 .string "\r\n \b"

Change History (1)

comment:1 Changed on Dec 8, 2017 at 1:49:29 PM by Sebastian Huber

Please report this bug to upstream GCC:

https://gcc.gnu.org/bugzilla/enter_bug.cgi

Note: See TracTickets for help on using tickets.