NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/59391: unnecessary __PIC__ conditionals clutter .S files
The following reply was made to PR lib/59391; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: lib/59391: unnecessary __PIC__ conditionals clutter .S files
Date: Sat, 3 May 2025 21:05:10 +0300
> But the x86 ones are just silly [...]
They very well can be, but you can't legislate common sense.
Sometimes it's easy and natural to have common asm text with a bit of
macro pixie dust that gives you both static and pic code and I
generally tried to do that for sh3 for example, where, yes, you can
perhaps schedule instructions a bit better in each version if you
wrote them separately, but you are not really doing any contortions to
merge the two versions.
OTOH sometimes it's easier (including in terms of cognitive load on
the reader) to have two separate versions, like in that sparc example.
-uwe
Home |
Main Index |
Thread Index |
Old Index