OSDN Git Service

remove sysdep.h from arch specific string implementation
authorPeter S. Mazinger <ps.m@gmx.net>
Sat, 14 May 2011 18:09:42 +0000 (20:09 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:44 +0000 (14:00 +0200)
Remove hardcoded path from xtensa, we have sysdep.h in path

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
24 files changed:
libc/string/ia64/bcopy.S
libc/string/ia64/bzero.S
libc/string/ia64/memccpy.S
libc/string/ia64/memchr.S
libc/string/ia64/memcmp.S
libc/string/ia64/memcpy.S
libc/string/ia64/memmove.S
libc/string/ia64/memset.S
libc/string/ia64/strchr.S
libc/string/ia64/strcmp.S
libc/string/ia64/strcpy.S
libc/string/ia64/strlen.S
libc/string/ia64/strncmp.S
libc/string/ia64/strncpy.S
libc/string/ia64/sysdep.h [deleted file]
libc/string/mips/memcpy.S
libc/string/mips/memset.S
libc/string/mips/sysdep.h [deleted file]
libc/string/xtensa/memcpy.S
libc/string/xtensa/memset.S
libc/string/xtensa/strcmp.S
libc/string/xtensa/strcpy.S
libc/string/xtensa/strlen.S
libc/string/xtensa/strncpy.S

index c5637c3..62da68d 100644 (file)
@@ -1,4 +1,4 @@
-#include "sysdep.h"
+#include <sysdep.h>
 
 #ifdef __UCLIBC_SUSV3_LEGACY__
 
index 1f0f8b7..203ff7f 100644 (file)
@@ -32,7 +32,7 @@
    Since a stf.spill f0 can store 16B in one go, we use this instruction
    to get peak speed.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 
 #ifdef __UCLIBC_SUSV3_LEGACY__
 
index 259d680..68bcde6 100644 (file)
@@ -31,7 +31,7 @@
    This implementation assumes that it is safe to do read ahead
    in the src block, without getting beyond its limit.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define OP_T_THRES     16
index f25e803..86bfbbf 100644 (file)
@@ -40,7 +40,7 @@
    All the loops in this function could have had the internal branch removed
    if br.ctop and br.cloop could be predicated :-(.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define saved_pr       r15
index adb1a20..a6465f2 100644 (file)
@@ -33,7 +33,7 @@
 
    and all the mux1 instructions should be replaced by plain mov's.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define OP_T_THRES     16
index 6c48a72..ac6d515 100644 (file)
@@ -37,7 +37,7 @@
 
 #define USE_LFETCH
 #define USE_FLP
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define LFETCH_DIST     500
index beaada6..f9dd98f 100644 (file)
@@ -33,7 +33,7 @@
    sh1 must be computed using an extra instruction: sub sh1 = 64, sh1
    or the UM.be bit should be cleared at the beginning and set at the end.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define OP_T_THRES     16
index 45df583..3f4b6e1 100644 (file)
@@ -33,7 +33,7 @@
    Since a stf.spill f0 can store 16B in one go, we use this instruction
    to get peak speed when value = 0.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define dest           in0
index 66703f2..a446f0e 100644 (file)
@@ -30,7 +30,7 @@
    This implementation assumes little endian mode.  For big endian mode,
    the instruction czx1.r should be replaced by czx1.l.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define saved_lc       r18
index 4da72fa..9d9527f 100644 (file)
@@ -27,7 +27,7 @@
    Unlike memcmp(), this function is optimized for mismatches within the
    first few characters.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define s1             in0
index 7b002f6..7a1eace 100644 (file)
@@ -31,7 +31,7 @@
        shr.u   tmp = r[0], sh2         // tmp = w1 >> sh2
  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define saved_lc       r15
index edbe843..47c65ad 100644 (file)
@@ -33,7 +33,7 @@
    This implementation assumes little endian mode.  For big endian mode,
    the instruction czx1.r should be replaced by czx1.l.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define saved_lc       r18
index e31f8fb..56ea6c5 100644 (file)
@@ -28,7 +28,7 @@
    Unlike memcmp(), this function is optimized for mismatches within the
    first few characters.  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define s1             in0
index 3f29bbd..aca6bc1 100644 (file)
@@ -29,7 +29,7 @@
    In this form, it assumes little endian mode.
  */
 
-#include "sysdep.h"
+#include <sysdep.h>
 #undef ret
 
 #define saved_lc       r15
diff --git a/libc/string/ia64/sysdep.h b/libc/string/ia64/sysdep.h
deleted file mode 100644 (file)
index d10020a..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/* Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Written by Jes Sorensen, <Jes.Sorensen@cern.ch>, April 1999.
-   Based on code originally written by David Mosberger-Tang
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#ifndef _LINUX_IA64_SYSDEP_H
-#define _LINUX_IA64_SYSDEP_H 1
-
-#include <features.h>
-#include <asm/unistd.h>
-
-#ifdef __ASSEMBLER__
-
-/* Macros to help writing .prologue directives in assembly code.  */
-#define ASM_UNW_PRLG_RP                        0x8
-#define ASM_UNW_PRLG_PFS               0x4
-#define ASM_UNW_PRLG_PSP               0x2
-#define ASM_UNW_PRLG_PR                        0x1
-#define ASM_UNW_PRLG_GRSAVE(ninputs)   (32+(ninputs))
-
-#ifdef __STDC__
-#define C_LABEL(name)          name :
-#else
-#define C_LABEL(name)          name/**/:
-#endif
-
-#define CALL_MCOUNT
-
-#define ENTRY(name)                            \
-       .text;                                  \
-       .align 32;                              \
-       .proc C_SYMBOL_NAME(name);              \
-       .global C_SYMBOL_NAME(name);            \
-       C_LABEL(name)                           \
-       CALL_MCOUNT
-
-#define LEAF(name)                             \
-  .text;                                       \
-  .align 32;                                   \
-  .proc C_SYMBOL_NAME(name);                   \
-  .global name;                                        \
-  C_LABEL(name)
-
-/* Mark the end of function SYM.  */
-#undef END
-#define END(sym)       .endp C_SYMBOL_NAME(sym)
-
-/* For Linux we can use the system call table in the header file
-       /usr/include/asm/unistd.h
-   of the kernel.  But these symbols do not follow the SYS_* syntax
-   so we have to redefine the `SYS_ify' macro here.  */
-#undef SYS_ify
-#ifdef __STDC__
-# define SYS_ify(syscall_name) __NR_##syscall_name
-#else
-# define SYS_ify(syscall_name) __NR_/**/syscall_name
-#endif
-
-/* Linux uses a negative return value to indicate syscall errors, unlike
-   most Unices, which use the condition codes' carry flag.
-
-   Since version 2.1 the return value of a system call might be negative
-   even if the call succeeded.  E.g., the `lseek' system call might return
-   a large offset.  Therefore we must not anymore test for < 0, but test
-   for a real error by making sure the value in %d0 is a real error
-   number.  Linus said he will make sure the no syscall returns a value
-   in -1 .. -4095 as a valid result so we can savely test with -4095.  */
-
-/* We don't want the label for the error handler to be visible in the symbol
-   table when we define it here.  */
-#define SYSCALL_ERROR_LABEL __syscall_error
-
-#undef PSEUDO
-#define        PSEUDO(name, syscall_name, args)        \
-  ENTRY(name)                                  \
-    DO_CALL (SYS_ify(syscall_name));           \
-       cmp.eq p6,p0=-1,r10;                    \
-(p6)   br.cond.spnt.few __syscall_error;
-
-#define DO_CALL_VIA_BREAK(num)                 \
-       mov r15=num;                            \
-       break __BREAK_SYSCALL
-
-#ifdef IA64_USE_NEW_STUB
-# ifdef SHARED
-#  define DO_CALL(num)                         \
-       .prologue;                              \
-       adds r2 = SYSINFO_OFFSET, r13;;         \
-       ld8 r2 = [r2];                          \
-       .save ar.pfs, r11;                      \
-       mov r11 = ar.pfs;;                      \
-       .body;                                  \
-       mov r15 = num;                          \
-       mov b7 = r2;                            \
-       br.call.sptk.many b6 = b7;;             \
-       .restore sp;                            \
-       mov ar.pfs = r11;                       \
-       .prologue;                              \
-       .body
-# else /* !SHARED */
-#  define DO_CALL(num)                         \
-       .prologue;                              \
-       mov r15 = num;                          \
-       movl r2 = _dl_sysinfo;;                 \
-       ld8 r2 = [r2];                          \
-       .save ar.pfs, r11;                      \
-       mov r11 = ar.pfs;;                      \
-       .body;                                  \
-       mov b7 = r2;                            \
-       br.call.sptk.many b6 = b7;;             \
-       .restore sp;                            \
-       mov ar.pfs = r11;                       \
-       .prologue;                              \
-       .body
-# endif
-#else
-# define DO_CALL(num)                          DO_CALL_VIA_BREAK(num)
-#endif
-
-#undef PSEUDO_END
-#define PSEUDO_END(name)       .endp C_SYMBOL_NAME(name);
-
-#undef PSEUDO_NOERRNO
-#define        PSEUDO_NOERRNO(name, syscall_name, args)        \
-  ENTRY(name)                                          \
-    DO_CALL (SYS_ify(syscall_name));
-
-#undef PSEUDO_END_NOERRNO
-#define PSEUDO_END_NOERRNO(name)       .endp C_SYMBOL_NAME(name);
-
-#undef PSEUDO_ERRVAL
-#define        PSEUDO_ERRVAL(name, syscall_name, args) \
-  ENTRY(name)                                  \
-    DO_CALL (SYS_ify(syscall_name));           \
-       cmp.eq p6,p0=-1,r10;                    \
-(p6)   mov r10=r8;
-
-
-#undef PSEUDO_END_ERRVAL
-#define PSEUDO_END_ERRVAL(name)        .endp C_SYMBOL_NAME(name);
-
-#undef END
-#define END(name)                                              \
-       .size   C_SYMBOL_NAME(name), . - C_SYMBOL_NAME(name) ;  \
-       .endp   C_SYMBOL_NAME(name)
-
-#define ret                    br.ret.sptk.few b0
-#define ret_NOERRNO            ret
-#define ret_ERRVAL             ret
-
-#endif /* not __ASSEMBLER__ */
-
-#endif /* linux/ia64/sysdep.h */
index 9b05ee6..0addc0f 100644 (file)
@@ -18,9 +18,8 @@
    02111-1307 USA.  */
 
 #include <features.h>
-/*#include <sysdep.h>*/
+#include <sysdep.h>
 #include <endian.h>
-#include "sysdep.h"
 
 /* void *memcpy(void *s1, const void *s2, size_t n);  */
 
index ff0554f..7d4d362 100644 (file)
@@ -18,9 +18,8 @@
    02111-1307 USA.  */
 
 #include <features.h>
-/*#include <sysdep.h>*/
+#include <sysdep.h>
 #include <endian.h>
-#include "sysdep.h"
 
 /* void *memset(void *s, int c, size_t n).  */
 
diff --git a/libc/string/mips/sysdep.h b/libc/string/mips/sysdep.h
deleted file mode 100644 (file)
index 5dad834..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Adapted from glibc's sysdeps/unix/mips/sysdep.h */
-
-/* Copyright (C) 1992, 1995, 1997, 1999, 2000, 2002, 2003
-   Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#ifdef __ASSEMBLER__
-
-#include <sgidefs.h>
-#include <sys/regdef.h>
-
-#define ENTRY(name) \
-  .globl name;                                                                \
-  .align 2;                                                                   \
-  .ent name,0;                                                                \
-  name/* use a comment rather than ## to workaround bug in gcc-3.4.x */:
-
-#undef END
-#define END(function)                                   \
-                .end    function;                       \
-                .size   function,.-function
-
-#if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_ABIO64
-# define L(label) $L ## label
-#else
-# define L(label) .L ## label
-#endif
-
-#endif
index fc04c02..bf384b4 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 
        .macro  src_b   r, w0, w1
index 076b8f0..6669c56 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 
 /* Do not use .literal_position in the ENTRY macro.  */
index ac058a2..86ad80d 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 #include <features.h>
 
index dc0a151..c3a21a6 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 
 #ifdef __XTENSA_EB__
index 9ee4995..23c68f2 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 
 #ifdef __XTENSA_EB__
index fe3ec89..a048d43 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
-#include "../../sysdeps/linux/xtensa/sysdep.h"
+#include <sysdep.h>
 #include <bits/xtensa-config.h>
 
 #ifdef __XTENSA_EB__