Commit c770ac2b by Zack Weinberg

ggc-page.c (init_ggc): Give better diagnostics on failure to open /dev/zero.

	* ggc-page.c (init_ggc): Give better diagnostics on failure to
	open /dev/zero.
	* toplev.c (crash_signal): Reset handling for received signal
	to SIG_DFL.

From-SVN: r67323
parent 103fc15d
2003-06-01 Zack Weinberg <zack@codesourcery.com>
* ggc-page.c (init_ggc): Give better diagnostics on failure to
open /dev/zero.
* toplev.c (crash_signal): Reset handling for received signal
to SIG_DFL.
2003-06-02 Ben Elliston <bje@wasabisystems.com> 2003-06-02 Ben Elliston <bje@wasabisystems.com>
* config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare. * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
......
...@@ -1287,7 +1287,7 @@ init_ggc () ...@@ -1287,7 +1287,7 @@ init_ggc ()
#ifdef HAVE_MMAP_DEV_ZERO #ifdef HAVE_MMAP_DEV_ZERO
G.dev_zero_fd = open ("/dev/zero", O_RDONLY); G.dev_zero_fd = open ("/dev/zero", O_RDONLY);
if (G.dev_zero_fd == -1) if (G.dev_zero_fd == -1)
abort (); internal_error ("open /dev/zero: %m");
#endif #endif
#if 0 #if 0
......
...@@ -1758,11 +1758,13 @@ floor_log2_wide (unsigned HOST_WIDE_INT x) ...@@ -1758,11 +1758,13 @@ floor_log2_wide (unsigned HOST_WIDE_INT x)
} }
/* Handler for fatal signals, such as SIGSEGV. These are transformed /* Handler for fatal signals, such as SIGSEGV. These are transformed
into ICE messages, which is much more user friendly. */ into ICE messages, which is much more user friendly. In case the
error printer crashes, reset the signal to prevent infinite recursion. */
static void static void
crash_signal (int signo) crash_signal (int signo)
{ {
signal (signo, SIG_DFL);
internal_error ("%s", strsignal (signo)); internal_error ("%s", strsignal (signo));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment