This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

run dsymutil post lto


Jack finally found the answer to a question I had back in 2010…  Why, yes, one does have to arrange to run the post ld pass when lto runs but doesn’t have to relink.

Committed revision 211067.

Thanks Jack.
	
	PR debug/61352
	* collect2.c (maybe_run_lto_and_relink): Be sure to always run
        post ld passes when lto is used.

Index: collect2.c
===================================================================
--- collect2.c	(revision 211062)
+++ collect2.c	(working copy)
@@ -848,6 +848,8 @@ maybe_run_lto_and_relink (char **lto_ld_
       fork_execute ("ld", lto_ld_argv);
       post_ld_pass (false);
     }
+  else
+    post_ld_pass (true);
 }
 

 /* Main program.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]