xtensa: don't use unwind-dw2-fde-dip with elf targets
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 18 Oct 2016 19:12:19 +0000 (19:12 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 18 Oct 2016 19:12:19 +0000 (19:12 +0000)
commit2a26adf1d8bb511bfea14abefc5cd538d695e51e
tree4a05cc39f036e963ba4f57765cb94ed85bbb2b23
parent66192aa1294360c2522e2e30fc45f84a81719419
xtensa: don't use unwind-dw2-fde-dip with elf targets

Define LIB2ADDEH_XTENSA_UNWIND_DW2_FDE to unwind-dw2-fde.c in
xtensa/t-elf and to unwind-dw2-fde-dip.c in xtensa/t-linux and use
LIB2ADDEH_XTENSA_UNWIND_DW2_FDE in LIB2ADDEH definition.

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

2016-10-18  Max Filippov  <jcmvbkbc@gmail.com>
libgcc/
* config/xtensa/t-elf (LIB2ADDEH_XTENSA_UNWIND_DW2_FDE): New
definition.
* config/xtensa/t-linux (LIB2ADDEH_XTENSA_UNWIND_DW2_FDE): New
definition.
* config/xtensa/t-windowed (LIB2ADDEH): Use
LIB2ADDEH_XTENSA_UNWIND_DW2_FDE defined by either xtensa/t-elf
or xtensa/t-linux.

From-SVN: r241313
libgcc/ChangeLog
libgcc/config/xtensa/t-elf
libgcc/config/xtensa/t-linux
libgcc/config/xtensa/t-windowed