This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [obv] testsuite: gdb.python/py-frame-inline.c fix for gcc-4.7
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: jan dot kratochvil at redhat dot com (Jan Kratochvil)
- Cc: gdb-patches at sourceware dot org, brobecker at adacore dot com
- Date: Wed, 4 Jan 2012 18:48:11 +0100 (CET)
- Subject: Re: [obv] testsuite: gdb.python/py-frame-inline.c fix for gcc-4.7
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 ...
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com