This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Patch for MIPS PREF/PREFX macro definitions
- From: "Steve Ellcey " <sellcey at mips dot com>
- To: <libc-ports at sourceware dot org>
- Date: Tue, 31 Jul 2012 15:58:53 -0700
- Subject: 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
/*