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

            Bug ID: 82602
           Summary: IRA considers volatile asm to be moveable
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: segher at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42390
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42390&action=edit
testcase

https://gcc.gnu.org/ml/gcc-help/2017-10/msg00061.html reports a problem
where volatile asm statements (without output) are moved around incorrectly.

Testcase attached, build with
  arm-eabi-gcc -Wall -W -O1 -mcpu=cortex-m0plus -mthumb
and see the asm statements reordered (on GCC 5 at least, it does
not seem to trigger the bug with trunk).

I have a patch.

Reply via email to