This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: svr4.h avoidance: mn10300


On 12/09/10 11:14, Joseph S. Myers wrote:
This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops mn10300-*-* from using that header.

The macros used from that header are added to mn10300.h.  Because
am33_2.0-*-linux* does not use svr4.h and so got the default
definitions of these macros, they are then undefined in
mn10300/linux.h to preserve this.

Tested building cc1 and xgcc for crosses to mn10300-elf and
am33_2.0-linux-gnu.  (The latter build fails with "targhooks.c:342:
undefined reference to `print_operand_address'", a pre-existing
problem probably caused by r165778.)  OK to commit?

2010-12-09 Joseph Myers<joseph@codesourcery.com>

	* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Undefine.
	* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Define.
	* config.gcc (mn10300-*-*): Don't use svr4.h.
OK.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]