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)
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

index b98f6d49f3f03ba21f2bd2c5e945d07bde13da37..baad2c1213caa490c09577547c2d2b4dcae6b8bb 100644 (file)
@@ -1,3 +1,13 @@
+2016-10-18  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * 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.
+
 2016-10-18  Ding-Kai Chen  <dkchen@cadence.com>
 
        * config/xtensa/ieee754-df.S (__recipdf2, __rsqrtdf2,
index 59d51210b957ebf4f841e7755ed4d60bdaf94734..967cf9bfa6c63aae2e20b45b058118961b626bfb 100644 (file)
@@ -3,3 +3,5 @@ CRTSTUFF_T_CFLAGS += -mlongcalls
 CRTSTUFF_T_CFLAGS_S += -mlongcalls
 
 HOST_LIBGCC2_CFLAGS += -mlongcalls
+
+LIB2ADDEH_XTENSA_UNWIND_DW2_FDE = $(srcdir)/unwind-dw2-fde.c
index 6f4ae893486cd5598cb62f91daef2819ad1542da..412eccae18b47e95dfdf545fbbbaec3cb012e57e 100644 (file)
@@ -1 +1,3 @@
 SHLIB_MAPFILES += $(srcdir)/config/xtensa/libgcc-glibc.ver
+
+LIB2ADDEH_XTENSA_UNWIND_DW2_FDE = $(srcdir)/unwind-dw2-fde-dip.c
index a99156cc2174f592bf270750f0e2430695025b50..f140136277e79364c1e095983fb1ce7124cc40cc 100644 (file)
@@ -1,2 +1,2 @@
 LIB2ADDEH = $(srcdir)/config/xtensa/unwind-dw2-xtensa.c \
-   $(srcdir)/unwind-dw2-fde-dip.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
+   $(LIB2ADDEH_XTENSA_UNWIND_DW2_FDE) $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c