This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/15740] [3.5 Regression] ICE caused by a memory operand in an asm statement
- From: "dnovillo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2004 19:08:53 -0000
- Subject: [Bug inline-asm/15740] [3.5 Regression] ICE caused by a memory operand in an asm statement
- References: <20040530225725.15740.l_belev@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dnovillo at gcc dot gnu dot org 2004-07-20 19:08 -------
ISTR fixing this in copy_if_shared_r. The idea is to piggyback marking the
variable as addressable together with the pre-gimple unsharing pass.
I think rth took it out when he fixed the vararg stuff. I see 3 options:
1- Add a call to mark_addressable in copy_if_shared_r.
2- Do another tree walk before gimplification.
3- As Andrew mentioned in comment #1, have the FEs mark the variables when they
find an __asm__.
I think I prefer (3). Richard? Jason? Any other ideas?
Diego.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org,
| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15740