1
# DP: Report an ICE to apport (if apport is available
2
# DP: and the environment variable GCC_NOAPPORT is not set)
5
===================================================================
9
fnotice (stderr, "Preprocessed source stored into %s file,"
10
" please attach this to your bugreport.\n",
11
temp_filenames[attempt * 2]);
12
+ if (!getenv ("GCC_NOAPPORT")
13
+ && !access ("/usr/share/apport/gcc_ice_hook", R_OK | X_OK))
15
+ char *cmd = XNEWVEC (char, 50 + strlen (temp_filenames[attempt * 2])
16
+ + strlen (new_argv[0]));
17
+ sprintf (cmd, "/usr/share/apport/gcc_ice_hook %s %s",
18
+ new_argv[0], temp_filenames[attempt * 2]);
22
/* Make sure it is not deleted. */
23
free (temp_filenames[attempt * 2]);
24
temp_filenames[attempt * 2] = NULL;