public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add support for Phoenix-RTOS on ARM.
@ 2016-05-12  9:17 Jakub Sejdak
  2016-05-12  9:21 ` Jakub Sejdak
  2016-05-23 12:56 ` [PATCH] Add support for Phoenix-RTOS on ARM Nick Clifton
  0 siblings, 2 replies; 10+ messages in thread
From: Jakub Sejdak @ 2016-05-12  9:17 UTC (permalink / raw)
  To: binutils; +Cc: gdb-patches, Kuba Sejdak

From: Kuba Sejdak <jakub.sejdak@phoesys.com>

---
 bfd/config.bfd                  |  4 ++++
 gas/configure.tgt               |  1 +
 ld/Makefile.am                  |  5 +++++
 ld/configure.tgt                |  1 +
 ld/emulparams/armelf_phoenix.sh | 24 ++++++++++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 ld/emulparams/armelf_phoenix.sh

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 7c4eece..4e53304 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -349,6 +349,10 @@ case "${targ}" in
     targ_selvecs=arm_coff_be_vec
     targ_underscore=yes
     ;;
+  arm-*-phoenix*)
+    targ_defvec=arm_elf32_le_vec
+    targ_selvecs=arm_elf32_be_vec
+    ;;
   arm-*-rtems*)
     targ_defvec=arm_elf32_le_vec
     targ_selvecs=arm_elf32_be_vec
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 75470e4..4e0d4aa 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -135,6 +135,7 @@ case ${generic_target} in
 
   arm-*-aout)				fmt=aout ;;
   arm-*-coff)				fmt=coff ;;
+  arm-*-phoenix*)			fmt=elf ;;
   arm-*-rtems*)				fmt=elf ;;
   arm-*-elf)				fmt=elf ;;
   arm-*-eabi*)				fmt=elf em=armeabi ;;
diff --git a/ld/Makefile.am b/ld/Makefile.am
index bf50e70..9d740d4 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -179,6 +179,7 @@ ALL_EMULATION_SOURCES = \
 	earmelf_linux_eabi.c \
 	earmelf_nacl.c \
 	earmelf_nbsd.c \
+	earmelf_phoenix.c \
 	earmelf_vxworks.c \
 	earmelfb.c \
 	earmelfb_fbsd.c \
@@ -777,6 +778,10 @@ earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
 
+earmelf_phoenix.c: $(srcdir)/emulparams/armelf_phoenix.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 1f6db42..88c97cb 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -103,6 +103,7 @@ arm-*-netbsd*)		targ_emul=armnbsd;
 			targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd"  ;;
 arm-*-nto*)		targ_emul=armnto ;;
 arm-*-openbsd*)		targ_emul=armnbsd ;;
+arm-*-phoenix*)		targ_emul=armelf ;;
 arm-*-rtems*)		targ_emul=armelf ;;
 armeb-*-elf | armeb-*-eabi*)
 			targ_emul=armelfb ;;
diff --git a/ld/emulparams/armelf_phoenix.sh b/ld/emulparams/armelf_phoenix.sh
new file mode 100644
index 0000000..d78edaf
--- /dev/null
+++ b/ld/emulparams/armelf_phoenix.sh
@@ -0,0 +1,24 @@
+ARCH=arm
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-littlearm"
+BIG_OUTPUT_FORMAT="elf32-bigarm"
+LITTLE_OUTPUT_FORMAT="elf32-littlearm"
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
+TEMPLATE_NAME=elf32
+EXTRA_EM_FILE=armelf
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
+DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
+OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
+OTHER_BSS_SYMBOLS='__bss_start__ = .;'
+OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
+OTHER_END_SYMBOLS='__end__ = . ;'
+OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
+
+TEXT_START_ADDR=0x00001000
+TARGET2_TYPE=got-rel
+
+# ARM does not support .s* sections.
+NO_SMALL_DATA=yes
-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-12  9:17 [PATCH] Add support for Phoenix-RTOS on ARM Jakub Sejdak
@ 2016-05-12  9:21 ` Jakub Sejdak
  2016-05-12 13:33   ` Yao Qi
  2016-05-23 12:56 ` [PATCH] Add support for Phoenix-RTOS on ARM Nick Clifton
  1 sibling, 1 reply; 10+ messages in thread
From: Jakub Sejdak @ 2016-05-12  9:21 UTC (permalink / raw)
  To: binutils; +Cc: gdb-patches, Kuba Sejdak

Please regenerate configure files and import config.sub from GNU
config, as this patch depends on it.
I didn't write a changelog entry, because I don't know who is allowed
to do it: patch sender or global maintainters.

2016-05-12 11:17 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>:
> From: Kuba Sejdak <jakub.sejdak@phoesys.com>
>
> ---
>  bfd/config.bfd                  |  4 ++++
>  gas/configure.tgt               |  1 +
>  ld/Makefile.am                  |  5 +++++
>  ld/configure.tgt                |  1 +
>  ld/emulparams/armelf_phoenix.sh | 24 ++++++++++++++++++++++++
>  5 files changed, 35 insertions(+)
>  create mode 100644 ld/emulparams/armelf_phoenix.sh
>
> diff --git a/bfd/config.bfd b/bfd/config.bfd
> index 7c4eece..4e53304 100644
> --- a/bfd/config.bfd
> +++ b/bfd/config.bfd
> @@ -349,6 +349,10 @@ case "${targ}" in
>      targ_selvecs=arm_coff_be_vec
>      targ_underscore=yes
>      ;;
> +  arm-*-phoenix*)
> +    targ_defvec=arm_elf32_le_vec
> +    targ_selvecs=arm_elf32_be_vec
> +    ;;
>    arm-*-rtems*)
>      targ_defvec=arm_elf32_le_vec
>      targ_selvecs=arm_elf32_be_vec
> diff --git a/gas/configure.tgt b/gas/configure.tgt
> index 75470e4..4e0d4aa 100644
> --- a/gas/configure.tgt
> +++ b/gas/configure.tgt
> @@ -135,6 +135,7 @@ case ${generic_target} in
>
>    arm-*-aout)                          fmt=aout ;;
>    arm-*-coff)                          fmt=coff ;;
> +  arm-*-phoenix*)                      fmt=elf ;;
>    arm-*-rtems*)                                fmt=elf ;;
>    arm-*-elf)                           fmt=elf ;;
>    arm-*-eabi*)                         fmt=elf em=armeabi ;;
> diff --git a/ld/Makefile.am b/ld/Makefile.am
> index bf50e70..9d740d4 100644
> --- a/ld/Makefile.am
> +++ b/ld/Makefile.am
> @@ -179,6 +179,7 @@ ALL_EMULATION_SOURCES = \
>         earmelf_linux_eabi.c \
>         earmelf_nacl.c \
>         earmelf_nbsd.c \
> +       earmelf_phoenix.c \
>         earmelf_vxworks.c \
>         earmelfb.c \
>         earmelfb_fbsd.c \
> @@ -777,6 +778,10 @@ earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
>    $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
>    $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
>
> +earmelf_phoenix.c: $(srcdir)/emulparams/armelf_phoenix.sh \
> +  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
> +  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
> +
>  earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
>    $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
>    $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
> diff --git a/ld/configure.tgt b/ld/configure.tgt
> index 1f6db42..88c97cb 100644
> --- a/ld/configure.tgt
> +++ b/ld/configure.tgt
> @@ -103,6 +103,7 @@ arm-*-netbsd*)              targ_emul=armnbsd;
>                         targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd"  ;;
>  arm-*-nto*)            targ_emul=armnto ;;
>  arm-*-openbsd*)                targ_emul=armnbsd ;;
> +arm-*-phoenix*)                targ_emul=armelf ;;
>  arm-*-rtems*)          targ_emul=armelf ;;
>  armeb-*-elf | armeb-*-eabi*)
>                         targ_emul=armelfb ;;
> diff --git a/ld/emulparams/armelf_phoenix.sh b/ld/emulparams/armelf_phoenix.sh
> new file mode 100644
> index 0000000..d78edaf
> --- /dev/null
> +++ b/ld/emulparams/armelf_phoenix.sh
> @@ -0,0 +1,24 @@
> +ARCH=arm
> +SCRIPT_NAME=elf
> +OUTPUT_FORMAT="elf32-littlearm"
> +BIG_OUTPUT_FORMAT="elf32-bigarm"
> +LITTLE_OUTPUT_FORMAT="elf32-littlearm"
> +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
> +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
> +TEMPLATE_NAME=elf32
> +EXTRA_EM_FILE=armelf
> +GENERATE_SHLIB_SCRIPT=yes
> +GENERATE_PIE_SCRIPT=yes
> +
> +DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
> +OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
> +OTHER_BSS_SYMBOLS='__bss_start__ = .;'
> +OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
> +OTHER_END_SYMBOLS='__end__ = . ;'
> +OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
> +
> +TEXT_START_ADDR=0x00001000
> +TARGET2_TYPE=got-rel
> +
> +# ARM does not support .s* sections.
> +NO_SMALL_DATA=yes
> --
> 2.7.4
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-12  9:21 ` Jakub Sejdak
@ 2016-05-12 13:33   ` Yao Qi
  2016-05-19  7:29     ` Jakub Sejdak
  0 siblings, 1 reply; 10+ messages in thread
