]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/61352 (gcc 4.9.0 fails to execute dsymutil when linking execut...
authorJack Howarth <howarth.at.gcc@gmail.com>
Wed, 6 May 2015 00:33:49 +0000 (00:33 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 6 May 2015 00:33:49 +0000 (00:33 +0000)
2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>

Backport from mainline
2014-05-29  Mike Stump  <mikestump@comcast.net>
PR debug/61352
* collect2.c (maybe_run_lto_and_relink): Be sure to always run
post ld passes when lto is used.

From-SVN: r222835

gcc/ChangeLog
gcc/collect2.c

index 8b0ac3d680e9a288ad0b973a3702aaefc7ad45cf..446b3f922975f29dcf0e3dc217c7842ff61873ef 100644 (file)
@@ -1,3 +1,11 @@
+2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
+
+       Backport from mainline
+       2014-05-29  Mike Stump  <mikestump@comcast.net>
+       PR debug/61352
+       * collect2.c (maybe_run_lto_and_relink): Be sure to always run
+       post ld passes when lto is used.
+
 2015-05-05  Shanyao Chen  <chenshanyao@huawei.com>
 
        Backported from mainline
index 2c587a03488caf50253b8552ac3a106150ad3bb1..7a76a12ab316d035b925b67d8498d365678b21d1 100644 (file)
@@ -848,6 +848,8 @@ maybe_run_lto_and_relink (char **lto_ld_argv, char **object_lst,
       fork_execute ("ld", lto_ld_argv);
       post_ld_pass (false);
     }
+  else
+    post_ld_pass (true);
 }
 \f
 /* Main program.  */