Article View: gnu.gcc.help
Article #51028Help porting cross compiler
From: Samuel Druker
Date: Tue, 13 Jul 1993 21:32
Date: Tue, 13 Jul 1993 21:32
35 lines
1829 bytes
1829 bytes
I'm trying to get gcc working as a cross compiler for a local m68k based machine that we make. After making a local.h (tm.h) things work OK, except that I can't get size_t to be what I want. I put a #define SIZE_TYPE "unsigned int" in local.h, but it hasn't changed the occurence of my problem. In the course of compiling a C++ module, I get an error about the prototyp of memcpy (from string.h> conflicting with the built-in prototype of memcpy. The difference is that the last (third) argument is of type size_t. That is typedef'd to unsigned int according to our string.h (libc), but gcc insists that that the type of the last argument is "long unsigned int". I guess it's possible that the type of the memcpy prototype isn't governed by the SIZE_TYPE macro. If anybody wishes to respond, I'd love to know the location of the built-in declaration of memcpy or, even better, the way to really control what gcc thinks is the type of size_t for the target machine. Many thanks! Samuel Druker uunet!cognex!samuel Cognex, Corp. +1 617 449 6970 x541 15 Crawford Street Needham, MA 02146 USA -- Samuel Druker uunet!cognex!samuel Cognex, Corp. +1 617 449 6970 x541 15 Crawford Street Needham, MA 02146 USA
Technical Details
Message-ID:
<1993Jul13.213240.16249@cognex.uucp>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!sdd.hp.com!think.com!theep!cognex!samuelShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,8f00ce965bb120b1,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-13 16:05:29 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!sdd.hp.com!think.com!theep!cognex!samuel From: samuel@cognex.uucp (Samuel Druker) Subject: Help porting cross compiler Message-ID: <1993Jul13.213240.16249@cognex.uucp> Summary: how to control size_t Organization: Cognex Corp., Needham, Mass Date: Tue, 13 Jul 1993 21:32:40 GMT Lines: 35