This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Prevent GCC from folding inline test functions
- From: Pedro Alves <palves at redhat dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Mon, 24 Aug 2015 16:53:57 +0100
- Subject: Re: [PATCH] Prevent GCC from folding inline test functions
- Authentication-results: sourceware.org; auth=none
- References: <1440162341-26343-1-git-send-email-lgustavo at codesourcery dot com> <55D74BCE dot 5020206 at redhat dot com> <55DB3CE1 dot 7020402 at codesourcery dot com>
On 08/24/2015 04:48 PM, Luis Machado wrote:
> --- a/gdb/testsuite/gdb.opt/inline-markers.c
> +++ b/gdb/testsuite/gdb.opt/inline-markers.c
> @@ -13,7 +13,7 @@
> You should have received a copy of the GNU General Public License
> along with this program. If not, see <http://www.gnu.org/licenses/>. */
>
> -extern int x, y;
> +extern int x, y, z;
z here should match the definition (should be volatile here too).
Thanks,
Pedro Alves