This is the mail archive of the gcc-patches@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]

Re: [PATCH 2/2] allow certain kinds of inputs to top level asm()-s


>>> On 05.10.11 at 10:54, Jan Hubicka <jh@suse.de> wrote:

>>> we have, like specifying the set of symbols _defined_ by a toplevel
>>> asm, right?  I might misremember but sth like
>>>
>>> extern void foo (void);
>>> asm("" :::: "foo");
>>>
>>> was supposed to do the trick.  Or should we treat those as outputs
>>> (given you use inputs for symbol uses)?
>>
>> I don't recall any discussion of how to deal with symbols defined by a
>> top level asm - I was just asked to follow the "normal" asm syntax in
>> having two colons in the middle instead of one as I had originally (not
>> expecting any use for outputs here).
>>
>>> Honza, do you remember if we decided on anything here?
> 
> To be honest, I don't think we actually dicussed some particular  
> syntax or my memory is even worse ;). We will need to make one.
> In the above example, I don't think quotes about foo is needed. We  
> actualy provide definition of the declaration, so it should be just  
> the decl itself, not a string.

With there not being a clear direction (and me not having the time
to extend what I have currently), is there any chance that what's
there could go in then, for someone else to extend?

Thanks, Jan

> Honza
>>>
>>> Thanks,
>>> Richard.
>>
>>
>>




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