From: Paul Pluzhnikov Date: Tue, 10 Feb 2009 00:59:27 +0000 (+0000) Subject: 2009-02-06 Paul Pluzhnikov X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2febfff468e814aec6ad487112b51c937fb80e9;p=binutils-gdb.git 2009-02-06 Paul Pluzhnikov * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bf6de5101a5..d51a49a98b8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-02-06 Paul Pluzhnikov + + * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out. + 2009-02-06 Pedro Alves * gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New. diff --git a/gdb/testsuite/gdb.cp/pr9594.cc b/gdb/testsuite/gdb.cp/pr9594.cc index bb7e1d6e227..8fdee84ae1f 100644 --- a/gdb/testsuite/gdb.cp/pr9594.cc +++ b/gdb/testsuite/gdb.cp/pr9594.cc @@ -47,5 +47,6 @@ int main () } a; Foo foo1; foo1.set_foo (42); // Set breakpoint here. + a.get(); // Prevent compiler from throwing 'a' away. return 0; }