diff options
author | Zack Weinberg <zack@bitmover.com> | 1999-08-26 05:18:44 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 1999-08-26 05:18:44 +0000 |
commit | 987009bf0d31f2aa399cbf58ddf91a90b09848ca (patch) | |
tree | d44a531d6d8a1d3b4f321e6fc43e9e6dbb2f1277 /gcc/system.h | |
parent | f18a14bcc121ed9812ecba53b3a458ed3d16953f (diff) | |
download | gcc-987009bf0d31f2aa399cbf58ddf91a90b09848ca.zip gcc-987009bf0d31f2aa399cbf58ddf91a90b09848ca.tar.gz gcc-987009bf0d31f2aa399cbf58ddf91a90b09848ca.tar.bz2 |
system.h: Don't redefine abort or trim_filename.
1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
* system.h: Don't redefine abort or trim_filename.
* rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
whether or not __FUNCTION__ is available.
* tree.h: Duplicate rtl.h's definition of abort, for files
that don't include rtl.h. Delete all code to perform type
checking with a compiler other than GCC.
* varray.h: Delete all code to perform type checking with a
compiler other than GCC. Make VARRAY_CHECK() always evaluate
its arguments exactly once, using a statement expression.
Adjust the VARRAY_<type> accessor macros to match.
* toplev.h (fatal_insn, fatal_insn_not_found): Kill.
(_fatal_insn, _fatal_insn_not_found): New fns, take info on
caller's location. Define fatal_insn and fatal_insn_not_found
as macros that use _fatal_insn and _fatal_insn_not_found.
(fancy_abort, trim_filename): Kill prototypes.
* rtl.c (trim_filename): Move here from toplev.c.
(fancy_abort): New function.
(DIR_SEPARATOR): Provide default definition.
* tree.c (tree_check_failed, tree_class_check_failed): Go
through fancy_abort.
(tree_check, tree_class_check, cst_or_constructor_check,
expr_check): Delete.
* varray.c (varray_check_failed): New function.
* toplev.c (fatal_insn, fatal_insn_not_found): Replace with
_fatal_insn and _fatal_insn_not_found. Go through
fancy_abort.
(trim_filename, fancy_abort): Delete.
* builtins.c (expand_builtin_args_info): Report ICE with abort.
* except.c (start_catch_handler): Report ICE with error/abort
combo.
* final.c (output_operand_lossage): Likewise.
* flow.c (verify_flow_info): Likewise.
* gcc.c: Prototype fatal.
* gengenrtl.c: Undef abort after including rtl.h not system.h.
* genattr.c, genattrtab.c, genemit.c, genextract.c,
genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
Don't define fancy_abort.
From-SVN: r28889
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/system.h b/gcc/system.h index 7d6082c..41282bf 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -384,28 +384,9 @@ extern int setrlimit (); #define volatile #endif -/* Redefine abort to report an internal error w/o coredump, and reporting the - location of the error in the source file. - Some files undefine abort again, so we must prototype the real thing - for their sake. */ #ifdef NEED_DECLARATION_ABORT extern void abort (); #endif -extern void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; - -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -#define abort() fatal ("Internal compiler error at %s:%d\n", \ - trim_filename (__FILE__), __LINE__) -#else -#define abort() fatal ("Internal compiler error in `%s', at %s:%d\n" \ - "Please submit a full bug report.\n" \ - "See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.", \ - __PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__) -#endif /* recent gcc */ - -/* trim_filename is in toplev.c. Define a stub macro for files that - don't link toplev.c. toplev.h will reset it to the real version. */ -#define trim_filename(x) (x) /* Define a STRINGIFY macro that's right for ANSI or traditional C. HAVE_CPP_STRINGIFY only refers to the stage1 compiler. Assume that |