about summary refs log tree commit diff
path: root/sysdeps/x86_64/hp-timing.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-17 17:30:06 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-17 17:30:06 +0000
commitcabd81c0f715bad0b015572895a6ebfcc5d420ce (patch)
tree9fbc5277623bdc9a8d63afd4f34ecb91f5211614 /sysdeps/x86_64/hp-timing.h
parentf83aa16cbc784740e07268cab3e4fe2ed8cf97ff (diff)
downloadglibc-cabd81c0f715bad0b015572895a6ebfcc5d420ce.tar.gz
glibc-cabd81c0f715bad0b015572895a6ebfcc5d420ce.tar.xz
glibc-cabd81c0f715bad0b015572895a6ebfcc5d420ce.zip
Update.
2004-03-17  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile.

2004-03-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Spelling.
	(JB_SIZE): Undefine before including __longjmp-common.S again.
	* sysdeps/powerpc/powerpc32/fpu/setjmp.S: Spelling.
	(JB_SIZE): Undefine before including setjmp-common.S again.
	* sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Spelling.
	* sysdeps/powerpc/powerpc64/bsd-setjmp.S: Spelling.
	* sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Spelling.
	* sysdeps/powerpc/powerpc32/bsd-setjmp.S: Spelling.
	* sysdeps/powerpc/sigjmp.c: Spelling.
Diffstat (limited to 'sysdeps/x86_64/hp-timing.h')
-rw-r--r--sysdeps/x86_64/hp-timing.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/x86_64/hp-timing.h b/sysdeps/x86_64/hp-timing.h
index 5738039fa4..e015ff79db 100644
--- a/sysdeps/x86_64/hp-timing.h
+++ b/sysdeps/x86_64/hp-timing.h
@@ -1,5 +1,5 @@
 /* High precision, low overhead timing functions.  x86-64 version.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,7 +25,8 @@
 /* The "=A" constraint used in 32-bit mode does not work in 64-bit mode.  */
 # undef HP_TIMING_NOW
 # define HP_TIMING_NOW(Var) \
-  ({ unsigned int _hi, _lo; asm ("rdtsc" : "=a" (_lo), "=d" (_hi)); \
+  ({ unsigned int _hi, _lo; \
+     asm volatile ("rdtsc" : "=a" (_lo), "=d" (_hi)); \
      (Var) = ((unsigned long long int) _hi << 32) | _lo; })
 
 /* The funny business for 32-bit mode is not required here.  */