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: [PR84620] output symbolic entry_view as data2, not addr


On Thu, Mar 08, 2018 at 06:05:04AM -0300, Alexandre Oliva wrote:
> On Mar  6, 2018, Jakub Jelinek <jakub@redhat.com> wrote:
> 
> > I'm afraid I haven't understood yet why we need labels instead of compiler
> > assigned numbers for the views,
> 
> The compiler can't determine points at which the insn address changes
> reliably (or at all).  It's impossible in the general case, considering
> that alignment requests might be fulfilled by an assembler without any
> address change, if the current address was just right, and only the
> assembler would know that.

An upper bound would be fine, count any potential spot where you introduce a
view and if the upper bound fits into 8-bit value, use data1, if into 16-bit
value, use data2, otherwise use data4.

	Jakub


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