From: Yao Qi @ 2016-05-12 13:33 UTC (permalink / raw)
  To: Jakub Sejdak; +Cc: binutils, gdb-patches

Jakub Sejdak <jakub.sejdak@phoesys.com> writes:

> Please regenerate configure files and import config.sub from GNU
> config, as this patch depends on it.

You can do it by yourself.  Import config.sub and config.guess to gcc,
and post the patch to gcc-patches mail list.  GCC maintainers can pick
it up, then you can sync the patch to binutils.

> I didn't write a changelog entry, because I don't know who is allowed
> to do it: patch sender or global maintainters.

You can write the changelog entry.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-12 13:33   ` Yao Qi
@ 2016-05-19  7:29     ` Jakub Sejdak
  2016-05-19 13:16       ` Yao Qi
  0 siblings, 1 reply; 10+ messages in thread
From: Jakub Sejdak @ 2016-05-19  7:29 UTC (permalink / raw)
  To: Yao Qi; +Cc: binutils, gdb-patches

config.sub and config.guess are already in newest version in GCC's
trunk. Will someone import them?
Having it done, can I to push this patch (with changelog included) to upstream?

2016-05-12 15:33 GMT+02:00 Yao Qi <qiyaoltc@gmail.com>:
> Jakub Sejdak <jakub.sejdak@phoesys.com> writes:
>
>> Please regenerate configure files and import config.sub from GNU
>> config, as this patch depends on it.
>
> You can do it by yourself.  Import config.sub and config.guess to gcc,
> and post the patch to gcc-patches mail list.  GCC maintainers can pick
> it up, then you can sync the patch to binutils.
>
>> I didn't write a changelog entry, because I don't know who is allowed
>> to do it: patch sender or global maintainters.
>
> You can write the changelog entry.
>
> --
> Yao (齐尧)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-19  7:29     ` Jakub Sejdak
@ 2016-05-19 13:16       ` Yao Qi
  2016-05-23 10:41         ` Sync config.[guess|sub] from FSF GCC mainline Nick Clifton
  0 siblings, 1 reply; 10+ messages in thread
From: Yao Qi @ 2016-05-19 13:16 UTC (permalink / raw)
  To: Jakub Sejdak; +Cc: binutils, gdb-patches

Jakub Sejdak <jakub.sejdak@phoesys.com> writes:

