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]

PR debug/46749


This fixes PR debug/46749, an LTO bug in debug information on darwin.  This bug comes about because darwin leaves the debug information in the .o files instead of copying that information into the a.out and lto removes temporary .o files by the time collect2 finishes running.  Before dsymutil was run after collect2 finished, which is now just too late.

I've tested x86_64-darwin10 with the C languages and fortran, and built a linux cross compiler.

I'll give people a chance to comment, but I was planning on checking this in soon.  Any objections?


2010-12-07  Mike Stump  <mikestump@comcast.net>

	PR debug/46749
	* config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
	(DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
	* config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
	(DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
	* collect2.c (post_ld_pass): Add.
	(process_args): Add.
	(maybe_run_lto_and_relink): Call post_ld_pass after ld.
	(main): Likewise.  Call process_args.

Attachment: lto.patch.txt
Description: Text document


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