[commit 7.4] [obv] testsuite: gdb.python/py-frame-inline.c fix for gcc-4.7

Jan Kratochvil jan.kratochvil@redhat.com
Wed Jan 4 18:00:00 GMT 2012


On Wed, 04 Jan 2012 18:48:11 +0100, Ulrich Weigand wrote:
> Jan Kratochvil wrote:
> 
> > +	Fix compatibility with gcc-4.7.
> > +	* gdb.python/py-frame-inline.c (f): Use inline for __always_inline__.
> 
> > -__attribute__((__always_inline__)) static int
> > +__attribute__((__always_inline__)) static inline int
> >  f (void)
> 
> Hmm, with an older compiler (RHEL5 gcc 4.1) I don't see any warning, but
> the function simply isn't inlined, causing the test to fail:
> 
> FAIL: gdb.python/py-frame-inline.exp: info frame
> FAIL: gdb.python/py-frame-inline.exp: up
> 
> Your patch fixes that failure as well.  Since I'm seeing that same
> failure also with 7.4, maybe it would be good to apply your patch
> to the branch as well ...

Checked in the 7.4 branch:
	http://sourceware.org/ml/gdb-cvs/2012-01/msg00052.html


Regards,
Jan



More information about the Gdb-patches mailing list