cpplib.c (do_sccs): Handle #sccs on all systems.
authorNeil Booth <neil@daikokuya.co.uk>
Wed, 17 Jul 2002 21:31:42 +0000 (21:31 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 17 Jul 2002 21:31:42 +0000 (21:31 +0000)
* cpplib.c (do_sccs): Handle #sccs on all systems.
* system.h (SCCS_DIRECTIVE): Poison.
* config/darwin.h, config/freebsd.h, config/netbsd.h,
config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
Remove all references to SCCS_DIRECTIVE.
* doc/cpp.texi, doc/tm.texi: Update.

From-SVN: r55542

30 files changed:
gcc/ChangeLog
gcc/config/alpha/elf.h
gcc/config/arm/linux-elf.h
gcc/config/c4x/c4x.h
gcc/config/d30v/d30v.h
gcc/config/darwin.h
gcc/config/freebsd.h
gcc/config/i370/i370.h
gcc/config/i386/gas.h
gcc/config/i386/sco5.h
gcc/config/i960/i960.h
gcc/config/m68hc11/m68hc11.h
gcc/config/m68k/3b1.h
gcc/config/m68k/3b1g.h
gcc/config/m68k/crds.h
gcc/config/m68k/mot3300.h
gcc/config/m68k/pbb.h
gcc/config/m88k/m88k.h
gcc/config/mips/mips.h
gcc/config/netbsd.h
gcc/config/ptx4.h
gcc/config/sparc/pbd.h
gcc/config/stormy16/stormy16.h
gcc/config/svr3.h
gcc/config/svr4.h
gcc/config/vax/vaxv.h
gcc/cpplib.c
gcc/doc/cpp.texi
gcc/doc/tm.texi
gcc/system.h

index 57d6846283fa45fd3351bb722c7e43b159d0ea79..01b605fbcab27f5e808b4903c2b22715f7d6cfe6 100644 (file)
@@ -1,3 +1,18 @@
+2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cpplib.c (do_sccs): Handle #sccs on all systems.
+       * system.h (SCCS_DIRECTIVE): Poison.
+       * config/darwin.h, config/freebsd.h, config/netbsd.h,
+       config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
+       config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
+       config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
+       config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
+       config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
+       config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
+       config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
+       Remove all references to SCCS_DIRECTIVE.
+       * doc/cpp.texi, doc/tm.texi: Update.
+
 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * regrename.c (maybe_mode_change): New function.
index 486124af014c9adcadb2464d7fbbf610f4837813..180fbcb6d8421d26eb858941baa6b2e5fb9d5d00 100644 (file)
@@ -68,9 +68,6 @@ do {                                                          \
 #undef  IDENT_ASM_OP
 #define IDENT_ASM_OP "\t.ident\t"
 
-/* Allow #sccs in preprocessor.  */
-#define SCCS_DIRECTIVE
-
 /* Output #ident as a .ident.  */
 #undef  ASM_OUTPUT_IDENT
 #define ASM_OUTPUT_IDENT(FILE, NAME) \
index 6733564044d981d044510dbf3f15b4aa99be56e7..792ea7362657d5dafa1ebb1b7176fbb74707fdc9 100644 (file)
@@ -99,9 +99,6 @@ Boston, MA 02111-1307, USA.  */
        builtin_assert ("system=posix");        \
     } while (0)
 
-/* Allow #sccs in preprocessor.  */
-#define SCCS_DIRECTIVE
-
 /* This is how we tell the assembler that two symbols have the same value.  */
 #define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
   do                                      \
index 3115677acd287257263edcaa48bbe467c4848c09..63d80b28ab8ac6d06ea4338a628d0931049d6e73 100644 (file)
@@ -1793,10 +1793,6 @@ do {                                             \
 #define DOUBLE_TYPE_SIZE       32
 #define LONG_DOUBLE_TYPE_SIZE  64 /* Actually only 40.  */
 
-/* Allow #sccs in preprocessor.  */
-
-#define SCCS_DIRECTIVE
-
 /* Output #ident as a .ident.  */
 
 #define ASM_OUTPUT_IDENT(FILE, NAME) \
index 45b9e7b217e8669efa581f667cbed1d2e6b00441..44d70fbf86951e014b832c3c963b88bf2ea4ab93 100644 (file)
@@ -4286,12 +4286,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE)
    should be used on RISC machines.  */
 /* #define INTEGRATE_THRESHOLD(DECL) */
 
-/* Define this if the preprocessor should ignore `#sccs' directives and print
-   no error message.
-
-   Defined in svr4.h.  */
-/* #define SCCS_DIRECTIVE */
-
 /* Define this macro if the system header files support C++ as well as C.  This
    macro inhibits the usual method of using system header files in C++, which
    is to pretend that the file's contents are enclosed in `extern "C" {...}'.  */
index 44d69d4f3cb09adea36eb1b1d43760721dba6675..339fb6b9b0b750f4996dbd31cb7a46492c74ee6a 100644 (file)
@@ -103,10 +103,6 @@ Boston, MA 02111-1307, USA.  */
 #undef DOLLARS_IN_IDENTIFIERS
 #define DOLLARS_IN_IDENTIFIERS 2
 
-/* Allow #sccs (but don't do anything). */
-
-#define SCCS_DIRECTIVE
-
 /* We use Dbx symbol format.  */
 
 #define DBX_DEBUGGING_INFO
index 99ee6ae3aa6257abf50dbb64380632f837654283..285f5bf85f9b0beeba11b3062f922f1357372fc9 100644 (file)
@@ -67,10 +67,6 @@ Boston, MA 02111-1307, USA.  */
 #undef  NO_IMPLICIT_EXTERN_C
 #define NO_IMPLICIT_EXTERN_C   1
 
-/* Allow #sccs in preprocessor.  */
-#undef  SCCS_DIRECTIVE
-#define SCCS_DIRECTIVE 1
-
 /* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...)  */
 
 #undef  WCHAR_TYPE
index f29fae7aa4212dc4fa7dc5dd40c4f65225c3316c..3b7a798def504fe0430a0b14153015ed2d6d994c 100644 (file)
@@ -1905,9 +1905,6 @@ abort(); \
 ( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10),    \
   sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO)))
  
-/* Allow #sccs in preprocessor.  */
-#define SCCS_DIRECTIVE
-
  /* Implicit library calls should use memcpy, not bcopy, etc.  */
 #define TARGET_MEM_FUNCTIONS
  
index 1f9de018821acfea747b1d3b79efb897269c9316..7c15e0bdb13c7e833d3f8828b921df9a28674e74 100644 (file)
@@ -45,10 +45,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define SDB_DEBUGGING_INFO
 
-/* Allow #sccs in preprocessor.  */
-
-#define SCCS_DIRECTIVE
-
 /* Output #ident as a .ident.  */
 
 #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
index f1f34f997deca23d4d80d6cc684d859d6508f167..53b1a183fcb4567dc89356b6fea2c53fb287e122 100644 (file)
@@ -541,9 +541,6 @@ init_section ()                                                             \
   do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME);          \
        fputc ('\n', FILE); } while (0)
 
-#undef SCCS_DIRECTIVE
-#define SCCS_DIRECTIVE 1
-
 /*
  * Define sizes and types
  */
index ee1c6066b47de2ab19d7c1c24d0fb953f6126c96..b048d99b25c4cdfee887bfc778062d151738a843 100644 (file)
@@ -1151,9 +1151,6 @@ struct cum_args { int ca_nregparms; int ca_nstackparms; };
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #define DEFAULT_SIGNED_CHAR 0
 
-/* Allow and ignore #sccs directives.  */
-#define        SCCS_DIRECTIVE
-
 /* Max number of bytes we can move from memory to memory
    in one reasonably fast instruction.  */
 #define MOVE_MAX 16
index 18a5ae51ea64a151b1f870d8c39f4a80da03d88c..0dec6e6a5f910ccd123d48a5b0686c60bc3e08a7 100644 (file)
@@ -1706,9 +1706,6 @@ do {                                                                    \
    purposes) so give the MEM rtx a byte's mode.  */
 #define FUNCTION_MODE          QImode
 
-/* define SCCS_DIRECTIVE if SCCS directives should be ignored */
-#define SCCS_DIRECTIVE         1
-
 /* Allow $ in identifiers */
 #define DOLLARS_IN_IDENTIFIERS 1
 
index 74aec112bf63238b9627fae898a31cbfd0e8ec81..898ece10c66d55cffa367d86ca5dc42d8e875383 100644 (file)
@@ -50,10 +50,6 @@ Boston, MA 02111-1307, USA.  */
   "%{!shlib:%{pg:mcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}\
    %{shlib:crt0s.o%s shlib.ifile%s} "
 
-/* cpp has to support a #sccs directive for the /usr/include files */
-
-#define SCCS_DIRECTIVE
-
 /* Make output for SDB.  */
 
 #define SDB_DEBUGGING_INFO
index f13d263e97acbdaf2a7bfc755f18dc3877f1008b..5aecd46291916ab70a1573c92b7d357b3beabad1 100644 (file)
@@ -43,9 +43,6 @@ Boston, MA 02111-1307, USA.  */
 /* This is (not really) BSD, so (but) it wants DBX format.  */
 #define DBX_DEBUGGING_INFO
 
-/* Brain damage.  */
-#define SCCS_DIRECTIVE
-
 /* Specify how to pad function arguments.
    Value should be `upward', `downward' or `none'.
    Same as the default, except no padding for large or variable-size args.  */
index 03faa9fbba3cf3e6ef2ea6b5bff35d6295ff6ced..563234ce2433b701766303de12066548cc80393a 100644 (file)
@@ -68,10 +68,6 @@ Boston, MA 02111-1307, USA.  */
 #undef CC1_SPEC
 #define CC1_SPEC "%{O2:-fstrength-reduce}"
 
-/* cpp has to support a #sccs directive for the /usr/include files */
-
-#define SCCS_DIRECTIVE
-
 /* Make output for SDB.  */
 
 /* #define SDB_DEBUGGING_INFO UNOS casm has no debugging :-( */
index 88e41fa03396c7a5a7abb688f6841869c96945c3..8868e6e537dc6f0df1398cf13bc739f8e1d9b1e2 100644 (file)
@@ -118,10 +118,6 @@ Boston, MA 02111-1307, USA.  */
 #undef PARM_BOUNDARY
 #define PARM_BOUNDARY 16
 
-/* cpp has to support a #sccs directive for the /usr/include files */
-
-#define SCCS_DIRECTIVE
-
 /* Make output for SDB.  */
 
 #define SDB_DEBUGGING_INFO
index 37e3e23e0e36fce952a20bd09c7c893f4a871882..01d96bce2c1d64438c1982bd7318aa60faf1f23a 100644 (file)
@@ -83,10 +83,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define ENDFILE_SPEC "crtn.o%s"
 
-/* cpp has to support a #sccs directive for the /usr/include files */
-
-#define SCCS_DIRECTIVE
-
 /* GAS register prefix assembly syntax: */
 
 /* User labels have no prefix */
index a4aba85ecf2a1f67597f1417549aa4dfaa7d665b..abfca762bbe90cb49c0277b22f1f08139d61bd3a 100644 (file)
@@ -1446,9 +1446,6 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
 /* The 88open ABI says size_t is unsigned int.  */
 #define SIZE_TYPE "unsigned int"
 
-/* Allow and ignore #sccs directives */
-#define SCCS_DIRECTIVE
-
 /* Handle #pragma pack and sometimes #pragma weak.  */
 #define HANDLE_SYSV_PRAGMA
 
index 238f2b79b0f5a0c21bc18edf9649877fe09c5080..f57199c213125be86da0eea08d3c7e50eddf8d52 100644 (file)
@@ -4350,9 +4350,6 @@ do {                                                                      \
 #define ASM_OUTPUT_ASCII(STREAM, STRING, LEN)                          \
   mips_output_ascii (STREAM, STRING, LEN)
 
-/* Handle certain cpp directives used in header files on sysV.  */
-#define SCCS_DIRECTIVE
-
 /* Output #ident as a in the read-only data section.  */
 #undef  ASM_OUTPUT_IDENT
 #define ASM_OUTPUT_IDENT(FILE, STRING)                                 \
index 3f5d18313afc2dba12af4731341db29eb7c7ee43..38eb7491d8441abe3a1807ddb01b21d92ab47e1c 100644 (file)
@@ -128,11 +128,6 @@ Boston, MA 02111-1307, USA.  */
     fprintf ((STREAM), "void __fini() {\n\t%s();\n}\n", (FUNC));       \
   } while (0)
 
-/* Allow #sccs in preprocessor.  */
-
-#undef SCCS_DIRECTIVE
-#define SCCS_DIRECTIVE
-
 #undef TARGET_HAS_F_SETLKW
 #define TARGET_HAS_F_SETLKW
 
index c30f3a55332b4e61907ec8e89e0e88b6336a3cf7..d4a61de810753d47c70751d1e601376faf8633bf 100644 (file)
@@ -180,10 +180,6 @@ Boston, MA 02111-1307, USA.
                        %{!ansi:values-Xa.o%s} \
                        crtbegin.o%s"
 
-/* Allow #sccs in preprocessor.  */
-
-#define SCCS_DIRECTIVE
-
 /* Don't use bcopy, which doesn't handle overlaps before DYNIX/ptx 4.6. */
 
 #undef HAVE_BCOPY
index 9d267a5390ca9759fc71d66815a898286bd99883..18391abed9a49e3c9ac85afcbcbd9d7b43bf9c74 100644 (file)
@@ -59,10 +59,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define ENDFILE_SPEC "crtn.o%s"
 
-/* cpp has to support a #sccs directive for the /usr/include files */
-
-#define SCCS_DIRECTIVE
-
 /* LINK_SPEC is needed only for SunOS 4.  */
 
 #undef LINK_SPEC
index 315599789889e07b63f99867dfd492b091489222..8fe189290bbc35c8664b3312d98c215eefbc6831 100644 (file)
@@ -3923,12 +3923,6 @@ do {                                                                     \
    should be used on RISC machines.  */
 /* #define INTEGRATE_THRESHOLD(DECL) */
 
-/* Define this if the preprocessor should ignore `#sccs' directives and print
-   no error message.
-
-   Defined in svr4.h.  */
-/* #define SCCS_DIRECTIVE */
-
 /* Define this macro if the system header files support C++ as well as C.  This
    macro inhibits the usual method of using system header files in C++, which
    is to pretend that the file's contents are enclosed in `extern "C" {...}'.  */
index 5a6f640d925dbf6c63fadf0796099b8607c5b444..13e46b2e4c4d6a6440d9aa62c12c323fde3df509 100644 (file)
@@ -113,10 +113,6 @@ Boston, MA 02111-1307, USA.
 #define LINK_SPEC "%{T*} %{z:-lm}"
 #endif
 
-/* Allow #sccs in preprocessor.  */
-
-#define SCCS_DIRECTIVE
-
 /* Output #ident as a .ident.  */
 
 #undef  ASM_OUTPUT_IDENT
index 09646775129bd9c25ef61c89a89878dfde1d877a..bc6a3b8ed5dc64566552d94730165cb47091e575 100644 (file)
@@ -192,10 +192,6 @@ Boston, MA 02111-1307, USA.
                        %{!ansi:values-Xa.o%s} \
                        crtbegin.o%s"
 
-/* Allow #sccs in preprocessor.  */
-
-#define SCCS_DIRECTIVE
-
 /* The numbers used to denote specific machine registers in the System V
    Release 4 DWARF debugging information are quite likely to be totally
    different from the numbers used in BSD stabs debugging information
index a86615277ea1d2e45657071e5f38ff628ce16ec6..7b8e7fff5ff0ae4404b0f3e5f1bbfba45853ceef 100644 (file)
@@ -18,10 +18,6 @@ along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-/* Cope with these under SysV */
-
-#define SCCS_DIRECTIVE
-
 #define TARGET_OS_CPP_BUILTINS()               \
   do                                           \
     {                                          \
index f61f7e68eadf5cd6d67885b5b6ba296d463325fa..c87572aba1204b5bbe7f8f887d1246fbd379d928 100644 (file)
@@ -162,14 +162,7 @@ D(ident,   T_IDENT,        EXTENSION, IN_I)           /*     11 */ \
 D(import,      T_IMPORT,       EXTENSION, INCL | EXPAND)  /* 0 ObjC */ \
 D(assert,      T_ASSERT,       EXTENSION, 0)              /* 0 SVR4 */ \
 D(unassert,    T_UNASSERT,     EXTENSION, 0)              /* 0 SVR4 */ \
-SCCS_ENTRY                                                /* 0 SVR4? */
-
-/* #sccs is not always recognized.  */
-#ifdef SCCS_DIRECTIVE
-# define SCCS_ENTRY D(sccs, T_SCCS, EXTENSION, 0)
-#else
-# define SCCS_ENTRY /* nothing */
-#endif
+D(sccs,                T_SCCS,         EXTENSION, 0)              /* 0 SVR4? */
 
 /* Use the table to generate a series of prototypes, an enum for the
    directive names, and an array of directive handlers.  */
@@ -1319,14 +1312,12 @@ _cpp_do__Pragma (pfile)
     }
 }
 
