Gcc's handling of #ident is wrong on the 3b1

Tom Tkacik tkacik at rphroy.UUCP
Tue Oct 4 22:41:52 AEST 1988


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},



More information about the Comp.sys.att mailing list