The default value of tm_d_file is "${cpu_type}/${cpu_type}.h", however
this header doesn't exist for the xstormy back-end, so need to
explicitly override it to stormy16/stormy16.h

Also including elfos.h, otherwise there's a warning about a
redefinition of PREFERRED_DEBUGGING_TYPE when building with
--enable-languages=d.  There is no library support, but the compiler
works well enough.

OK for trunk?
-- 
Iain

---
gcc/ChangeLog:

2018-10-29  Iain Buclaw  <ibuc...@gdcproject.org>

    * config.gcc (xstormy16-*-elf): Set tm_d_file.

---
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 93dc2978603..b108697cfc7 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3161,6 +3161,7 @@ xstormy16-*-elf)
 	# For historical reasons, the target files omit the 'x'.
 	tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h"
 	tm_p_file=stormy16/stormy16-protos.h
+	tm_d_file="elfos.h stormy16/stormy16.h"
 	md_file=stormy16/stormy16.md
 	out_file=stormy16/stormy16.c
 	extra_options=stormy16/stormy16.opt

Reply via email to