Commit a09a009c by Nick Clifton Committed by Nick Clifton

Replace occurances of HANDLE_SYSV_PRAGMA with HANDLE_GENERIC_PRAGMAS.

From-SVN: r22711
parent e2af664c
...@@ -5,6 +5,9 @@ Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com> ...@@ -5,6 +5,9 @@ Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
(start_function): Add invocation of (start_function): Add invocation of
SET_DEFAULT_DECL_ATTRIBUTES, if defined. SET_DEFAULT_DECL_ATTRIBUTES, if defined.
* lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
HANDLE_GENERIC_PRAGMAS.
1998-09-28 Anthony Green <green@cygnus.com> 1998-09-28 Anthony Green <green@cygnus.com>
* semantics.c (finish_asm_stmt): Always permit volatile asms. * semantics.c (finish_asm_stmt): Always permit volatile asms.
......
...@@ -75,8 +75,8 @@ static void store_pending_inline PROTO((tree, struct pending_inline *)); ...@@ -75,8 +75,8 @@ static void store_pending_inline PROTO((tree, struct pending_inline *));
static void reinit_parse_for_expr PROTO((struct obstack *)); static void reinit_parse_for_expr PROTO((struct obstack *));
static int *init_cpp_parse PROTO((void)); static int *init_cpp_parse PROTO((void));
static int handle_cp_pragma PROTO((char *)); static int handle_cp_pragma PROTO((char *));
#ifdef HANDLE_SYSV_PRAGMA #ifdef HANDLE_GENERIC_PRAGMAS
static int handle_sysv_pragma PROTO((int)); static int handle_generic_pragma PROTO((int));
#endif #endif
#ifdef GATHER_STATISTICS #ifdef GATHER_STATISTICS
#ifdef REDUCE_LENGTH #ifdef REDUCE_LENGTH
...@@ -2308,7 +2308,7 @@ check_newline () ...@@ -2308,7 +2308,7 @@ check_newline ()
goto skipline; goto skipline;
#ifdef HANDLE_PRAGMA #ifdef HANDLE_PRAGMA
/* We invoke HANDLE_PRAGMA before HANDLE_SYSV_PRAGMA /* We invoke HANDLE_PRAGMA before HANDLE_GENERIC_PRAGMAS
(if both are defined), in order to give the back (if both are defined), in order to give the back
end a chance to override the interpretation of end a chance to override the interpretation of
SYSV style pragmas. */ SYSV style pragmas. */
...@@ -2317,10 +2317,10 @@ check_newline () ...@@ -2317,10 +2317,10 @@ check_newline ()
goto skipline; goto skipline;
#endif /* HANDLE_PRAGMA */ #endif /* HANDLE_PRAGMA */
#ifdef HANDLE_SYSV_PRAGMA #ifdef HANDLE_GENERIC_PRAGMAS
if (handle_sysv_pragma (token)) if (handle_generic_pragma (token))
goto skipline; goto skipline;
#endif /* !HANDLE_SYSV_PRAGMA */ #endif /* HANDLE_GENERIC_PRAGMAS */
/* Issue a warning message if we have been asked to do so. /* Issue a warning message if we have been asked to do so.
Ignoring unknown pragmas in system header file unless Ignoring unknown pragmas in system header file unless
...@@ -4934,17 +4934,17 @@ handle_cp_pragma (pname) ...@@ -4934,17 +4934,17 @@ handle_cp_pragma (pname)
return 0; return 0;
} }
#ifdef HANDLE_SYSV_PRAGMA #ifdef HANDLE_GENERIC_PRAGMAS
/* Handle a #pragma directive. INPUT is the current input stream, /* Handle a #pragma directive. TOKEN is the type of the word following
and C is a character to reread. Processes the entire input line the #pragma directive on the line. Process the entire input line and
and returns a character for the caller to reread: either \n or EOF. */ return non-zero iff the directive successfully parsed. */
/* This function has to be in this file, in order to get at /* This function has to be in this file, in order to get at
the token types. */ the token types. */
static int static int
handle_sysv_pragma (token) handle_generic_pragma (token)
register int token; register int token;
{ {
for (;;) for (;;)
...@@ -4977,7 +4977,8 @@ handle_sysv_pragma (token) ...@@ -4977,7 +4977,8 @@ handle_sysv_pragma (token)
default: default:
return handle_pragma_token (NULL_PTR, NULL_TREE); return handle_pragma_token (NULL_PTR, NULL_TREE);
} }
token = real_yylex (); token = real_yylex ();
} }
} }
#endif /* HANDLE_SYSV_PRAGMA */ #endif /* HANDLE_GENERIC_PRAGMAS */
Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
* lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
HANDLE_GENERIC_PRAGMAS.
Mon Sep 28 04:22:00 1998 Jeffrey A Law (law@cygnus.com) Mon Sep 28 04:22:00 1998 Jeffrey A Law (law@cygnus.com)
* news.texi: Update from Craig. * news.texi: Update from Craig.
......
...@@ -1145,10 +1145,10 @@ ffelex_hash_ (FILE *finput) ...@@ -1145,10 +1145,10 @@ ffelex_hash_ (FILE *finput)
if (HANDLE_PRAGMA (pragma_getc, pragma_ungetc, buffer)) if (HANDLE_PRAGMA (pragma_getc, pragma_ungetc, buffer))
goto skipline; goto skipline;
#endif /* HANDLE_PRAGMA */ #endif /* HANDLE_PRAGMA */
#ifdef HANDLE_SYSV_PRAGMA #ifdef HANDLE_GENERIC_PRAGMAS
if (handle_sysv_pragma (buffer)) if (handle_generic_pragma (buffer))
goto skipline; goto skipline;
#endif /* !HANDLE_SYSV_PRAGMA */ #endif /* !HANDLE_GENERIC_PRAGMAS */
/* Issue a warning message if we have been asked to do so. /* Issue a warning message if we have been asked to do so.
Ignoring unknown pragmas in system header file unless Ignoring unknown pragmas in system header file unless
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment