This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/36639] pointer referenced in asm statement not regarded as VUSE
- From: "aoliva at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2008 18:10:50 -0000
- Subject: [Bug inline-asm/36639] pointer referenced in asm statement not regarded as VUSE
- References: <bug-36639-334@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from aoliva at gcc dot gnu dot org 2008-06-26 18:10 -------
I have not tried 4.4. Anyhow, I have looked further into this issue, and I
came to the conclusion that a memory clobber (that should have always been
there anyway) will get things right. I cannot tell for sure that it guarantees
GCC will not ever get smart and delete the initializer because it cannot see
that it is used (the ASM needs not be a VUSE if it is marked as using only the
pointer, after all), but I find it unlikely that this will ever break. So,
nevermind... Just another case of inlining exposing latent problems.
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36639