Article View: gnu.gcc.bug
Article #2088Re: Little known fix to use dbm & gcc together
From: Arthur David Olson
Date: Sat, 24 Dec 1988 23:47
Date: Sat, 24 Dec 1988 23:47
29 lines
1809 bytes
1809 bytes
> . . .there is no need for this copy to contain any #ifdef's for GNU
> CC, since a file in the gcc-include directory is used only with GNU CC
> in the first place.
The file may need to be attentive to whether "-traditional" has been used
(perhaps by checking __STDC__). With the Gene Spafford changes in place:
Script started on Sat Dec 24 18:45:31 1988
elsie$ cat try.c
#include <dbm.h>
main(){fetch();}
elsie$ /usr/local/bin/gcc -v try.c -ldbm
gcc version 1.32
/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 try.c /tmp/cca07721.cpp
GNU CPP version 1.32
/usr/local/lib/gcc-cc1 /tmp/cca07721.cpp -quiet -dumpbase try.c -version -o /tmp/cca07721.s
GNU C version 1.32 (68k, MIT syntax) compiled by GNU C version 1.32.
as -mc68020 /tmp/cca07721.s -o try.o
ld -e start -dc -dp /lib/crt0.o /lib/Mcrt1.o try.o -ldbm /usr/local/lib/gcc-gnulib -lc
elsie$ /usr/local/bin/gcc -v -traditional try.c -ldbm
gcc version 1.32
/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -traditional -D__HAVE_68881__ -Dmc68020 try.c /tmp/cca07800.cpp
GNU CPP version 1.32
>>>> try.c:2: recursive use of macro `fetch'
elsie$ exit
script done on Sat Dec 24 18:46:10 1988
--
Arthur David Olson ado@ncifcrf.gov ADO is a trademark of Ampex.
Technical Details
Message-ID:
<8595@elsie.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!nih-csl!elsie!adoReferences:
<5692@medusa.cs.purdue.edu> <8812230705.AA01037@sugar-bombs.ai.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!nih-csl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: gnu.gcc.bug Subject: Re: Little known fix to use dbm & gcc together Message-ID: <8595@elsie.UUCP> Date: 24 Dec 88 23:47:32 GMT References: <5692@medusa.cs.purdue.edu> <8812230705.AA01037@sugar-bombs.ai.mit.edu> Distribution: gnu Organization: NIH-LEC, Bethesda, MD Lines: 28