This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC] observer tests & GCC 3.4
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 11 Dec 2003 09:14:16 -0500
- Subject: Re: [PATCH/RFC] observer tests & GCC 3.4
- References: <200312111355.hBBDtFE7000504@elgar.kettenis.dyndns.org>
> The compiler is getting too smart for its own good again. At the end
> of observer.c, we have a bit of code that used in the
> gdb.gdb/observer.exp testcase. Since the variables and functions are
> declared static, the compiler simply optimizes these out. The
> attached patch fixes this. Objections?
Humph. I don't know of any other way to stop GDB from optimizing
them out, so no objection from me.
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * observer.c (observer_test_first_observer,
> observer_test_second_observer, observer_test_third_observer):
> Don't define as `static'.
> (observer_test_first_notification_function,
> observer_test_second_notification_function,
> observer_test_third_notification_function): Likewise.
--
Joel