Module Name:    src
Committed By:   matt
Date:           Mon Aug  6 02:31:54 UTC 2012

Modified Files:
        src/common/lib/libc/quad: ashrdi3.c lshldi3.c lshrdi3.c muldi3.c quad.h

Log Message:
Add ARM EABI aliases to a few functions.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libc/quad/ashrdi3.c \
    src/common/lib/libc/quad/lshrdi3.c
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/quad/lshldi3.c \
    src/common/lib/libc/quad/muldi3.c
cvs rdiff -u -r1.6 -r1.7 src/common/lib/libc/quad/quad.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/quad/ashrdi3.c
diff -u src/common/lib/libc/quad/ashrdi3.c:1.3 src/common/lib/libc/quad/ashrdi3.c:1.4
--- src/common/lib/libc/quad/ashrdi3.c:1.3	Fri Mar  9 15:41:16 2012
+++ src/common/lib/libc/quad/ashrdi3.c	Mon Aug  6 02:31:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ashrdi3.c,v 1.3 2012/03/09 15:41:16 christos Exp $	*/
+/*	$NetBSD: ashrdi3.c,v 1.4 2012/08/06 02:31:54 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,12 +38,14 @@
 #if 0
 static char sccsid[] = "@(#)ashrdi3.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: ashrdi3.c,v 1.3 2012/03/09 15:41:16 christos Exp $");
+__RCSID("$NetBSD: ashrdi3.c,v 1.4 2012/08/06 02:31:54 matt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
 #include "quad.h"
 
+ARM_EABI_ALIAS(__aeabi_lasr, __ashrdi3)	/* no semicolon */
+
 /*
  * Shift a (signed) quad value right (arithmetic shift right).
  */
Index: src/common/lib/libc/quad/lshrdi3.c
diff -u src/common/lib/libc/quad/lshrdi3.c:1.3 src/common/lib/libc/quad/lshrdi3.c:1.4
--- src/common/lib/libc/quad/lshrdi3.c:1.3	Fri Mar  9 15:41:16 2012
+++ src/common/lib/libc/quad/lshrdi3.c	Mon Aug  6 02:31:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: lshrdi3.c,v 1.3 2012/03/09 15:41:16 christos Exp $	*/
+/*	$NetBSD: lshrdi3.c,v 1.4 2012/08/06 02:31:54 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,12 +38,14 @@
 #if 0
 static char sccsid[] = "@(#)lshrdi3.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: lshrdi3.c,v 1.3 2012/03/09 15:41:16 christos Exp $");
+__RCSID("$NetBSD: lshrdi3.c,v 1.4 2012/08/06 02:31:54 matt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
 #include "quad.h"
 
+ARM_EABI_ALIAS(__aeabi_llsr, __lshrdi3)	/* no semicolon */
+
 /*
  * Shift an (unsigned) quad value right (logical shift right).
  */

Index: src/common/lib/libc/quad/lshldi3.c
diff -u src/common/lib/libc/quad/lshldi3.c:1.2 src/common/lib/libc/quad/lshldi3.c:1.3
--- src/common/lib/libc/quad/lshldi3.c:1.2	Sun Mar 15 22:31:12 2009
+++ src/common/lib/libc/quad/lshldi3.c	Mon Aug  6 02:31:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: lshldi3.c,v 1.2 2009/03/15 22:31:12 cegger Exp $	*/
+/*	$NetBSD: lshldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,12 +38,14 @@
 #if 0
 static char sccsid[] = "@(#)lshldi3.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: lshldi3.c,v 1.2 2009/03/15 22:31:12 cegger Exp $");
+__RCSID("$NetBSD: lshldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
 #include "quad.h"
 
+ARM_EABI_ALIAS(__aeabi_llsl, __lshldi3)	/* no semicolon */
+
 /*
  * Shift an (unsigned) quad value left (logical shift left).
  * This is the same as arithmetic shift left!
Index: src/common/lib/libc/quad/muldi3.c
diff -u src/common/lib/libc/quad/muldi3.c:1.2 src/common/lib/libc/quad/muldi3.c:1.3
--- src/common/lib/libc/quad/muldi3.c:1.2	Sun Mar 15 22:31:12 2009
+++ src/common/lib/libc/quad/muldi3.c	Mon Aug  6 02:31:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: muldi3.c,v 1.2 2009/03/15 22:31:12 cegger Exp $	*/
+/*	$NetBSD: muldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,12 +38,14 @@
 #if 0
 static char sccsid[] = "@(#)muldi3.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: muldi3.c,v 1.2 2009/03/15 22:31:12 cegger Exp $");
+__RCSID("$NetBSD: muldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
 #include "quad.h"
 
+ARM_EABI_ALIAS(__aeabi_lmul, __muldi3)	/* no semicolon */
+
 /*
  * Multiply two quads.
  *

Index: src/common/lib/libc/quad/quad.h
diff -u src/common/lib/libc/quad/quad.h:1.6 src/common/lib/libc/quad/quad.h:1.7
--- src/common/lib/libc/quad/quad.h:1.6	Tue Mar 20 16:21:41 2012
+++ src/common/lib/libc/quad/quad.h	Mon Aug  6 02:31:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: quad.h,v 1.6 2012/03/20 16:21:41 matt Exp $	*/
+/*	$NetBSD: quad.h,v 1.7 2012/08/06 02:31:54 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -58,6 +58,12 @@
 #include <machine/limits.h>
 #endif
 
+#if defined(__ARM_EABI__) && !defined(lint)
+#define	ARM_EABI_ALIAS(alias,sym)	__strong_alias(alias,sym);
+#else
+#define	ARM_EABI_ALIAS(alias,sym)	/* nothing */
+#endif
+
 /*
  * Depending on the desired operation, we view a `long long' (aka quad_t) in
  * one or more of the following formats.

Reply via email to