]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cp-tree.h (compiler_error): Remove declaration.
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2002 12:38:04 +0000 (12:38 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2002 12:38:04 +0000 (12:38 +0000)
        * lex.c (compiler_error): Remove definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54644 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lex.c

index 870107044e797e2aa561e0cd3815218c2c133764..b0479497809d331c9b9ed7213154d52d1e2bfe1f 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-15  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * cp-tree.h (compiler_error): Remove declaration.
+       * lex.c (compiler_error): Remove definition.
+
 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
 
        * g++spec.c (LIBUNWIND): New.
index 448cb88b6d848c1be2b6800ab835953f3719ea9e..f4b71ceb535f6415a999ab6f8c322f484111192e 100644 (file)
@@ -4055,8 +4055,6 @@ extern tree copy_decl                           PARAMS ((tree));
 extern tree copy_type                           PARAMS ((tree));
 extern tree cxx_make_type                      PARAMS ((enum tree_code));
 extern tree make_aggr_type                     PARAMS ((enum tree_code));
-extern void compiler_error                     PARAMS ((const char *, ...))
-  ATTRIBUTE_PRINTF_1;
 extern void yyerror                            PARAMS ((const char *));
 extern void yyhook                             PARAMS ((int));
 extern int cp_type_qual_from_rid                PARAMS ((tree));
index dad7df6d3b0c94c68d569637ca4f18165f2decdb..6c5112a34d026344f23fd96d688c168df086d586 100644 (file)
@@ -1596,20 +1596,6 @@ make_aggr_type (code)
   return t;
 }
 
-void
-compiler_error VPARAMS ((const char *msg, ...))
-{
-  char buf[1024];
-
-  VA_OPEN (ap, msg);
-  VA_FIXEDARG (ap, const char *, msg);
-
-  vsprintf (buf, msg, ap);
-  VA_CLOSE (ap);
-
-  error_with_file_and_line (input_filename, lineno, "%s (compiler error)", buf);
-}
-
 /* Return the type-qualifier corresponding to the identifier given by
    RID.  */