* svr4.h avoidance: frv
@ 2010-12-07 17:16 Joseph S. Myers
2010-12-08 4:12 ` Alexandre Oliva
2010-12-09 16:04 ` Nick Clifton
0 siblings, 2 replies; 3+ messages in thread
From: Joseph S. Myers @ 2010-12-07 17:16 UTC (permalink / raw)
To: gcc-patches; +Cc: nickc, aoliva
This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops frv-*-elf and frv-*-*linux* (which
covers all frv-* targets) from using svr4.h, defining the macros used
from that header in frv.h instead.
Tested building cc1 and xgcc for crosses to frv-elf and frv-linux-gnu.
OK to commit?
2010-12-07 Joseph Myers <joseph@codesourcery.com>
* config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
diff -rupN --exclude=.svn gcc-mainline-3/gcc/config/frv/frv.h gcc-mainline/gcc/config/frv/frv.h
--- gcc-mainline-3/gcc/config/frv/frv.h 2010-12-02 09:40:30.000000000 -0800
+++ gcc-mainline/gcc/config/frv/frv.h 2010-12-07 08:53:29.000000000 -0800
@@ -514,6 +514,18 @@
default with the options `-fsigned-char' and `-funsigned-char'. */
#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
/* General purpose registers. */
#define GPR_FIRST 0 /* First gpr */
diff -rupN --exclude=.svn gcc-mainline-3/gcc/config.gcc gcc-mainline/gcc/config.gcc
--- gcc-mainline-3/gcc/config.gcc 2010-12-06 03:31:49.000000000 -0800
+++ gcc-mainline/gcc/config.gcc 2010-12-07 08:53:52.000000000 -0800
@@ -966,12 +966,12 @@ fr30-*-elf)
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
;;
frv-*-elf)
- tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+ tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
tmake_file=frv/t-frv
;;
frv-*-*linux*)
- tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \
+ tm_file="dbxelf.h elfos.h ${tm_file} \
linux.h glibc-stdint.h frv/linux.h"
tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
tmake_file="${tmake_file} frv/t-frv frv/t-linux"
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svr4.h avoidance: frv
2010-12-07 17:16 svr4.h avoidance: frv Joseph S. Myers
@ 2010-12-08 4:12 ` Alexandre Oliva
2010-12-09 16:04 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2010-12-08 4:12 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: gcc-patches, nickc
On Dec 7, 2010, "Joseph S. Myers" <joseph@codesourcery.com> wrote:
> Tested building cc1 and xgcc for crosses to frv-elf and frv-linux-gnu.
> OK to commit?
Sure, thanks
> 2010-12-07 Joseph Myers <joseph@codesourcery.com>
> * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
> WCHAR_TYPE_SIZE): Define.
> * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: svr4.h avoidance: frv
2010-12-07 17:16 svr4.h avoidance: frv Joseph S. Myers
2010-12-08 4:12 ` Alexandre Oliva
@ 2010-12-09 16:04 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2010-12-09 16:04 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: gcc-patches, aoliva
Hi Joseph,
> 2010-12-07 Joseph Myers<joseph@codesourcery.com>
>
> * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
> WCHAR_TYPE_SIZE): Define.
> * config.gcc (frv-*-elf, frv-*-*linux*): 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-09 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-07 17:16 svr4.h avoidance: frv Joseph S. Myers
2010-12-08 4:12 ` Alexandre Oliva
2010-12-09 16:04 ` 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).