This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] observer tests & GCC 3.4


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]