[PATCH 2/3][GCC-6] Backport support for arm*-*-phoenix* targets.

2016-07-22 Thread Kuba Sejdak
This patch is already in trunk. It adds no new features, just new arm-phoenix*
OS target to gcc config.
I have SVN write access, so only approval is needed. Is it OK for gcc-6 branch?

2016-07-22  Jakub Sejdak  

   * config.gcc: Add support for arm*-*-phoenix* targets.
   * config/arm/t-phoenix: New.
   * config/phoenix.h: New.

---
 gcc/ChangeLog|  6 ++
 gcc/config.gcc   | 11 +++
 gcc/config/arm/t-phoenix | 29 +
 gcc/config/phoenix.h | 33 +
 4 files changed, 79 insertions(+)
 create mode 100644 gcc/config/arm/t-phoenix
 create mode 100644 gcc/config/phoenix.h

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 262456a..0591a49 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-22  Jakub Sejdak  
+
+   * config.gcc: Add support for arm*-*-phoenix* targets.
+   * config/arm/t-phoenix: New.
+   * config/phoenix.h: New.
+
 2016-07-21  Jakub Jelinek  
 
* tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 82cc9a9..cc0a175 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -815,6 +815,11 @@ case ${target} in
   ;;
   esac
   ;;
+*-*-phoenix*)
+  gas=yes
+  gnu_ld=yes
+  default_use_cxa_atexit=yes
+  ;;
 *-*-rtems*)
   case ${enable_threads} in
 "" | yes | rtems) thread_file='rtems' ;;
@@ -1097,6 +1102,12 @@ arm*-*-uclinux*eabi*)# ARM ucLinux
# The EABI requires the use of __cxa_atexit.
default_use_cxa_atexit=yes
;;
+arm*-*-phoenix*)
+   tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
+   tm_file="${tm_file} newlib-stdint.h phoenix.h"
+   tm_file="${tm_file} arm/aout.h arm/arm.h"
+   tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-phoenix"
+   ;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
case ${target} in
arm*eb-*-eabi*)
diff --git a/gcc/config/arm/t-phoenix b/gcc/config/arm/t-phoenix
new file mode 100644
index 000..d881884
--- /dev/null
+++ b/gcc/config/arm/t-phoenix
@@ -0,0 +1,29 @@
+# Copyright (C) 2016 Free Software Foundation, Inc.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GCC 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3.  If not see
+# .
+
+MULTILIB_OPTIONS = marm/mthumb
+MULTILIB_DIRNAMES= arm thumb
+MULTILIB_EXCEPTIONS  =
+MULTILIB_MATCHES =
+
+MULTILIB_OPTIONS += mfloat-abi=hard
+MULTILIB_DIRNAMES+= fpu
+MULTILIB_MATCHES += mfloat-abi?hard=mhard-float
+
+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
+MULTILIB_DIRNAMES+= normal interwork
diff --git a/gcc/config/phoenix.h b/gcc/config/phoenix.h
new file mode 100644
index 000..9ffb958
--- /dev/null
+++ b/gcc/config/phoenix.h
@@ -0,0 +1,33 @@
+/* Base configuration file for all Phoenix-RTOS targets.
+   Copyright (C) 2016 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3.  If not see
+.  */
+
+#undef TARGET_OS_CPP_BUILTINS
+#define TARGET_OS_CPP_BUILTINS()   \
+do {   \
+  builtin_define_std ("phoenix");  \
+  builtin_define_std ("unix"); \
+  builtin_assert ("system=phoenix");   \
+  builtin_assert ("system=unix");  \
+} while(0);
+
+#define STD_LIB_SPEC "%{!shared:%{g*:-lg} 
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+
+/* This will prevent selecting 'unsigned long int' instead of 'unsigned int' 
as 'uint32_t' in stdint-newlib.h. */
+#undef STDINT_LONG32
+#define STDINT_LONG32  0
-- 
2.7.4



[PATCH 1/3][GCC-6] Backport support for Phoenix-RTOS targets in config.sub.

2016-07-22 Thread Kuba Sejdak
This patch is already in trunk. It adds no new features, just new OS target.
I have SVN write access, so only approval is needed. Is it OK for gcc-6 branch?

2016-07-22  Jakub Sejdak  

   * config.sub: Add support for Phoenix-RTOS targets.

---
 ChangeLog  | 4 
 config.sub | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4a1334a..68f4a83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-22  Jakub Sejdak  
