FS#22140 - [gcc] configure with --enable-gold

Attached to Project: Arch Linux
Opened by Patrick Palka (orlandu63) - Saturday, 18 December 2010, 19:56 GMT
Last edited by Allan McRae (Allan) - Sunday, 19 December 2010, 04:48 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Now that binutils provides the gold linker, it would be nice to have gcc be able to use it. In order for this to be possible, it seems that gcc must be configured with the --enable-gold flag, which would allow access to the -fuse-linker-plugin compile-time option.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 19 December 2010, 04:48 GMT
Reason for closing:  Implemented
Additional comments about closing:  gcc-4.5.2-2
Comment by Patrick Palka (orlandu63) - Saturday, 18 December 2010, 20:26 GMT
Sorry for labeling this as a bug report. I originally had it labelled as a feature request but I accidentally killed my web browser; the consequent rewrite was rushed.
Comment by Allan McRae (Allan) - Sunday, 19 December 2010, 00:31 GMT
I thought the --enable-gold flag should only be needed to use the BFD LTO plugin which is only available in binutils git. The gold LTO plugin should be usable without building gcc that way... I will look into this further.
Comment by Allan McRae (Allan) - Sunday, 19 December 2010, 02:07 GMT
I am testing with:
--enable-gold --with-plugin-linker=ld.gold

That should keep ld(.bfd) as the default linker but force the use of ld.gold when compiling with -fuse-linker-plugin...

Loading...