This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

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


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


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