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]

Re: [PATCH V3, #1 of 10], Add basic pc-relative support


On Thu, Sep 05, 2019 at 08:18:02PM -0400, Michael Meissner wrote:
> On Thu, Aug 29, 2019 at 04:32:07PM -0500, Segher Boessenkool wrote:
> > This is not just for reload anymore, so please don't name it that.  Renaming
> > things isn't hard, this isn't a public API or anything :-)
> 
> This hasn't just be for reload for several years now.

Yes, and since you are extending it a lot now, it is high time it is fixed.

> Do you have a name you prefer?

As I said, I don't think all these things should be lumped together at
all, and also you shouldn't precompute everything (as fixed values
always, after that precompute) into arrays anyway.  Instead, use
functions for all accessors, which can have simple and clear logic what
they return when.

If it is hard to find good names for your interfaces, most likely your
interfaces aren't structured very well.


Segher


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