[RTEMS Project] #3259: m68k-rtems4.11-gcc compiler code generation error

RTEMS trac trac at rtems.org
Fri Dec 8 13:03:15 UTC 2017


#3259: m68k-rtems4.11-gcc compiler code generation error
----------------------+--------------------
 Reporter:  Ben       |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  tool/gcc  |    Version:
 Severity:  normal    |   Keywords:
----------------------+--------------------
 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"

--
Ticket URL: <http://devel.rtems.org/ticket/3259>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list