This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[crosstool-ng/crosstool-ng] 6c6829: xtensa: fix endianness support


  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: 6c6829a0610e6282be922183c9601cb2365df9a4
      https://github.com/crosstool-ng/crosstool-ng/commit/6c6829a0610e6282be922183c9601cb2365df9a4
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    M config/arch/xtensa.in
    M samples/xtensa-unknown-linux-uclibc/crosstool.config
    M scripts/build/arch/xtensa.sh

  Log Message:
  -----------
  xtensa: fix endianness support

To build uClibc correctly we need correct endianness selected in the
crosstool-NG. Xtensa cores may be little- or big-endian, but this
property is static. The toolchain knows the core endianness and doesn't
need options to select it.
Enable ARCH_SUPPORTS_BOTH_ENDIAN and select LE by default. Specify empty
CT_ARCH_ENDIAN_CFLAG so that -m{big,little}-endian don't get added to
the TARGET_CFLAGS, as it's not supported by gcc. Specify empty
CT_ARCH_ENDIAN_LDFLAG so that -EB/-EL don't get added to the
TARGET_LDFLAGS as they are ignored. Select big-endian in the example
xtensa-unknown-linux-uclibc configuration.

This fixes uClibc toolchain build for little-endian cores.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: fe3cca91d24ada592d19321764bbc5cb4ca338a1
      https://github.com/crosstool-ng/crosstool-ng/commit/fe3cca91d24ada592d19321764bbc5cb4ca338a1
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    A patches/gcc/5.4.0/875-xtensa-fix-xtensa_fallback_frame_state-for-call0-ABI.patch

  Log Message:
  -----------
  gcc: fix xtensa_fallback_frame_state for call0 ABI

This allows for stack unwinding over signal frames on xtensa linux with
call0 ABI.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: 73b11177c22440dc3eb9aee5859d3592ae0b0c8d
      https://github.com/crosstool-ng/crosstool-ng/commit/73b11177c22440dc3eb9aee5859d3592ae0b0c8d
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    A patches/gcc/5.4.0/876-xtensa-fix-libgcc-build-with-text-section-literals.patch

  Log Message:
  -----------
  gcc: fix libgcc build with --text-section-literals for xtensa

This fixes toolchain build with --text-section-literals, which should
normally be enabled for linux targets.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: fdf35a2fa90ed6f190ea678821b1e2378c86c4f6
      https://github.com/crosstool-ng/crosstool-ng/commit/fdf35a2fa90ed6f190ea678821b1e2378c86c4f6
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    M samples/xtensa-unknown-linux-uclibc/crosstool.config

  Log Message:
  -----------
  samples: add target CFLAGS to xtensa-unknown-linux-uclibc

Add -mlongcalls and -mtext-section-literals to target CFLAGS. Target
libraries built with these flags have great call range, useful for linux
applications.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: c9b2d11f54e35845ab7eef40d5253559416121cf
      https://github.com/crosstool-ng/crosstool-ng/commit/c9b2d11f54e35845ab7eef40d5253559416121cf
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    A patches/gcc/5.4.0/877-xtensa-don-t-use-unwind-dw2-fde-dip-with-elf-targets.patch
    A patches/gcc/6.2.0/870-xtensa-don-t-use-unwind-dw2-fde-dip-with-elf-targets.patch

  Log Message:
  -----------
  gcc: don't use unwind-dw2-fde-dip with xtensa-elf targets

This fixes build for elf target with windowed xtensa core that currently
breaks with the following error message:

  unwind-dw2-fde-dip.c:36:40: fatal error: elf.h: No such file or directory

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: b55c288db921212cc0eb821cf2233250c025beb8
      https://github.com/crosstool-ng/crosstool-ng/commit/b55c288db921212cc0eb821cf2233250c025beb8
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    A patches/gcc/6.2.0/871-xtensa-Fix-PR-target-78118.patch

  Log Message:
  -----------
  gcc: backport fix for xtensa PR target/78118

This fixes ICE when building libgcc for xtensa with call0 ABI.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: 51b4a509db982349af6c9b2072b7a6fad0547570
      https://github.com/crosstool-ng/crosstool-ng/commit/51b4a509db982349af6c9b2072b7a6fad0547570
  Author: Max Filippov <jcmvbkbc@gmail.com>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    A samples/xtensa-fsf-linux-uclibc/crosstool.config
    A samples/xtensa-fsf-linux-uclibc/reported.by
    R samples/xtensa-unknown-linux-uclibc/crosstool.config
    R samples/xtensa-unknown-linux-uclibc/reported.by

  Log Message:
  -----------
  samples: rename xtensa-unknown-linux-uclibc to xtensa-fsf-linux-uclibc

Put xtensa core name to the tuple vendor string (without any overlay the
default core is 'fsf') and rename sample directory accordingly.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>


  Commit: 699a54d8cedef2883ca6834feed99f8f2b077332
      https://github.com/crosstool-ng/crosstool-ng/commit/699a54d8cedef2883ca6834feed99f8f2b077332
  Author: Alexey Neyman <stilor@att.net>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M config/arch/xtensa.in
    A patches/gcc/5.4.0/875-xtensa-fix-xtensa_fallback_frame_state-for-call0-ABI.patch
    A patches/gcc/5.4.0/876-xtensa-fix-libgcc-build-with-text-section-literals.patch
    A patches/gcc/5.4.0/877-xtensa-don-t-use-unwind-dw2-fde-dip-with-elf-targets.patch
    A patches/gcc/6.2.0/870-xtensa-don-t-use-unwind-dw2-fde-dip-with-elf-targets.patch
    A patches/gcc/6.2.0/871-xtensa-Fix-PR-target-78118.patch
    A samples/xtensa-fsf-linux-uclibc/crosstool.config
    A samples/xtensa-fsf-linux-uclibc/reported.by
    R samples/xtensa-unknown-linux-uclibc/crosstool.config
    R samples/xtensa-unknown-linux-uclibc/reported.by
    M scripts/build/arch/xtensa.sh

  Log Message:
  -----------
  Merge pull request #465 from jcmvbkbc/xtensa-endian

Xtensa fixes


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/0946ce59a096...699a54d8cede
--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]