~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/a4/a48e6fc44bc233dc4f396426fa4687bbb0c36ced.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Report an ICE to apport (if apport is available
 
2
# DP: and the environment variable GCC_NOAPPORT is not set)
 
3
 
 
4
Index: b/src/gcc/gcc.c
 
5
===================================================================
 
6
--- a/src/gcc/gcc.c
 
7
+++ b/src/gcc/gcc.c
 
8
@@ -6254,6 +6254,16 @@
 
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))
 
14
+               {
 
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]);
 
19
+                 system (cmd);
 
20
+                 free (cmd);
 
21
+               }
 
22
              /* Make sure it is not deleted.  */
 
23
              free (temp_filenames[attempt * 2]);
 
24
              temp_filenames[attempt * 2] = NULL;