This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11373] [tree-ssa] asm generated lhs expressions are discarded
- From: "dnovillo at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2003 12:19:09 -0000
- Subject: [Bug optimization/11373] [tree-ssa] asm generated lhs expressions are discarded
- References: <20030629143256.11373.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11373
------- Additional Comments From dnovillo at redhat dot com 2003-07-15 12:19 -------
Subject: Re: [tree-ssa] asm generated lhs
expressions are discarded
On Tue, 2003-07-15 at 01:50, marcus at jet dot franken dot de wrote:
> Why is an asm() statement with a pointer as output something
> special? Its just like any other function that returns a pointer,
> or?
>
Ah, yes, now I see. I had missed the assignment to 't' inside the asm
statement. I'll fix that.
The second test case seems borderline to me. I'm not a language lawyer,
but I don't know what are the rules wrt assigning using random integer
values to a pointer. We can mark the pointer with the 'may point to
global memory' attribute.
Diego.