-/* Just ignore #sccs, on systems where we define it at all.  */
-#ifdef SCCS_DIRECTIVE
+/* Just ignore #sccs on all systems.  */
 static void
 do_sccs (pfile)
      cpp_reader *pfile ATTRIBUTE_UNUSED;
 {
 }
-#endif
 
 /* Handle #ifdef.  */
 static void
index 22f4953bc447bb5ea23b437d0b83fc0f81c78b8e..28e78000cf8db9b6fecfc8debe5fef0abf2f9db6 100644 (file)
@@ -3252,8 +3252,8 @@ This directive is not part of the C standard, but it is not an official
 GNU extension either.  We believe it came from System V@.
 
 @findex #sccs
-The @samp{#sccs} directive is recognized on some systems, because it
-appears in their header files.  It is a very old, obscure, extension
+The @samp{#sccs} directive is recognized, because it appears in the
+header files of some systems.  It is a very old, obscure, extension
 which we did not invent, and we have been unable to find any
 documentation of what it should do, so GCC simply ignores it.
 
index d60f43848a0282af98f2d63bab0a8ac8e635b26a..17d0d138aef20dad84d4116cc3d9e254250cf606 100644 (file)
@@ -8584,11 +8584,6 @@ Defining @code{STDC_0_IN_SYSTEM_HEADERS} makes GNU CPP follows the host
 convention when processing system header files, but when processing user
 files @code{__STDC__} will always expand to 1.
 
-@findex SCCS_DIRECTIVE
-@item SCCS_DIRECTIVE
-Define this if the preprocessor should ignore @code{#sccs} directives
-and print no error message.
-
 @findex NO_IMPLICIT_EXTERN_C
 @item NO_IMPLICIT_EXTERN_C
 Define this macro if the system header files support C++ as well as C@.
index e028df177e3296180ee79d83f3ce1136481cbea2..47cabcf4e7f30739d9423341212c9ddec9cd9332 100644 (file)
@@ -620,7 +620,7 @@ typedef char _Bool;
        NO_BUILTIN_PTRDIFF_TYPE NO_BUILTIN_WCHAR_TYPE NO_BUILTIN_WINT_TYPE \
        BLOCK_PROFILER BLOCK_PROFILER_CODE FUNCTION_BLOCK_PROFILER         \
        FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE                    \
-       MACHINE_STATE_RESTORE
+       MACHINE_STATE_RESTORE SCCS_DIRECTIVE
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE  \