🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51841

builtin prototypes

#51841
From: Doug Gerecht 806 1031
Date: Mon, 22 Mar 1993 11:11
30 lines
1732 bytes
I'm in the process of switching from gcc 2.1 to gcc 2.3.3.  I'm
building for the MIPS 3051 processor.  I'm having problems with the
function prototypes for memcpy() and memcmp().  The compiler seems
unhappy with whatever prototypes (and hence, whatever function
definition) I throw at it.  I've tried:

extern void *memcpy(void *,const void *,size_t);
extern int memcmp(const void *,const void *,size_t);

and:

extern char *memcpy(char *,char *,int);
extern int memcmp(char *,char *,int);

It won't accept either as well as numerous variations on the theme.  I
always get the message:

./defs.h:337: warning: conflicting types for built-in function `memcpy'
./defs.h:337: warning: type mismatch with previous external decl
<built-in>:0: warning: previous external decl of `memcpy'

My first set of prototypes worked under version 2.1.  What will it
take to make 2.3 happy?

					Thanks in advance,
-- 
          __  /    __  /    /   /    ___/	     Doug Gerecht
         /   /    /   /    /   /    /
        /   /    /   /    /   /    / - /	     dougg@kentek.com
      _____/   _____/   _____/   _____/
Technical Details
Message-ID: <DOUGG.93Mar22111108@kbsw3.kentek.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!csn!kbsw1!dougg

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,39629ac12eb0ce97,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-22 23:49:49 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!csn!kbsw1!dougg
From: dougg@kentek.com (Doug Gerecht 806 1031)
Subject: builtin prototypes
Sender: dougg@kbsw1 (Doug Gerecht 806 1031)
Message-ID: <DOUGG.93Mar22111108@kbsw3.kentek.com>
Date: 22 Mar 93 11:11:08
Distribution: all
Organization: Kentek Information Systems
Lines: 30