aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-09-07 18:38:08 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-09-07 18:38:08 -0700
commit30acbc3e34bb8b43154fc49bf84ebce893f165d9 (patch)
treefacb89fe37b98cabb8d25b9ea3ec500418035d3e /gcc
parent46146529f66e8e16ad5eef0eb286d903722649e5 (diff)
downloadgcc-30acbc3e34bb8b43154fc49bf84ebce893f165d9.zip
gcc-30acbc3e34bb8b43154fc49bf84ebce893f165d9.tar.gz
gcc-30acbc3e34bb8b43154fc49bf84ebce893f165d9.tar.bz2
c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS, do not call dispatch_pragma.
* c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS, do not call dispatch_pragma. From-SVN: r36257
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-lex.c13
2 files changed, 7 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6965aea..65f44a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 63ae9ba..e522144 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -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"))
{