mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 19:33:59 +08:00
cpplib.c (do_sccs): Handle #sccs on all systems.
* 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
This commit is contained in:
parent
61dde664e4
commit
74d06cf221
@ -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.
|
||||
|
@ -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) \
|
||||
|
@ -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 \
|
||||
|
@ -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) \
|
||||
|
@ -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" {...}'. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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 :-( */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) \
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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" {...}'. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
{ \
|
||||
|
13
gcc/cpplib.c
13
gcc/cpplib.c
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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@.
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user