OSDN Git Service

Add bfin-uclinux configuration.
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2005 09:46:39 +0000 (09:46 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2005 09:46:39 +0000 (09:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100656 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.gcc
gcc/config/bfin/uclinux.h [new file with mode: 0644]

index 0b2426c..5014a66 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-06  Jie Zhang  <jie.zhang@analog.com>
+
+       * config.gcc (bfin*-uclinux*): New.
+       * config/bfin/uclinux.h: New file.
+
 2005-06-06  Ben Elliston  <bje@au.ibm.com>
 
        * doc/md.texi (Insn Splitting): Fix some wording.
index a379fca..7eab072 100644 (file)
@@ -740,12 +740,17 @@ bfin*-elf*)
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h"
         tmake_file=bfin/t-bfin-elf
         use_collect2=no
-        ;;  
+        ;;
+bfin*-uclinux*)
+       tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/uclinux.h"
+        tmake_file=bfin/t-bfin-elf
+        use_collect2=no
+        ;;
 bfin*-*)
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h"
         tmake_file=bfin/t-bfin
         use_collect2=no
-        ;;  
+        ;;
 c4x-*-rtems* | tic4x-*-rtems*)
        tmake_file="c4x/t-c4x t-rtems c4x/t-rtems"
        tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
diff --git a/gcc/config/bfin/uclinux.h b/gcc/config/bfin/uclinux.h
new file mode 100644 (file)
index 0000000..d68008a
--- /dev/null
@@ -0,0 +1,10 @@
+#undef  STARTFILE_SPEC
+#define STARTFILE_SPEC \
+  "crt1%O%s crti%O%s crtbegin%O%s"
+
+#undef  ENDFILE_SPEC
+#define ENDFILE_SPEC \
+  "crtend%O%s crtn%O%s"
+
+#undef  LIB_SPEC
+#define LIB_SPEC "%{pthread:-lpthread} -lc"