www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/22/13:46:02

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199801221843.AA031634630@typhoon.rose.hp.com>
Subject: No 'extern' in standard include files
To: djgpp-workers AT delorie DOT com
Date: Thu, 22 Jan 1998 10:43:50 PST
Reply-To: andrewc AT rosemail DOT rose DOT hp DOT com

For whatever reason (work is slow these days), I ported gcc to use
NASM as a back end instead of using gas.  I spent a lot of time
debugging assembly output, and I just can't understand AT&T syntax.
While I was doing this I 
ran into something strange in the header files.  Nasm, unlike gas,
wants things to be explicitly externed.  Otherwise it will error
out (I changed nasm so this could be disabled).  I also changed
gcc so that it explicitly outputs externs (which it normally wouldn't
do).  This works fine for things labelled with the 'extern' keyword.
However, none of the function prototypes (at least not in stdio.h) 
from DJDEV use the extern keyword?  I notice that my hpux header
files all do use this keyword.  Any problems that would be
caused by adding extern to all the prototypes?  I'm willing to
do the work and submit the changes, I just didn't want to start
on it if it had already been considered and rejected.

Thanks

Andy


--
_______       ___________________________________________________________
           /                       	                  Andrew Crabtree 
          /                          	      Workgroup Networks Division 
         ____       ___  /                                Hewlett-Packard 
        /     /    /    /   		                    Roseville, CA 
     __/   __/    _____/                                     916/785-1675
                 /                           andrewc AT rosemail DOT rose DOT hp DOT com
___________   __/   _____________________________________________________

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019