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]

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


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