+
+   * config.sub: Add support for Phoenix-RTOS targets.
+
 2016-04-27  Release Manager
 
* GCC 6.1.0 released.
diff --git a/config.sub b/config.sub
index da6d1b6..41146e1 100755
--- a/config.sub
+++ b/config.sub
@@ -1399,7 +1399,7 @@ case $os in
  | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
- | -onefs* | -tirtos*)
+ | -onefs* | -tirtos* | -phoenix*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
-- 
2.7.4



[PATCH 3/3][GCC-6] Backport support for arm*-*-phoenix* targets in libgcc.

2016-07-22 Thread Kuba Sejdak
This patch is already in trunk. It adds no new features, just new arm-phoenix*
OS target to libgcc.
I have SVN write access, so only approval is needed. Is it OK for gcc-6 branch?

2016-07-22  Jakub Sejdak  

   * config.host: Add suport for arm*-*-phoenix* targets.

---
 libgcc/ChangeLog   | 4 
 libgcc/config.host | 7 +++
 2 files changed, 11 insertions(+)

diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 934cddf..fd6e5b3 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-22  Jakub Sejdak  
+
+   * config.host: Add suport for arm*-*-phoenix* targets.
+
 2016-07-14  Bill Schmidt  
 
Backport from mainline
diff --git a/libgcc/config.host b/libgcc/config.host
index 16a45c8..cf5fae2 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -402,6 +402,13 @@ arm*-*-uclinux*)   # ARM ucLinux
unwind_header=config/arm/unwind-arm.h
extra_parts="$extra_parts crti.o crtn.o"
;;
+arm*-*-phoenix*)
+   tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp 
arm/t-phoenix"
+   tmake_file="${tmake_file} arm/t-bpabi"
+   tm_file="$tm_file arm/bpabi-lib.h"
+   extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+   unwind_header=config/arm/unwind-arm.h
+   ;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
tm_file="$tm_file arm/bpabi-lib.h"
-- 
2.7.4



[PATCH 2/3] Add support for arm*-*-phoenix* targets.

2016-06-15 Thread Kuba Sejdak
Is it ok for trunk? If possible, If possible, please merge it also to GCC-6 and 
GCC-5 branches.

2016-06-15  Jakub Sejdak  

   * config.gcc: Add support for arm*-*-phoenix* targets.
   * config/arm/t-phoenix: New.
   * config/phoenix.h: New.

---
 gcc/ChangeLog|  6 ++
 gcc/config.gcc   | 11 +++
 gcc/config/arm/t-phoenix | 29 +
 gcc/config/phoenix.h | 33 +
 4 files changed, 79 insertions(+)
 create mode 100644 gcc/config/arm/t-phoenix
 create mode 100644 gcc/config/phoenix.h

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 907bb06..26807d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-15  Jakub Sejdak  
+
+   * config.gcc: Add support for arm*-*-phoenix* targets.
+   * config/arm/t-phoenix: New.
+   * config/phoenix.h: New.
+
 2016-06-14  David Malcolm  
 
* spellcheck-tree.c: Include spellcheck-tree.h rather than
diff --git a/gcc/config.gcc b/gcc/config.gcc
index e47535b..8c46798 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -815,6 +815,11 @@ case ${target} in
   ;;
   esac
   ;;
+*-*-phoenix*)
+  gas=yes
+  gnu_ld=yes
+  default_use_cxa_atexit=yes
+  ;;
 *-*-rtems*)
   case ${enable_threads} in
 "" | yes | rtems) thread_file='rtems' ;;
@@ -1097,6 +1102,12 @@ arm*-*-uclinux*eabi*)# ARM ucLinux
# The EABI requires the use of __cxa_atexit.
default_use_cxa_atexit=yes
;;
+arm*-*-phoenix*)
+   tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
+   tm_file="${tm_file} newlib-stdint.h phoenix.h"
+   tm_file="${tm_file} arm/aout.h arm/arm.h"
+   tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-phoenix"
+   ;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
case ${target} in
arm*eb-*-eabi*)
diff --git a/gcc/config/arm/t-phoenix b/gcc/config/arm/t-phoenix
new file mode 100644
index 000..d881884
--- /dev/null
+++ b/gcc/config/arm/t-phoenix
@@ -0,0 +1,29 @@
+# Copyright (C) 2016 Free Software Foundation, Inc.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GCC 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3.  If not see
+# .
+
+MULTILIB_OPTIONS = marm/mthumb
+MULTILIB_DIRNAMES= arm thumb
+MULTILIB_EXCEPTIONS  =
+MULTILIB_MATCHES =
+
+MULTILIB_OPTIONS += mfloat-abi=hard
+MULTILIB_DIRNAMES+= fpu
+MULTILIB_MATCHES += mfloat-abi?hard=mhard-float
+
+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
+MULTILIB_DIRNAMES+= normal interwork
diff --git a/gcc/config/phoenix.h b/gcc/config/phoenix.h
new file mode 100644
index 000..9ffb958
--- /dev/null
+++ b/gcc/config/phoenix.h
@@ -0,0 +1,33 @@
+/* Base configuration file for all Phoenix-RTOS targets.
+   Copyright (C) 2016 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3.  If not see
+.  */
+
+#undef TARGET_OS_CPP_BUILTINS
+#define TARGET_OS_CPP_BUILTINS()   \
+do {   \
+  builtin_define_std ("phoenix");  \
+  builtin_define_std ("unix"); \
+  builtin_assert ("system=phoenix");   \
+  builtin_assert ("system=unix");  \
+} while(0);
+
+#define STD_LIB_SPEC "%{!shared:%{g*:-lg} 
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+
+/* This will prevent selecting 'unsigned long int' instead of 'unsigned int' 
as 'uint32_t' in stdint-newlib.h. */
+#undef STDINT_LONG32
+#define STDINT_LONG32  0
-- 
2.7.4



[PATCH 1/3] Disable libgcj and libgloss for Phoenix-RTOS targets.

2016-06-15 Thread Kuba Sejdak
This patch disables libgcj and libgloss in main configure.ac for new OS port - 
Phoenix-RTOS.
Those libs are unnecessary to build GCC or newlib for arm-phoenix.

Is it ok for trunk? If possible, If possible, please merge it also to GCC-6 and 
GCC-5 branches.

2016-06-15  Jakub Sejdak  

* configure.ac: Disable libgcj and libgloss for Phoenix-RTOS targets.
* configure: Regenerated.

---
 ChangeLog| 5 +
 configure| 6 ++
 configure.ac | 6 ++
 3 files changed, 17 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index cee8206..ec5fa6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-15  Jakub Sejdak  
+
+* configure.ac: Disable libgcj and libgloss for Phoenix-RTOS targets.
+* configure: Regenerated.
+
 2016-06-14  Mikael Morin  
 
* MAINTAINERS (Write After Approval): Update e-mail address.
diff --git a/configure b/configure
index ea63784..19451d2 100755
--- a/configure
+++ b/configure
@@ -3469,6 +3469,9 @@ case "${target}" in
   *-*-netware*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs ${libgcj}"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
@@ -3725,6 +3728,9 @@ case "${target}" in
 ;;
   *-*-netware*)
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs target-libgloss"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs target-libgloss"
 # this is not caught below because this stanza matches earlier
diff --git a/configure.ac b/configure.ac
index 54558df..d965059 100644
--- a/configure.ac
+++ b/configure.ac
@@ -805,6 +805,9 @@ case "${target}" in
   *-*-netware*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs ${libgcj}"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
@@ -1061,6 +1064,9 @@ case "${target}" in
 ;;
   *-*-netware*)
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs target-libgloss"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs target-libgloss"
 # this is not caught below because this stanza matches earlier
-- 
2.7.4



[PATCH 3/3] Add support for arm*-*-phoenix* targets in libgcc.

2016-06-15 Thread Kuba Sejdak
Is it ok for trunk? If possible, If possible, please merge it also to GCC-6 and 
GCC-5 branches.

2016-06-15  Jakub Sejdak  

   * config.host: Add suport for arm*-*-phoenix* targets.

---
 libgcc/ChangeLog   | 4 
 libgcc/config.host | 7 +++
 2 files changed, 11 insertions(+)

diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 19d6011..73288cc 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-15  Jakub Sejdak  
+
+   * config.host: Add suport for arm*-*-phoenix* targets.
+
 2016-06-05  Aaron Conole  
Nathan Sidwell  
 
diff --git a/libgcc/config.host b/libgcc/config.host
index 7899216..196abc9 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -404,6 +404,13 @@ arm*-*-uclinux*)   # ARM ucLinux
unwind_header=config/arm/unwind-arm.h
extra_parts="$extra_parts crti.o crtn.o"
;;
+arm*-*-phoenix*)
+   tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp 
arm/t-phoenix"
+   tmake_file="${tmake_file} arm/t-bpabi"
+   tm_file="$tm_file arm/bpabi-lib.h"
+   extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+   unwind_header=config/arm/unwind-arm.h
+   ;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
tm_file="$tm_file arm/bpabi-lib.h"
-- 
2.7.4



