Bug 4697 - `as' compile-time hog (-ffunction-sections negative impact)
Summary: `as' compile-time hog (-ffunction-sections negative impact)
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-25 09:09 UTC by Pawel Sikora
Modified: 2007-06-29 15:37 UTC (History)
2 users (show)

See Also:
Host:
Target: i486-gnu-linux
Build:
Last reconfirmed:


Attachments
testcase for time-hog. (682.30 KB, application/octet-stream)
2007-06-25 09:12 UTC, Pawel Sikora
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Sikora 2007-06-25 09:09:45 UTC
attached testcase (700kB/.s.bzip2) exposes compile-time hog.
i've canceled assembling on P4-2.8GHz after 45 minutes.

(gdb) bt
#0  0x0805f3ef in resolve_symbol_value ()
#1  0x0805f7f3 in resolve_symbol_value ()
#2  0x080636da in relax_segment ()
#3  0x080620bb in relax_seg ()
#4  0x080762b9 in bfd_map_over_sections ()
#5  0x08062bb7 in write_object_file ()
#6  0x0804bb2e in main ()

tested on binutils-2.17.50.0.12.
Comment 1 Pawel Sikora 2007-06-25 09:12:15 UTC
Created attachment 1901 [details]
testcase for time-hog.
Comment 2 Alan Modra 2007-06-26 05:08:31 UTC
Current mainline doesn't appear to have a problem on my Athlon box with 1G ram.

$ time gas/as-new /tmp/pr4697.s

real    0m1.202s
user    0m1.100s
sys     0m0.080s
Comment 3 H.J. Lu 2007-06-27 19:50:41 UTC
Have you tried binutils-2.17.50.0.17?
Comment 4 Pawel Sikora 2007-06-29 15:37:36 UTC
(In reply to comment #3)
> Have you tried binutils-2.17.50.0.17?

.17 works fine, but i'm observing new assertion failures
in .17 on sparc-sun-solaris2.9. i'll fill it as new PR.