This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Aborts from flow.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Aborts from flow.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sun, 18 Feb 01 15:59:03 EST
This gives a bit better ICE messages.
Sun Feb 18 15:45:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* flow.c (print_rtl_and_abort_fcn): Renamed from print_rtl_and_abort.
Call fancy_abort directly, passing args.
(print_rtl_and_abort): Now a macro, like fancy_abort.
*** flow.c 2001/02/16 02:35:30 1.376
--- flow.c 2001/02/18 20:53:57
*************** struct depth_first_search_dsS {
*** 345,348 ****
--- 345,353 ----
typedef struct depth_first_search_dsS *depth_first_search_ds;
+ /* Have print_rtl_and_abort give the same information that fancy_abort
+ does. */
+ #define print_rtl_and_abort() \
+ print_rtl_and_abort_fcn (__FILE__, __LINE__, __FUNCTION__)
+
/* Forward declarations */
static int count_basic_blocks PARAMS ((rtx));
*************** void dump_flow_info PARAMS ((FILE *));
*** 425,429 ****
void debug_flow_info PARAMS ((void));
static void dump_edge_info PARAMS ((FILE *, edge, int));
! static void print_rtl_and_abort PARAMS ((void));
static void invalidate_mems_from_autoinc PARAMS ((struct propagate_block_info *,
--- 430,436 ----
void debug_flow_info PARAMS ((void));
static void dump_edge_info PARAMS ((FILE *, edge, int));
! static void print_rtl_and_abort_fcn PARAMS ((const char *, int,
! const char *))
! ATTRIBUTE_NORETURN;
static void invalidate_mems_from_autoinc PARAMS ((struct propagate_block_info *,
*************** print_rtl_with_bb (outf, rtx_first)
*** 6587,6592 ****
/* Dump the rtl into the current debugging dump file, then abort. */
static void
! print_rtl_and_abort ()
{
if (rtl_dump_file)
--- 6594,6603 ----
/* Dump the rtl into the current debugging dump file, then abort. */
+
static void
! print_rtl_and_abort_fcn (file, line, function)
! const char *file;
! int line;
! const char *function;
{
if (rtl_dump_file)
*************** print_rtl_and_abort ()
*** 6595,6599 ****
fclose (rtl_dump_file);
}
! abort ();
}
--- 6606,6611 ----
fclose (rtl_dump_file);
}
!
! fancy_abort (file, line, function);
}