Re: Branch instructions that depend on target distance

2020-02-24 Thread Petr Tesarik
On Mon, 24 Feb 2020 15:03:21 +0300 (MSK) Alexander Monakov wrote: > On Mon, 24 Feb 2020, Andreas Schwab wrote: > > > On Feb 24 2020, Petr Tesarik wrote: > > > > > On Mon, 24 Feb 2020 12:29:40 +0100 > > > Andreas Schwab wrote: > > >

Re: Branch instructions that depend on target distance

2020-02-24 Thread Petr Tesarik
On Mon, 24 Feb 2020 12:29:40 +0100 Andreas Schwab wrote: > On Feb 24 2020, Petr Tesarik wrote: > > > This works great ... until there's some inline asm() statement, for > > which gcc cannot keep track of the length attribute, so it is probably > > taken as ze

Re: Branch instructions that depend on target distance

2020-02-24 Thread Petr Tesarik
On Mon, 24 Feb 2020 11:14:44 + Jozef Lawrynowicz wrote: > On Mon, 24 Feb 2020 12:05:28 +0100 > Petr Tesarik wrote: > > > Hi all, > > > > I'm looking into reviving the efforts to port gcc to VideoCore IV [1]. > > One issue I've run into is the nee

Branch instructions that depend on target distance

2020-02-24 Thread Petr Tesarik
Hi all, I'm looking into reviving the efforts to port gcc to VideoCore IV [1]. One issue I've run into is the need to find out target branch distance at compile time. I looked around, and it's not the first one architecture with such requirement, but AFAICS it has never been solved properly. For