https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64133

            Bug ID: 64133
           Summary: m68k-rtems-gcc generates invalid code.
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chris at contemporary dot net.au

Created attachment 34151
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34151&action=edit
Preprocessed source

The preprocessed output attached generates invalid code for the -O2
optimisation level and RTEMS fails to boot. The generated code is:

       clr.l 0.w
       trap #7

The full .s file can be seen in the attachments of RTEMS ticket
https://devel.rtems.org/ticket/2204.

Moving the second nested block of code that copies the vector table out of the
file results in correct code. Also selecting -O seems to work.

Reply via email to