Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Richard Guenther
On Mon, Oct 17, 2011 at 1:36 AM, Andi Kleen wrote: > Ulrich Drepper writes: >> >> It's not guaranteed to work in general.  The problem to solve is that >> I know the function which is called is not clobbering any registers. >> If I leave it with the normal function call gcc has to spill >> regist

Re: Use of FLAGS_REGNUM clashes with generates insn

2011-10-16 Thread Hans-Peter Nilsson
On Fri, 23 Sep 2011, Joern Rennecke wrote: > Quoting "Paulo J. Matos" : > > > My addition instruction sets all the flags. So I have: > > This is annoying, but can be handled. Been there, done that. > dse.c needs a small patch, which I intend to submit sometime in the future. Could you be persuad

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Andi Kleen
Ulrich Drepper writes: > > It's not guaranteed to work in general. The problem to solve is that > I know the function which is called is not clobbering any registers. > If I leave it with the normal function call gcc has to spill > registers. If I can hide the function call the generated code ca

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Ulrich Drepper
On Sun, Oct 16, 2011 at 14:38, Jakub Jelinek wrote: > If this is about e.g. > 2011-09-14  Ulrich Drepper   > >        * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use >        __extern_always_inline. >        Define lrint{f,} and llrint{f,} for 64-bit and in some situations for >      

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Jakub Jelinek
On Sat, Oct 15, 2011 at 05:52:03PM -0400, Ulrich Drepper wrote: > I think gcc should allow the programmer to tell it something about a > function return value even if the function is inlined and the compiler > can see all the code. Consider the code below. If this is about e.g. 2011-09-14 Ulrich

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Ulrich Drepper
On Sun, Oct 16, 2011 at 06:31, Richard Guenther wrote: > The question is now, of course why you need to emit calls > from an asm() statement, something which isn't guaranteed > to work anyway (IIRC). It's not guaranteed to work in general. The problem to solve is that I know the function which i

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Richard Guenther
On Sat, Oct 15, 2011 at 11:52 PM, Ulrich Drepper wrote: > I think gcc should allow the programmer to tell it something about a > function return value even if the function is inlined and the compiler > can see all the code.  Consider the code below. > > If NOINLINE is defined the compiler will cal

MELT plugin 0.9.1 rc1 available for GCC 4.6

2011-10-16 Thread Basile Starynkevitch
Dear All, It is my pleasure to announce the release candidate 1 of MELT plugin 0.9.1. for GCC 4.6. MELT is a high-level domain specific language to ease the development of GCC extensions. See http://gcc-melt.org/ for more. ##