* svr4.h avoidance: v850
@ 2010-12-09 23:00 Joseph S. Myers
2010-12-10 16:00 ` Jeff Law
2010-12-15 11:32 ` Nick Clifton
0 siblings, 2 replies; 3+ messages in thread
From: Joseph S. Myers @ 2010-12-09 23:00 UTC (permalink / raw)
To: gcc-patches; +Cc: nickc
This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops v850*-* from using that header, adding
the macros used from it to v850.h.
Tested building cc1 and xgcc for crosses to v850e-elf and v850-elf.
(I tried v850e1-elf as well, but config.sub doesn't accept v850e1-*
targets; it appears the config.gcc stanza for v850e1-*-* is actually
dead code.) OK to commit?
2010-12-09 Joseph Myers <joseph@codesourcery.com>
* config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 167658)
+++ gcc/config.gcc (working copy)
@@ -2585,7 +2585,7 @@ spu-*-elf*)
;;
v850e1-*-*)
target_cpu_default="TARGET_CPU_v850e1"
- tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
+ tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
tm_p_file=v850/v850-protos.h
tmake_file=v850/t-v850e
md_file=v850/v850.md
@@ -2603,7 +2603,7 @@ v850e1-*-*)
;;
v850e-*-*)
target_cpu_default="TARGET_CPU_v850e"
- tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
+ tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
tm_p_file=v850/v850-protos.h
tmake_file=v850/t-v850e
md_file=v850/v850.md
@@ -2621,7 +2621,7 @@ v850e-*-*)
;;
v850-*-*)
target_cpu_default="TARGET_CPU_generic"
- tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+ tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
tmake_file=v850/t-v850
if test x$stabs = xyes
then
Index: gcc/config/v850/v850.h
===================================================================
--- gcc/config/v850/v850.h (revision 167658)
+++ gcc/config/v850/v850.h (working copy)
@@ -198,6 +198,18 @@ extern struct small_memory_info small_me
On the NEC V850, loads do sign extension, so make this default. */
#define DEFAULT_SIGNED_CHAR 1
+
+#undef SIZE_TYPE
+#define SIZE_TYPE "unsigned int"
+
+#undef PTRDIFF_TYPE
+#define PTRDIFF_TYPE "int"
+
+#undef WCHAR_TYPE
+#define WCHAR_TYPE "long int"
+
+#undef WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE BITS_PER_WORD
\f
/* Standard register usage. */
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svr4.h avoidance: v850
2010-12-09 23:00 svr4.h avoidance: v850 Joseph S. Myers
@ 2010-12-10 16:00 ` Jeff Law
2010-12-15 11:32 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Law @ 2010-12-10 16:00 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: gcc-patches, nickc
On 12/09/10 15:50, Joseph S. Myers wrote:
> This patch in the series removing svr4.h from the headers used by
> particular targets in GCC stops v850*-* from using that header, adding
> the macros used from it to v850.h.
>
> Tested building cc1 and xgcc for crosses to v850e-elf and v850-elf.
> (I tried v850e1-elf as well, but config.sub doesn't accept v850e1-*
> targets; it appears the config.gcc stanza for v850e1-*-* is actually
> dead code.) OK to commit?
>
> 2010-12-09 Joseph Myers<joseph@codesourcery.com>
>
> * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
> WCHAR_TYPE_SIZE): Define.
> * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
OK.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svr4.h avoidance: v850
2010-12-09 23:00 svr4.h avoidance: v850 Joseph S. Myers
2010-12-10 16:00 ` Jeff Law
@ 2010-12-15 11:32 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2010-12-15 11:32 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: gcc-patches
Hi Joseph,
> 2010-12-09 Joseph Myers<joseph@codesourcery.com>
>
> * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
> WCHAR_TYPE_SIZE): Define.
> * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
Approved - please apply.
Cheers
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-15 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 23:00 svr4.h avoidance: v850 Joseph S. Myers
2010-12-10 16:00 ` Jeff Law
2010-12-15 11:32 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).