]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gen-protos.c: #undef abort after including system.h.
authorZack Weinberg <zack@rabi.columbia.edu>
Wed, 21 Apr 1999 11:58:11 +0000 (11:58 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 21 Apr 1999 11:58:11 +0000 (11:58 +0000)
1999-04-21 14:55 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
* gen-protos.c: #undef abort after including system.h.
Delete defns of fancy_abort and fatal.
* fix-header.c: Delete defn of fancy_abort.

From-SVN: r26576

gcc/ChangeLog
gcc/fix-header.c
gcc/gen-protos.c

index 939d8f5a7d2d26054ce861b4e67c9860291547ac..2c03468dee442d1da6414adffa1372d21c8454b7 100644 (file)
@@ -1,3 +1,9 @@
+1999-04-21 14:55 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * gen-protos.c: #undef abort after including system.h.  
+       Delete defns of fancy_abort and fatal.
+       * fix-header.c: Delete defn of fancy_abort.
+
 Wed Apr 21 12:09:38 1999  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * cccp.c (simplify_filename): Always preserve leading double slash.
index 35942d25db6a3a3aa537c05f36bda8ab24aa4524..dfde8e5c5607fbe9bdefd3310ecbb52a19be971e 100644 (file)
@@ -367,16 +367,6 @@ xfree (ptr)
   free (ptr);
 }
 
-/* Avoid error if config defines abort as fancy_abort.
-   It's not worth "really" implementing this because ordinary
-   compiler users never run fix-header.  */
-
-void
-fancy_abort ()
-{
-  abort ();
-}
-\f
 #define obstack_chunk_alloc xmalloc
 #define obstack_chunk_free xfree
 struct obstack scan_file_obstack;
index 08b7ea85ddc5ecef4de8244234c0bd1a1492a262..10850353153b1953399975c5df7c3e8205932700 100644 (file)
@@ -20,6 +20,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "scan.h"
 #include "cpplib.h"
 #include "cpphash.h"
+#undef abort
 
 int verbose = 0;
 char *progname;
@@ -182,21 +183,3 @@ main (argc, argv)
 
   return 0;
 }
-
-/* Avoid error if config defines abort as fancy_abort.
-   It's not worth "really" implementing this because ordinary
-   compiler users never run fix-header.  */
-
-void
-fancy_abort ()
-{
-  abort ();
-}
-
-void
-fatal (s)
-     char *s;
-{
-  fprintf (stderr, "%s: %s\n", "gen-protos", s);
-  exit (FATAL_EXIT_CODE);
-}