This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC headers and DJGPP port
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: GCC headers and DJGPP port
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 17 Jul 2000 16:39:59 -0600
- cc: eliz at is dot elta dot co dot il, mrs at windriver dot com, gcc at gcc dot gnu dot org, djgpp-workers at delorie dot com
- Reply-To: law at cygnus dot com
In message <200007172102.XAA07817@loewis.home.cs.tu-berlin.de>you write:
> Now, the exact mechanism *how* it is achieved that the header file is
> an exact match of the target understanding of these types is a tricky
> question, however, there is no question *that* gcc must know about
> these types even without seeing a single target header file.
The "how" of this question is the port maintainer figures out the right
value and codes it into the target .h file. For example:
/* Make GCC agree with types.h. */
#undef SIZE_TYPE
#undef PTRDIFF_TYPE
#define SIZE_TYPE "long unsigned int"
#define PTRDIFF_TYPE "long int"