This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/82602] IRA considers volatile asm to be moveable
- From: "segher at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Oct 2017 21:08:50 +0000
- Subject: [Bug rtl-optimization/82602] IRA considers volatile asm to be moveable
- Auto-submitted: auto-generated
- References: <bug-82602-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82602
--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Oct 18 21:08:18 2017
New Revision: 253869
URL: https://gcc.gnu.org/viewcvs?rev=253869&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:
trunk/gcc/ChangeLog
trunk/gcc/ira.c