> config.sub and config.guess are already in newest version in GCC's
> trunk. Will someone import them?

You can post a patch to sync config.sub and config.guess in
binutils-gdb.  binutils maintainers can review, approve and commit the
patch for you if you don't have the write access to the git repo.

> Having it done, can I to push this patch (with changelog included) to upstream?

No, this patch still needs proper review.  I am not the right person to
review and approve this patch.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Sync config.[guess|sub] from FSF GCC mainline
  2016-05-19 13:16       ` Yao Qi
@ 2016-05-23 10:41         ` Nick Clifton
  2016-05-27 13:06           ` Maciej W. Rozycki
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Clifton @ 2016-05-23 10:41 UTC (permalink / raw)
  To: binutils; +Cc: Yao Qi, Jakub Sejdak, gdb-patches

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

Hi Guys,

 I am checking in the attached patch to sync our top level config.guess 
 and config.sub files with their FSF GCC counterparts.

Cheers
  Nick


[-- Attachment #2: config.patch --]
[-- Type: text/x-patch, Size: 10983 bytes --]

diff --git a/config.guess b/config.guess
index 802e5f1..b422c43 100755
--- a/config.guess
+++ b/config.guess
@@ -2,7 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright 1992-2016 Free Software Foundation, Inc.
 
-timestamp='2016-01-11'
+timestamp='2016-05-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -237,6 +237,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
 	exit ;;
+    *:LibertyBSD:*:*)
+	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
+	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
+	exit ;;
     *:ekkoBSD:*:*)
 	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
 	exit ;;
@@ -268,42 +272,42 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
 	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
 	case "$ALPHA_CPU_TYPE" in
 	    "EV4 (21064)")
-		UNAME_MACHINE="alpha" ;;
+		UNAME_MACHINE=alpha ;;
 	    "EV4.5 (21064)")
-		UNAME_MACHINE="alpha" ;;
+		UNAME_MACHINE=alpha ;;
 	    "LCA4 (21066/21068)")
-		UNAME_MACHINE="alpha" ;;
+		UNAME_MACHINE=alpha ;;
 	    "EV5 (21164)")
-		UNAME_MACHINE="alphaev5" ;;
+		UNAME_MACHINE=alphaev5 ;;
 	    "EV5.6 (21164A)")
-		UNAME_MACHINE="alphaev56" ;;
+		UNAME_MACHINE=alphaev56 ;;
 	    "EV5.6 (21164PC)")
-		UNAME_MACHINE="alphapca56" ;;
+		UNAME_MACHINE=alphapca56 ;;
 	    "EV5.7 (21164PC)")
-		UNAME_MACHINE="alphapca57" ;;
+		UNAME_MACHINE=alphapca57 ;;
 	    "EV6 (21264)")
-		UNAME_MACHINE="alphaev6" ;;
+		UNAME_MACHINE=alphaev6 ;;
 	    "EV6.7 (21264A)")
-		UNAME_MACHINE="alphaev67" ;;
+		UNAME_MACHINE=alphaev67 ;;
 	    "EV6.8CB (21264C)")
-		UNAME_MACHINE="alphaev68" ;;
+		UNAME_MACHINE=alphaev68 ;;
 	    "EV6.8AL (21264B)")
-		UNAME_MACHINE="alphaev68" ;;
+		UNAME_MACHINE=alphaev68 ;;
 	    "EV6.8CX (21264D)")
-		UNAME_MACHINE="alphaev68" ;;
+		UNAME_MACHINE=alphaev68 ;;
 	    "EV6.9A (21264/EV69A)")
-		UNAME_MACHINE="alphaev69" ;;
+		UNAME_MACHINE=alphaev69 ;;
 	    "EV7 (21364)")
-		UNAME_MACHINE="alphaev7" ;;
+		UNAME_MACHINE=alphaev7 ;;
 	    "EV7.9 (21364A)")
-		UNAME_MACHINE="alphaev79" ;;
+		UNAME_MACHINE=alphaev79 ;;
 	esac
 	# A Pn.n version is a patched version.
 	# A Vn.n version is a released version.
 	# A Tn.n version is a released field test version.
 	# A Xn.n version is an unreleased experimental baselevel.
 	# 1.2 uses "1.2" for uname -r.
-	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`
 	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 	exitcode=$?
 	trap '' 0
