[gdb/testsuite] Don't use O2 for inlining in break-inline-psymtab.exp
authorTom de Vries <tdevries@suse.de>
Thu, 2 Apr 2020 15:12:49 +0000 (17:12 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 2 Apr 2020 15:12:49 +0000 (17:12 +0200)
commit880d97770b63eb722d53b3a0ae2f03deae0c9c72
tree4d2829de514289d9aa4530cd646da78cb9c4e5fb
parentaa350065a4236d822c7b4a1116d1d92f7820d83e
[gdb/testsuite] Don't use O2 for inlining in break-inline-psymtab.exp

In test-case gdb.dwarf2/break-inline-psymtab.exp we use O2 to enable inlining
of bar into foo in break-inline-psymtab-2.c.

Instead, enforce inlining using __attribute__((always_inline)), to avoid any
optimization-related test issues.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-04-02  Tom de Vries  <tdevries@suse.de>

* gdb.dwarf2/break-inline-psymtab-2.c (bar): Add
__attribute__((always_inline)).
* gdb.dwarf2/break-inline-psymtab.exp: Don't use -O2.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/break-inline-psymtab-2.c
gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp