[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Enable xenstored optimisations.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 158d23cbd2e605eb5acd969ccfde76da58161d99 # Parent ef1cd772967698f38ebc5a351fb5c125fb565acb Enable xenstored optimisations. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r ef1cd7729676 -r 158d23cbd2e6 tools/xenstore/Makefile --- a/tools/xenstore/Makefile Tue Sep 6 15:31:34 2005 +++ b/tools/xenstore/Makefile Tue Sep 6 15:47:23 2005 @@ -12,7 +12,7 @@ # Make gcc generate dependencies. BASECFLAGS += -Wp,-MD,.$(@F).d PROG_DEP = .*.d -#BASECFLAGS+= -O3 $(PROFILE) +BASECFLAGS+= -O3 $(PROFILE) #BASECFLAGS+= -I$(XEN_ROOT)/tools BASECFLAGS+= -I$(XEN_ROOT)/tools/libxc BASECFLAGS+= -I$(XEN_ROOT)/xen/include/public diff -r ef1cd7729676 -r 158d23cbd2e6 tools/xenstore/xenstored_core.c --- a/tools/xenstore/xenstored_core.c Tue Sep 6 15:31:34 2005 +++ b/tools/xenstore/xenstored_core.c Tue Sep 6 15:47:23 2005 @@ -1304,8 +1304,12 @@ static void consider_message(struct connection *conn) { - struct buffered_data *in = NULL; - enum xsd_sockmsg_type type = conn->in->hdr.msg.type; + /* + * 'volatile' qualifier prevents register allocation which fixes: + * warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork' + */ + struct buffered_data *volatile in = NULL; + enum xsd_sockmsg_type volatile type = conn->in->hdr.msg.type; jmp_buf talloc_fail; assert(conn->state == OK); @@ -1443,7 +1447,11 @@ struct connection *new_connection(connwritefn_t *write, connreadfn_t *read) { - struct connection *new; + /* + * 'volatile' qualifier prevents register allocation which fixes: + * warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork' + */ + struct connection *volatile new; jmp_buf talloc_fail; new = talloc(talloc_autofree_context(), struct connection); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |