svr4.h avoidance: mn10300

Jeff Law law@redhat.com
Fri Dec 10 16:09:00 GMT 2010


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



More information about the Gcc-patches mailing list