Skip to content

Commit

Permalink
SH: fix clobber list in stdlib/longlong.h
Browse files Browse the repository at this point in the history
  • Loading branch information
SUGIOKA Toshinobu authored and Ulrich Drepper committed Aug 10, 2009
1 parent ec49223 commit 78fd882
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>

* stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
clobber list.

2009-08-01 H.J. Lu <hongjiu.lu@intel.com>

* elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
Expand Down
7 changes: 4 additions & 3 deletions stdlib/longlong.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -918,15 +918,16 @@ UDItype __umulsidi3 (USItype, USItype);
" or r1,%0" \
: "=r" (q), "=&z" (r) \
: "1" (n1), "r" (n0), "rm" (d), "r" (&__udiv_qrnnd_16) \
: "r1", "r2", "r4", "r5", "r6", "pr"); \
: "r1", "r2", "r4", "r5", "r6", "pr", "t"); \
} while (0)

#define UDIV_TIME 80

#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("clrt;subc %5,%1; subc %4,%0" \
: "=r" (sh), "=r" (sl) \
: "0" (ah), "1" (al), "r" (bh), "r" (bl))
: "0" (ah), "1" (al), "r" (bh), "r" (bl) \
: "t")

#endif /* __sh__ */

Expand Down

0 comments on commit 78fd882

Please sign in to comment.