@@ -376,16 +380,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
 	exit ;;
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 	eval $set_cc_for_build
-	SUN_ARCH="i386"
+	SUN_ARCH=i386
 	# If there is a compiler, see if it is configured for 64-bit objects.
 	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 	# This test works for both compilers.
-	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
 	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
-		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
 		grep IS_64BIT_ARCH >/dev/null
 	    then
-		SUN_ARCH="x86_64"
+		SUN_ARCH=x86_64
 	    fi
 	fi
 	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
@@ -410,7 +414,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
 	exit ;;
     sun*:*:4.2BSD:*)
 	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
-	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
 	case "`/bin/arch`" in
 	    sun3)
 		echo m68k-sun-sunos${UNAME_RELEASE}
@@ -635,13 +639,13 @@ EOF
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
 		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 		    case "${sc_cpu_version}" in
-		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
-		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
+		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
 		      532)                      # CPU_PA_RISC2_0
 			case "${sc_kernel_bits}" in
-			  32) HP_ARCH="hppa2.0n" ;;
-			  64) HP_ARCH="hppa2.0w" ;;
-			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
+			  32) HP_ARCH=hppa2.0n ;;
+			  64) HP_ARCH=hppa2.0w ;;
+			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
 			esac ;;
 		    esac
 		fi
@@ -680,11 +684,11 @@ EOF
 		    exit (0);
 		}
 EOF
-		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
 		fi ;;
 	esac
-	if [ ${HP_ARCH} = "hppa2.0w" ]
+	if [ ${HP_ARCH} = hppa2.0w ]
 	then
 	    eval $set_cc_for_build
 
@@ -697,12 +701,12 @@ EOF
 	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
 	    # => hppa64-hp-hpux11.23
 
-	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
 		grep -q __LP64__
 	    then
-		HP_ARCH="hppa2.0w"
+		HP_ARCH=hppa2.0w
 	    else
-		HP_ARCH="hppa64"
+		HP_ARCH=hppa64
 	    fi
 	fi
 	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
@@ -807,14 +811,14 @@ EOF
 	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 	exit ;;
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
-	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
+	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
 	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 	exit ;;
     5000:UNIX_System_V:4.*:*)
