[Bug rtl-optimization/82602] IRA considers volatile asm to be moveable

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 18 21:16:00 GMT 2017


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

--- Comment #14 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Oct 18 21:15:24 2017
New Revision: 253871

URL: https://gcc.gnu.org/viewcvs?rev=253871&root=gcc&view=rev
Log:
ira: volatile asm's are not moveable (PR82602)

A volatile asm statement can not be moved (relative to other volatile
asm, etc.), but IRA would do it nevertheless.  This patch fixes it.


        PR rtl-optimization/82602
        * ira.c (rtx_moveable_p): Return false for volatile asm.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/ira.c


More information about the Gcc-bugs mailing list