This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit 7.4] [obv] testsuite: gdb.python/py-frame-inline.c fix for gcc-4.7
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org, brobecker at adacore dot com
- Date: Wed, 4 Jan 2012 19:00:13 +0100
- Subject: [commit 7.4] [obv] testsuite: gdb.python/py-frame-inline.c fix for gcc-4.7
- References: <20111223145924.GA31785@host2.jankratochvil.net> <201201041748.q04Hm2JK017440@d06av02.portsmouth.uk.ibm.com>
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