update definition/use of HANDLE_PRAGMA to match new specification.
authorNick Clifton <nickc@cygnus.com>
Wed, 16 Sep 1998 12:31:24 +0000 (12:31 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 16 Sep 1998 12:31:24 +0000 (12:31 +0000)
From-SVN: r22451

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.h

index 15c2dbe91a6bb0512361fea557daff375a5b5f15..f3f09c3a3661b19a1a7886762e6a141a8d9642ae 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep 16 12:29:22 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * config/sh/sh.h: Update definition of HANDLE_PRAGMA to match
+       new specification.
+
+       * config/sh/sh.c (handle_pragma): Rename to sh_handle_pragma().
+       (sh_handle_pragma): Change function arguments to match new
+       specification for HANDLE_PRAGMA. 
+
 Wed Sep 16 12:43:19 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gen-protos.c (parse_fn_proto): Cast argument of ISALNUM to
index ac30a6676fac5f546974853f391b0f542ed5b446..b70d8e1a58743428ba52a4ed54f98afa8d8b75c2 100644 (file)
@@ -3700,17 +3700,13 @@ initial_elimination_offset (from, to)
    compiler.  */
 
 int
-handle_pragma (file, t)
-     FILE *file;
-     tree t;
+sh_handle_pragma (p_getc, p_ungetc, pname)
+     int (*  p_getc)   PROTO((void));
+     void (* p_ungetc) PROTO((int));
+     char *  pname;
 {
   int retval = 0;
-  register char *pname;
-
-  if (TREE_CODE (t) != IDENTIFIER_NODE)
-    return 0;
 
-  pname = IDENTIFIER_POINTER (t);
   if (strcmp (pname, "interrupt") == 0)
     pragma_interrupt = retval = 1;
   else if (strcmp (pname, "trapa") == 0)
index 10936c78feea952270aed6f8bef5ad17790f46b1..ebffc4dd6280dda63afd72fcf224297fc8043a4c 100644 (file)
@@ -1819,12 +1819,10 @@ int barrier_align ();
 #define TARGET_MEM_FUNCTIONS
 
 /* Define this macro if you want to implement any pragmas.  If defined, it
-   is a C expression to be executed when #pragma is seen.  The
-   argument FILE is the stdio input stream from which the source
-   text can be read.  CH is the first character after the #pragma.  The
-   result of the expression is the terminating character found
-   (newline or EOF).  */
-#define HANDLE_PRAGMA(FILE, NODE) handle_pragma ((FILE), (NODE))
+   is a C expression whose value is 1 if the pragma was handled by the
+   macro, zero otherwise.  */
+#define HANDLE_PRAGMA(GETC, UNGETC, NODE) sh_handle_pragma (GETC, UNGETC, NODE)
+extern int sh_handle_pragma ();
 
 /* Set when processing a function with pragma interrupt turned on.  */