This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
dispatch_pragma thinko
- To: gcc-patches at gcc dot gnu dot org
- Subject: dispatch_pragma thinko
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 7 Sep 2000 18:39:10 -0700
If HANDLE_GENERIC_PRAGMAS is not defined, then dispatch_pragma
does not exist. Noticed while building a vax-bsd cross compiler.
r~
* c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
do not call dispatch_pragma.
Index: c-lex.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/c-lex.c,v
retrieving revision 1.98
diff -c -p -d -r1.98 c-lex.c
*** c-lex.c 2000/09/07 22:24:31 1.98
--- c-lex.c 2000/09/08 01:36:29
*************** process_directive ()
*** 457,475 ****
if (!strcmp (name, "pragma"))
{
dispatch_pragma ();
- goto skipline;
-
- #if 0
- #ifdef HANDLE_PRAGMA
- /* We invoke HANDLE_PRAGMA before HANDLE_GENERIC_PRAGMAS
- (if both are defined), in order to give the back
- end a chance to override the interpretation of
- SYSV style pragmas. */
- if (HANDLE_PRAGMA (getch, put_back, IDENTIFIER_POINTER (value)))
- goto skipline;
- #endif /* HANDLE_PRAGMA */
#endif
}
else if (!strcmp (name, "define"))
{
--- 457,466 ----
if (!strcmp (name, "pragma"))
{
+ #ifdef HANDLE_GENERIC_PRAGMAS
dispatch_pragma ();
#endif
+ goto skipline;
}
else if (!strcmp (name, "define"))
{