This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11373] [tree-ssa] asm generated lhs expressions are discarded


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]