This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Janitor] Remove HANDLE_PRAGMA/HANDLE_GENERIC_PRAGMA (f/lex, docu)
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Toon Moene <moene at knmi dot nl>
- Date: Sat, 31 May 2003 16:19:10 +0200
- Subject: [Janitor] Remove HANDLE_PRAGMA/HANDLE_GENERIC_PRAGMA (f/lex, docu)
These two macros are nowhere used. Ok to commit (bootstrapping
currently on i686-linux)?
Toon, shouldn't the #ifdef 0 code in ffelex_hash_ in lex.c completly
get removed?
That's it for the first iteration of Janitor patches - now I have too
many patches in my tree :-(
Andreas
For f/:
2003-05-31 Andreas Jaeger <aj@suse.de>
* lex.c (ffelex_hash_): Remove HANDLE_PRAGMA and
HANDLE_GENERIC_PRAGMA dependend code.
(pragma_getc): Removed.
(pragma_ungetc): Removed.
2003-05-31 Andreas Jaeger <aj@suse.de>
* doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
* system.h: Poison HANDLE_PRAGMA.
============================================================
Index: gcc/f/lex.c
--- f/lex.c 3 May 2003 16:39:50 -0000 1.39
+++ f/lex.c 31 May 2003 14:17:17 -0000
@@ -997,22 +997,6 @@ ffelex_get_directive_line_ (char **text,
Returns the next character unhandled, which is always newline or EOF. */
-#if defined HANDLE_PRAGMA
-/* Local versions of these macros, that can be passed as function pointers. */
-static int
-pragma_getc ()
-{
- return getc (finput);
-}
-
-static void
-pragma_ungetc (arg)
- int arg;
-{
- ungetc (arg, finput);
-}
-#endif /* HANDLE_PRAGMA */
-
static int
ffelex_hash_ (FILE *finput)
{
@@ -1061,14 +1045,6 @@ ffelex_hash_ (FILE *finput)
pragma_ungetc (c);
* -- buff = 0;
-#ifdef HANDLE_PRAGMA
- if (HANDLE_PRAGMA (pragma_getc, pragma_ungetc, buffer))
- goto skipline;
-#endif /* HANDLE_PRAGMA */
-#ifdef HANDLE_GENERIC_PRAGMAS
- if (handle_generic_pragma (buffer))
- goto skipline;
-#endif /* !HANDLE_GENERIC_PRAGMAS */
/* Issue a warning message if we have been asked to do so.
Ignoring unknown pragmas in system header file unless
============================================================
Index: gcc/doc/tm.texi
--- doc/tm.texi 29 May 2003 21:13:33 -0000 1.223
+++ doc/tm.texi 31 May 2003 14:17:22 -0000
@@ -8928,11 +8873,6 @@ Define this macro if the system header f
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
@samp{extern "C" @{@dots{}@}}.
-
-@findex HANDLE_PRAGMA
-@item HANDLE_PRAGMA (@var{getc}, @var{ungetc}, @var{name})
-This macro is no longer supported. You must use
-@code{REGISTER_TARGET_PRAGMAS} instead.
@findex REGISTER_TARGET_PRAGMAS
@findex #pragma
============================================================
Index: gcc/system.h
--- gcc/system.h 30 May 2003 23:14:41 -0000 1.147
+++ gcc/system.h 31 May 2003 14:17:22 -0000
@@ -640,7 +640,11 @@ typedef char _Bool;
BLOCK_PROFILER BLOCK_PROFILER_CODE FUNCTION_BLOCK_PROFILER \
FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE \
MACHINE_STATE_RESTORE SCCS_DIRECTIVE SECTION_ASM_OP \
ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL \
+ HANDLE_PRAGMA \
OBJC_PROLOGUE
/* Hooks that are no longer used. */
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj