xstormy: Set tm_d_file in config.gcc

Message ID CABOHX+e2SqQa=rLiNch+Gr3Br_Q_OK1vs+YpUPeoibF2iwTxug@mail.gmail.com
State New
Headers show
Series
  • xstormy: Set tm_d_file in config.gcc
Related show

Commit Message

Iain Buclaw Oct. 29, 2018, 10:10 p.m.
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  <ibuclaw@gdcproject.org>

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

---

Comments

Jeff Law Oct. 29, 2018, 10:11 p.m. | #1
On 10/29/18 4:10 PM, Iain Buclaw wrote:
> 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?

> 

OK
jeff

Patch

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