Xref: utzoo unix-pc.general:1473 comp.sys.att:4405 Path: utzoo!utgpu!water!watmath!uunet!edsews!rphroy!tkacik From: tkacik@rphroy.UUCP (Tom Tkacik) Newsgroups: unix-pc.general,comp.sys.att Subject: Gcc's handling of #ident is wrong on the 3b1 Keywords: unixpc gcc-cpp Message-ID: <2531@rphroy.UUCP> Date: 4 Oct 88 12:41:52 GMT Organization: GM Research Labs, Warren, MI Lines: 32 There are two C pre-processor directives that are used on the UnixPC, but are ignored by CC. These are #sccs, and #ident. Gcc-cpp also properly ignores #sccs, but passes #ident to the compiler, which then generates a .ident string in the assembly file. I do not know if this is the standard SYS5 thing to do, but as(1) on the unixpc will not assemble a file with a .ident in it. The following diff will make gcc-cpp, (at least from GCC-1.28), treat #ident the same as #sccs, (ie. ignore both). I do not think that this is the appropriate change to make in the GCC distribution, as it will make all gcc compilers ignore #ident. Any suggestions out there. Tom Tkacik {umix!mcf, uunet!edsews}!rphroy!tetnix!tet {umix!mcf, uunet!edsews}!rphroy!megatron!tkacik ---------------------------------------------------- *** cccp.c~ Mon Oct 3 19:54:19 1988 --- cccp.c Mon Oct 3 19:53:37 1988 *************** *** 498,503 **** --- 498,504 ---- { 5, do_error, "error", T_ERROR}, #ifdef SCCS_DIRECTIVE { 4, do_sccs, "sccs", T_SCCS}, + { 5, do_sccs, "ident", T_SCCS}, #endif #if 0 { 6, do_pragma, "pragma", T_PRAGMA},