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

2011-10-12 Thread Jan Beulich
>>> On 05.10.11 at 10:54, Jan Hubicka 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

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

2011-10-05 Thread Jan Hubicka
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 discussi

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

2011-09-30 Thread Jakub Jelinek
On Fri, Sep 30, 2011 at 01:54:16PM +0100, Jan Beulich wrote: > >>> On 30.09.11 at 14:47, Jakub Jelinek wrote: > > On Fri, Sep 30, 2011 at 12:43:54PM +0100, Jan Beulich wrote: > >> This is so that use of symbols referenced in these asm()-s can be > >> properly tracked by the compiler, just like is

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

2011-09-30 Thread Jan Beulich
>>> On 30.09.11 at 14:42, Richard Guenther wrote: > On Fri, Sep 30, 2011 at 1:43 PM, Jan Beulich wrote: >> This is so that use of symbols referenced in these asm()-s can be >> properly tracked by the compiler, just like is the case for all other >> asm()-s. I'm particularly looking forward to use

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

2011-09-30 Thread Jan Beulich
>>> On 30.09.11 at 14:47, Jakub Jelinek wrote: > On Fri, Sep 30, 2011 at 12:43:54PM +0100, Jan Beulich wrote: >> This is so that use of symbols referenced in these asm()-s can be >> properly tracked by the compiler, just like is the case for all other >> asm()-s. I'm particularly looking forward t

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

2011-09-30 Thread Jakub Jelinek
On Fri, Sep 30, 2011 at 12:43:54PM +0100, Jan Beulich wrote: > This is so that use of symbols referenced in these asm()-s can be > properly tracked by the compiler, just like is the case for all other > asm()-s. I'm particularly looking forward to use this in the Linux > kernel. It is certainly not

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

2011-09-30 Thread Richard Guenther
On Fri, Sep 30, 2011 at 1:43 PM, Jan Beulich wrote: > This is so that use of symbols referenced in these asm()-s can be > properly tracked by the compiler, just like is the case for all other > asm()-s. I'm particularly looking forward to use this in the Linux > kernel. It is certainly not very us

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

2011-09-30 Thread Jan Beulich
This is so that use of symbols referenced in these asm()-s can be properly tracked by the compiler, just like is the case for all other asm()-s. I'm particularly looking forward to use this in the Linux kernel. It is certainly not very useful in PIC code, at least not with some extra care. gcc/ 20