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: [PATCH] Add new target h8300-*-linux


On Thu, 22 Jan 2015, Yoshinori Sato wrote:

> +h8300-*-linux*)
> +	tmake_file="${tmake_file} h8300/t-h8300 h8300/t-linux"
> +	tm_file="h8300/linux.h dbxelf.h elfos.h linux.h"

Toplevel linux.h should always be used together with gnu-user.h and 
glibc-stdint.h.

> +#define __h8300_linux__

This macro is in the implementation namespace, so should not be defined on 
the host.  Macros for communication between one part of the host code and 
another should be in the user namespace, e.g. H8300_LINUX.

-- 
Joseph S. Myers
joseph@codesourcery.com


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