c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS, do not call dispatch_pragma.
authorRichard Henderson <rth@cygnus.com>
Fri, 8 Sep 2000 01:38:08 +0000 (18:38 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 8 Sep 2000 01:38:08 +0000 (18:38 -0700)
        * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
        do not call dispatch_pragma.

From-SVN: r36257

gcc/ChangeLog
gcc/c-lex.c

index 6965aea..65f44a7 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-07  Richard Henderson  <rth@cygnus.com>
+
+       * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
+       do not call dispatch_pragma.
+
 2000-09-07  Jim Wilson  <wilson@cygnus.com>
 
        * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
index 63ae9ba..e522144 100644 (file)
@@ -457,19 +457,10 @@ process_directive ()
 
       if (!strcmp (name, "pragma"))
        {
+#ifdef HANDLE_GENERIC_PRAGMAS
          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
+         goto skipline;
        }
       else if (!strcmp (name, "define"))
        {