[PATCH] Add port for Phoenix-RTOS on ARM platform.

2016-05-17 Thread Kuba Sejdak
---
 ChangeLog|  6 ++
 MAINTAINERS  |  1 +
 configure|  6 ++
 configure.ac |  6 ++
 gcc/ChangeLog|  6 ++
 gcc/config.gcc   | 11 +++
 gcc/config/arm/t-phoenix | 29 +
 gcc/config/phoenix.h | 33 +
 libgcc/ChangeLog |  4 
 libgcc/config.host   |  7 +++
 10 files changed, 109 insertions(+)
 create mode 100644 gcc/config/arm/t-phoenix
 create mode 100644 gcc/config/phoenix.h

diff --git a/ChangeLog b/ChangeLog
index 8698133..2d25a91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-17  Jakub Sejdak  
+
+* configure.ac: Disable libgcj and libgloss for Phoenix-RTOS targets.
+* configure: Regenerated.
+   * MAINTAINERS (OS maintainers): Add myself.
+
 2016-05-16  Jakub Sejdak  
 
* config.guess: Import version 2016-04-02 (newest).
diff --git a/MAINTAINERS b/MAINTAINERS
index c615168..1d22df6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -134,6 +134,7 @@ hpuxSteve Ellcey

 solarisRainer Orth 

 netbsd Jason Thorpe
 netbsd Krister Walfridsson 
+Phoenix-RTOS   Jakub Sejdak
 sh-linux-gnu   Kaz Kojima  
 RTEMS PortsJoel Sherrill   
 RTEMS PortsRalf Corsepius  
diff --git a/configure b/configure
index ea63784..19451d2 100755
--- a/configure
+++ b/configure
@@ -3469,6 +3469,9 @@ case "${target}" in
   *-*-netware*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs ${libgcj}"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
@@ -3725,6 +3728,9 @@ case "${target}" in
 ;;
   *-*-netware*)
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs target-libgloss"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs target-libgloss"
 # this is not caught below because this stanza matches earlier
diff --git a/configure.ac b/configure.ac
index 54558df..d965059 100644
--- a/configure.ac
+++ b/configure.ac
@@ -805,6 +805,9 @@ case "${target}" in
   *-*-netware*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs ${libgcj}"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs ${libgcj}"
 ;;
@@ -1061,6 +1064,9 @@ case "${target}" in
 ;;
   *-*-netware*)
 ;;
+  *-*-phoenix*)
+noconfigdirs="$noconfigdirs target-libgloss"
+;;
   *-*-rtems*)
 noconfigdirs="$noconfigdirs target-libgloss"
 # this is not caught below because this stanza matches earlier
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c854a3e..0b1f96b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-17 Jakub Sejdak 
+
+   * config.gcc: Add support for arm*-*-phoenix* targets.
+   * config/arm/t-phoenix: New.
+   * config/phoenix.h: New.
+
 2016-05-16  Wilco Dijkstra  
 
 * doc/invoke.texi (AArch64 Options): Various updates.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 51af122a..5470fa6 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -815,6 +815,11 @@ case ${target} in
   ;;
   esac
   ;;
+*-*-phoenix*)
+  gas=yes
+  gnu_ld=yes
+  default_use_cxa_atexit=yes
+  ;;
 *-*-rtems*)
   case ${enable_threads} in
 "" | yes | rtems) thread_file='rtems' ;;
@@ -1099,6 +1104,12 @@ arm*-*-uclinux*eabi*)# ARM ucLinux
# The EABI requires the use of __cxa_atexit.
default_use_cxa_atexit=yes
;;
+arm*-*-phoenix*)
+   tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
+   tm_file="${tm_file} newlib-stdint.h phoenix.h"
+   tm_file="${tm_file} arm/aout.h arm/arm.h"
+   tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-phoenix"
+   ;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
case ${target} in
arm*eb-*-eabi*)
diff --git a/gcc/config/arm/t-phoenix b/gcc/config/arm/t-phoenix
new file mode 100644
index 000..d881884
--- /dev/null
+++ b/gcc/config/arm/t-phoenix
@@ -0,0 +1,29 @@
+# Copyright (C) 2016 Free Software Foundation, Inc.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GCC 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