This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix for failing gdb.base/mips_pro.exp under gcc-4.3.1
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 4 Sep 2008 16:58:28 -0700
- Subject: Re: [patch] Fix for failing gdb.base/mips_pro.exp under gcc-4.3.1
- References: <20080822002653.A73DF3A67DF@localhost>
(sorry about the delay - it looks like everyone was very very busy
this summer)
> I could not find *why* optimization is necessary for that test case,
> so don't know if disabling inlining is the correct fix :(
Like Michael said, we have to assume the obvious, which is that they
wanted to test unwinding of optimized code.
> 2008-02-12 Paul Pluzhnikov <ppluzhnikov@google.com>
>
> *gdb.base/mips_pro.exp: compile with gcc -fno-inline,
> lest gcc-4.3.1 optimizes the whole thing away.
With that in mind, your patch makes sense. We want optimized code, but
not that much optimization :).
--
Joel