+1999-04-14 12:37 -0400 Zack Weinberg <zack@rabi.columbia.edu>
+
+ * cpperror.c, cppexp.c, cpplib.c: Never call abort.
+ * cpphash.c: Only call abort when we detect corruption of the
+ malloc arena.
+ * cppmain.c: Don't define fatal or fancy_abort.
+
Wed Apr 14 09:19:39 1999 Jan Hubicka <hubicka@freesoft.cz>
* i386.c (x86_adjust_cost): Agi stall takes 1 cycle on Pentium, fst
* i386.h (memory_address_length): Declare it.
Tue Apr 13 22:52:04 1999 Donn Terry (donn@interix.com)
- Martin Heller (Ing.-Buero_Heller@t-online.de)
+ Martin Heller (Ing.-Buero_Heller@t-online.de)
* configure.in (interix Alpha): Add.
(winnt Alpha): Use alpha32.h
* config/alpha/xm-alpha-interix.h: New file.
- * config/alpha/t-interix: New file.
+ * config/alpha/t-interix: New file.
* fixinc/mkfixinc.sh (interix/Alpha): Add.
pfile->errors = CPP_FATAL_LIMIT;
break;
default:
- abort ();
+ cpp_fatal (pfile, "internal error: bad is_error(%d) in v_cpp_message", is_error);
}
vfprintf (stderr, _(msgid), ap);
switch (op.op)
{
case NAME:
- abort ();
+ cpp_fatal (pfile, "internal error: cpp_lex returns a NAME");
+ goto syntax_error;
case INT: case CHAR:
top->value = op.value;
top->unsignedp = op.unsignedp;
#include "system.h"
#include "cpplib.h"
#include "cpphash.h"
+#undef abort
static int comp_def_part PARAMS ((int, U_CHAR *, int, U_CHAR *,
int, int));
that something smarter should happen. */
if (limit < buf)
- abort ();
+ {
+ cpp_fatal (pfile, "internal error: limit < buf in collect_expansion");
+ limit = buf; /* treat it like a null defn */
+ }
/* Find the beginning of the trailing whitespace. */
p = buf;
cpp_fatal (pfile, "cpplib internal error: invalid special hash type");
return;
}
-
- /* This point should be unreachable. */
- abort ();
}
/* Expand a macro call.
}
if (totlen > xbuf_len)
- abort ();
+ {
+ cpp_fatal (pfile, "internal_error: buffer overrun in macroexpand");
+ return;
+ }
}
/* if there is anything left of the definition
#endif
if (length < 0)
- abort ();
+ {
+ cpp_fatal (pfile, "internal error: length < 0 in cpp_expand_to_buffer");
+ return;
+ }
/* Set up the input on the input stack. */
cpp_reader parse_in;
cpp_options options;
-#ifdef abort
-/* More 'friendly' abort that prints the line and file.
- config.h can #define abort fancy_abort if you like that sort of thing. */
-void
-fatal (s)
- char *s;
-{
- fputs (s, stderr);
- exit (FATAL_EXIT_CODE);
-}
-
-void
-fancy_abort ()
-{
- fatal ("Internal gcc abort.");
-}
-#endif
-
\f
int
main (argc, argv)