Re: m68k Coldfire and PC-relative addressing distances

2023-07-19 Thread Joseph Myers
On Tue, 11 Jul 2023, Florian Weimer via Gcc wrote: > * Richard Biener: > > > On Tue, Jul 11, 2023 at 11:36 AM Florian Weimer via Gcc > > wrote: > >> > >> How does the Coldfire m68k subtarget and sure that displacements in PIC > >> code are within the addressable range? > > > > There is usually

Re: m68k Coldfire and PC-relative addressing distances

2023-07-11 Thread Jeff Law via Gcc
On 7/11/23 04:48, Richard Biener via Gcc wrote: On Tue, Jul 11, 2023 at 11:36 AM Florian Weimer via Gcc wrote: How does the Coldfire m68k subtarget and sure that displacements in PIC code are within the addressable range? There is usually a branch shortening pass relying on correct instru

Re: m68k Coldfire and PC-relative addressing distances

2023-07-11 Thread Florian Weimer via Gcc
* Richard Biener: > On Tue, Jul 11, 2023 at 11:36 AM Florian Weimer via Gcc > wrote: >> >> How does the Coldfire m68k subtarget and sure that displacements in PIC >> code are within the addressable range? > > There is usually a branch shortening pass relying on correct > instruction lengths. > >

Re: m68k Coldfire and PC-relative addressing distances

2023-07-11 Thread Richard Biener via Gcc
On Tue, Jul 11, 2023 at 11:36 AM Florian Weimer via Gcc wrote: > > How does the Coldfire m68k subtarget and sure that displacements in PIC > code are within the addressable range? There is usually a branch shortening pass relying on correct instruction lengths. I suggest to file a bugreport with

m68k Coldfire and PC-relative addressing distances

2023-07-11 Thread Florian Weimer via Gcc
How does the Coldfire m68k subtarget and sure that displacements in PIC code are within the addressable range? We have a source file in glibc that fails at assembly because it contains a branch that is out of range with -fpic. The GAS error is: …/iso-2022-jp.s: Fatal error: Tried to convert PC r