This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

Patch for MIPS PREF/PREFX macro definitions


I was wondering if someone could check in this obvious fix for MIPS.
The code is supposed to define the PREF and PREFX macro calls as nothing
when on a machine that doesn't support prefetching but the empty
definitions don't include the argument lists and that causes the
arguments to show up in the code which is wrong.

Steve Ellcey
sellcey@mips.com



Here is the patch:

2012-07-31  Steve Ellcey  <sellcey@mips.com>

	* sysdeps/mips/sys/asm.h: Fix PREF and PREFX definitions.


diff --git a/ports/sysdeps/mips/sys/asm.h b/ports/sysdeps/mips/sys/asm.h
index 347d738..0f5edf9 100644
--- a/ports/sysdeps/mips/sys/asm.h
+++ b/ports/sysdeps/mips/sys/asm.h
@@ -233,8 +233,8 @@ symbol		=	value
 # define PREFX(hint,addr)                                \
 		prefx	hint,addr
 #else
-# define PREF
-# define PREFX
+# define PREF(hint,addr)
+# define PREFX(hint,addr)
 #endif
 
 /*


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