summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/smallprint.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7427b111d..81247a4d2 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2005-01-31 Christopher Faylor <cgf@timesys.com>
+ * smallprint.c (__rn): Regparmize.
+
+2005-01-31 Christopher Faylor <cgf@timesys.com>
+
* smallprint.c (rnarg): New macro.
(rnargLL): Ditto.
(__rn): Rename from 'rn', add a mask argument, and use the mask
diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c
index 2528eec98..43d0decd4 100644
--- a/winsup/cygwin/smallprint.c
+++ b/winsup/cygwin/smallprint.c
@@ -24,6 +24,10 @@ int __small_vsprintf (char *dst, const char *fmt, va_list ap);
#define rnarg(dst, base, dosign, len, pad) __rn ((dst), (base), (dosign), va_arg (ap, unsigned), len, pad, LMASK)
#define rnargLL(dst, base, dosign, len, pad) __rn ((dst), (base), (dosign), va_arg (ap, unsigned long long), len, pad, LLMASK)
+static char * __rn (char *, int, int, long long, int, int,
+ unsigned long long) __attribute__ ((regparm (3)));
+
+
static char *
__rn (char *dst, int base, int dosign, long long val, int len, int pad, unsigned long long mask)
{