ia64/xen-unstable

changeset 6653:158d23cbd2e6

Enable xenstored optimisations.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Sep 06 15:47:23 2005 +0000 (2005-09-06)
parents ef1cd7729676
children 8f21344e7817
files tools/xenstore/Makefile tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/Makefile	Tue Sep 06 15:31:34 2005 +0000
     1.2 +++ b/tools/xenstore/Makefile	Tue Sep 06 15:47:23 2005 +0000
     1.3 @@ -12,7 +12,7 @@ BASECFLAGS=-Wall -W -g -Werror
     1.4  # Make gcc generate dependencies.
     1.5  BASECFLAGS += -Wp,-MD,.$(@F).d
     1.6  PROG_DEP = .*.d
     1.7 -#BASECFLAGS+= -O3 $(PROFILE)
     1.8 +BASECFLAGS+= -O3 $(PROFILE)
     1.9  #BASECFLAGS+= -I$(XEN_ROOT)/tools
    1.10  BASECFLAGS+= -I$(XEN_ROOT)/tools/libxc
    1.11  BASECFLAGS+= -I$(XEN_ROOT)/xen/include/public
     2.1 --- a/tools/xenstore/xenstored_core.c	Tue Sep 06 15:31:34 2005 +0000
     2.2 +++ b/tools/xenstore/xenstored_core.c	Tue Sep 06 15:47:23 2005 +0000
     2.3 @@ -1304,8 +1304,12 @@ static int out_of_mem(void *data)
     2.4  
     2.5  static void consider_message(struct connection *conn)
     2.6  {
     2.7 -	struct buffered_data *in = NULL;
     2.8 -	enum xsd_sockmsg_type type = conn->in->hdr.msg.type;
     2.9 +	/*
    2.10 +	 * 'volatile' qualifier prevents register allocation which fixes:
    2.11 +	 *   warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork'
    2.12 +	 */
    2.13 +	struct buffered_data *volatile in = NULL;
    2.14 +	enum xsd_sockmsg_type volatile type = conn->in->hdr.msg.type;
    2.15  	jmp_buf talloc_fail;
    2.16  
    2.17  	assert(conn->state == OK);
    2.18 @@ -1443,7 +1447,11 @@ static void unblock_connections(void)
    2.19  
    2.20  struct connection *new_connection(connwritefn_t *write, connreadfn_t *read)
    2.21  {
    2.22 -	struct connection *new;
    2.23 +	/*
    2.24 +	 * 'volatile' qualifier prevents register allocation which fixes:
    2.25 +	 *   warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork'
    2.26 +	 */
    2.27 +	struct connection *volatile new;
    2.28  	jmp_buf talloc_fail;
    2.29  
    2.30  	new = talloc(talloc_autofree_context(), struct connection);