-	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
-	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
 	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 	exit ;;
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
@@ -896,7 +900,7 @@ EOF
 	exit ;;
     *:GNU/*:*:*)
 	# other systems with GNU libc and userland
-	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
+	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
 	exit ;;
     i*86:Minix:*:*)
 	echo ${UNAME_MACHINE}-pc-minix
@@ -919,7 +923,7 @@ EOF
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
 	esac
 	objdump --private-headers /bin/sh | grep -q ld.so.1
-	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 	exit ;;
     arc:Linux:*:* | arceb:Linux:*:*)
@@ -1272,6 +1276,9 @@ EOF
     SX-8R:SUPER-UX:*:*)
 	echo sx8r-nec-superux${UNAME_RELEASE}
 	exit ;;
+    SX-ACE:SUPER-UX:*:*)
+	echo sxace-nec-superux${UNAME_RELEASE}
+	exit ;;
     Power*:Rhapsody:*:*)
 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
 	exit ;;
@@ -1285,9 +1292,9 @@ EOF
 	    UNAME_PROCESSOR=powerpc
 	fi
 	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
-	    if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
 		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
-		    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
 		    grep IS_64BIT_ARCH >/dev/null
 		then
 		    case $UNAME_PROCESSOR in
@@ -1309,7 +1316,7 @@ EOF
 	exit ;;
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
 	UNAME_PROCESSOR=`uname -p`
-	if test "$UNAME_PROCESSOR" = "x86"; then
+	if test "$UNAME_PROCESSOR" = x86; then
 		UNAME_PROCESSOR=i386
 		UNAME_MACHINE=pc
 	fi
@@ -1340,7 +1347,7 @@ EOF
 	# "uname -m" is not consistent, so use $cputype instead. 386
 	# is converted to i386 for consistency with other x86
 	# operating systems.
-	if test "$cputype" = "386"; then
+	if test "$cputype" = 386; then
 	    UNAME_MACHINE=i386
 	else
 	    UNAME_MACHINE="$cputype"
@@ -1382,7 +1389,7 @@ EOF
 	echo i386-pc-xenix
 	exit ;;
     i*86:skyos:*:*)
-	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
 	exit ;;
     i*86:rdos:*:*)
 	echo ${UNAME_MACHINE}-pc-rdos
diff --git a/config.sub b/config.sub
index fae826a..2377e13 100755
--- a/config.sub
+++ b/config.sub
@@ -2,7 +2,7 @@
 # Configuration validation subroutine script.
 #   Copyright 1992-2016 Free Software Foundation, Inc.
 
-timestamp='2016-01-11'
+timestamp='2016-05-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -520,7 +520,7 @@ case $basic_machine in
 		basic_machine=i386-pc
 		os=-aros
 		;;
-        asmjs)
+	asmjs)
 		basic_machine=asmjs-unknown
 		;;
 	aux)
@@ -1382,7 +1382,7 @@ case $os in
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
-	      | -bitrig* | -openbsd* | -solidbsd* \
+	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
@@ -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*)
@@ -1531,6 +1531,8 @@ case $os in
 		;;
 	-nacl*)
 		;;
+	-ios)
+		;;
 	-none)
 		;;
 	*)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-12  9:17 [PATCH] Add support for Phoenix-RTOS on ARM Jakub Sejdak
  2016-05-12  9:21 ` Jakub Sejdak
@ 2016-05-23 12:56 ` Nick Clifton
  2016-05-23 13:55   ` Jakub Sejdak
  1 sibling, 1 reply; 10+ messages in thread
From: Nick Clifton @ 2016-05-23 12:56 UTC (permalink / raw)
  To: Jakub Sejdak, binutils; +Cc: gdb-patches

Hi Jakub,

  Thanks for submitting this patch.  I have now applied it to the 
  sources along with these changelog entries:

bfd/ChangeLog
2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>

	* config.bfd: Add entry for arm-phoenix.

gas/ChangeLog
2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>

	* configuse.tgt: Add entry for arm-phoenix.

ld/ChangeLog
2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>

	* Makefile.am: Add earmelf_phoenix.c.
	* Makefile.in: Regenerate.
	* configure.tgt: Add entry for arm-phoenix.
	* emulparams/armelf_phoenix.sh: New file.

  Note - in the future it helps if you can provide the changelog
  entries yourself.

Cheers
  Nick

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-23 12:56 ` [PATCH] Add support for Phoenix-RTOS on ARM Nick Clifton
@ 2016-05-23 13:55   ` Jakub Sejdak
  2016-05-24  9:45     ` Nick Clifton
  0 siblings, 1 reply; 10+ messages in thread
From: Jakub Sejdak @ 2016-05-23 13:55 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils, gdb-patches

Hi Nick,

Thank you accepting and applying patch. I will remember about
changelog next time.

By the way, is there any schedule for next binutils snapshot? Our
clients are depending on this patch and it would be easier to point to
snapshot rather than git repository.

Thanks,
Jakub Sejdak

2016-05-23 14:56 GMT+02:00 Nick Clifton <nickc@redhat.com>:
> Hi Jakub,
>
>   Thanks for submitting this patch.  I have now applied it to the
>   sources along with these changelog entries:
>
> bfd/ChangeLog
> 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
>
>         * config.bfd: Add entry for arm-phoenix.
>
> gas/ChangeLog
> 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
>
>         * configuse.tgt: Add entry for arm-phoenix.
>
> ld/ChangeLog
> 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
>
>         * Makefile.am: Add earmelf_phoenix.c.
>         * Makefile.in: Regenerate.
>         * configure.tgt: Add entry for arm-phoenix.
>         * emulparams/armelf_phoenix.sh: New file.
>
>   Note - in the future it helps if you can provide the changelog
>   entries yourself.
>
> Cheers
>   Nick



-- 
Jakub Sejdak
Software Engineer
Phoenix Systems (www.phoesys.com)
+48 608 050 163

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add support for Phoenix-RTOS on ARM.
  2016-05-23 13:55   ` Jakub Sejdak
@ 2016-05-24  9:45     ` Nick Clifton
  0 siblings, 0 replies; 10+ messages in thread
From: Nick Clifton @ 2016-05-24  9:45 UTC (permalink / raw)
  To: Jakub Sejdak; +Cc: binutils, gdb-patches

Hi Jakub,

> By the way, is there any schedule for next binutils snapshot?

We do not have a well defined schedule for binutils releases. :-(

Ideally we would like to make two releases a year, but it does
depend upon the time and resources available, especially to our
release manager - Tristan Gringold.  It is my hope however that
we will be making another release this summer.


> Our clients are depending on this patch and it would be easier to point to
> snapshot rather than git repository.

There are weekly snapshots available from here:

  ftp://sourceware.org/pub/binutils/snapshots/

Cheers
  Nick

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Sync config.[guess|sub] from FSF GCC mainline
  2016-05-23 10:41         ` Sync config.[guess|sub] from FSF GCC mainline Nick Clifton
@ 2016-05-27 13:06           ` Maciej W. Rozycki
  0 siblings, 0 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 2016-05-27 13:06 UTC (permalink / raw)
  To: config-patches; +Cc: Nick Clifton, binutils, Yao Qi, Jakub Sejdak, gdb-patches

Hi,

On Mon, 23 May 2016, Nick Clifton wrote:

>  I am checking in the attached patch to sync our top level config.guess 
>  and config.sub files with their FSF GCC counterparts.

 This part looks like a regression to me, breaking character translation 
intended (single-argument `tr' without `-d' is I believe also not 
universally defined):

diff --git a/config.guess b/config.guess
index 802e5f1..b422c43 100755
--- a/config.guess
+++ b/config.guess
@@ -2,7 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright 1992-2016 Free Software Foundation, Inc.
 
-timestamp='2016-01-11'
+timestamp='2016-05-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -268,42 +272,42 @@ case
"${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
[...]
 	# A Tn.n version is a released field test version.
 	# A Xn.n version is an unreleased experimental baselevel.
 	# 1.2 uses "1.2" for uname -r.
-	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e
's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e
's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`

-- see the `tr' invocation at the end.  I spotted it by chance by reading 
the patch and I take it it is an accident which happened while doing a 
mechanical clean-up.

 Would you therefore please look into it and see if my suspicion is right?

 Thanks,

  Maciej

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-27 13:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-12  9:17 [PATCH] Add support for Phoenix-RTOS on ARM Jakub Sejdak
2016-05-12  9:21 ` Jakub Sejdak
2016-05-12 13:33   ` Yao Qi
2016-05-19  7:29     ` Jakub Sejdak
2016-05-19 13:16       ` Yao Qi
2016-05-23 10:41         ` Sync config.[guess|sub] from FSF GCC mainline Nick Clifton
2016-05-27 13:06           ` Maciej W. Rozycki
2016-05-23 12:56 ` [PATCH] Add support for Phoenix-RTOS on ARM Nick Clifton
2016-05-23 13:55   ` Jakub Sejdak
2016-05-24  9:45     ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).