Mail Archives: djgpp-workers/1998/01/22/13:46:02
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 -