bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/18427] GNU as slow on hppa architecture


From: dave.anglin at bell dot net
Subject: [Bug gas/18427] GNU as slow on hppa architecture
Date: Mon, 18 May 2015 20:33:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18427

--- Comment #2 from dave.anglin at bell dot net ---
On 2015-05-18, at 3:15 PM, deller at gmx dot de wrote:

> So, the pa_undefine_label() function seems problematic.
> I talked to Dave Anglin about that issue, and he came up with the attached
> patch. This patch seems to work and speeds up gas a lot, but it will most
> likely break HP-UX (which uses multiple segments).

Actually, ELF targets such as Linux have multiple segments.  Assembly time
blows up when -ffunction-sections and -fdata-sections are used.  The lists for
each segment are poorly managed, so both the number of lists and their length
grows.

All this overhead is to find the previous label emitted in the current
space/segment.

In practice, GCC never plays with spaces/segments between emitting the label
and
its associated instruction.  So, the previous label is what's needed.  The
tracking is
for hand crafted assembly code.

The patch doesn't affect 32-bit HP-UX SOM.  The patch might affect 64-bit
HP-UX.
I haven't tried it on 64-bit HP-UX.

--
John David Anglin       address@hidden

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]