OSDN Git Service

* unwind-dw2-fde.c (__deregister_frame_info): Stringize use
[pf3gnuchains/gcc-fork.git] / gcc / tradcif.y
index 1cc7aa8..5def3c9 100644 (file)
@@ -1,5 +1,5 @@
 /* Parse C expressions for CCCP.
-   Copyright (C) 1987, 2000 Free Software Foundation.
+   Copyright (C) 1987, 2000, 2001 Free Software Foundation.
    Adapted from expread.y of GDB by Paul Rubin, July 1986.
    Adapted to ANSI C, Richard Stallman, Jan 1987
    Dusted off, polished, and adapted for use as traditional
@@ -24,12 +24,11 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 %{
 #include "config.h"
 #include "system.h"
-#include "defaults.h"
 #include "tradcpp.h"
 #include <setjmp.h>
 
   static int yylex PARAMS ((void));
-  static void yyerror PARAMS ((const char *msgid));
+  static void yyerror PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN;
 
   static int parse_number PARAMS ((int));
   static int parse_escape PARAMS ((const char **));
@@ -538,7 +537,7 @@ static void
 yyerror (s)
      const char *s;
 {
-  error (s);
+  error ("%s", s);
   longjmp (parse_return_error, 1);
 }
 \f