Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Richard Earnshaw
On 28/08/2020 16:36, Christophe Lyon via Gcc-patches wrote: > On Fri, 28 Aug 2020 at 16:27, Richard Earnshaw > wrote: >> >> On 28/08/2020 14:24, Christophe Lyon via Gcc-patches wrote: >>> On Fri, 28 Aug 2020 at 14:00, Richard Earnshaw >>> wrote: On 27/08/2020 14:27, Christophe Lyon via

Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Christophe Lyon via Gcc-patches
On Fri, 28 Aug 2020 at 16:27, Richard Earnshaw wrote: > > On 28/08/2020 14:24, Christophe Lyon via Gcc-patches wrote: > > On Fri, 28 Aug 2020 at 14:00, Richard Earnshaw > > wrote: > >> > >> On 27/08/2020 14:27, Christophe Lyon via Gcc-patches wrote: > >>> In comment 14 from PR94538, it was sugges

Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Richard Earnshaw
On 28/08/2020 15:27, Richard Earnshaw wrote: > On 28/08/2020 14:24, Christophe Lyon via Gcc-patches wrote: >> On Fri, 28 Aug 2020 at 14:00, Richard Earnshaw >> wrote: >>> >>> On 27/08/2020 14:27, Christophe Lyon via Gcc-patches wrote: In comment 14 from PR94538, it was suggested to switch off

Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Richard Earnshaw
On 28/08/2020 14:24, Christophe Lyon via Gcc-patches wrote: > On Fri, 28 Aug 2020 at 14:00, Richard Earnshaw > wrote: >> >> On 27/08/2020 14:27, Christophe Lyon via Gcc-patches wrote: >>> In comment 14 from PR94538, it was suggested to switch off jump tables >>> on thumb-1 cores when using -mpure-

Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Christophe Lyon via Gcc-patches
On Fri, 28 Aug 2020 at 14:00, Richard Earnshaw wrote: > > On 27/08/2020 14:27, Christophe Lyon via Gcc-patches wrote: > > In comment 14 from PR94538, it was suggested to switch off jump tables > > on thumb-1 cores when using -mpure-code, like we already do for thumb-2. > > > > This is what this pa

Re: [PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-28 Thread Richard Earnshaw
On 27/08/2020 14:27, Christophe Lyon via Gcc-patches wrote: > In comment 14 from PR94538, it was suggested to switch off jump tables > on thumb-1 cores when using -mpure-code, like we already do for thumb-2. > > This is what this patch does, and also restores the previous value of > CASE_VECTOR_PC

[PATCH] arm: Fix switch tables for thumb-1 with -mpure-code [PR96768]

2020-08-27 Thread Christophe Lyon via Gcc-patches
In comment 14 from PR94538, it was suggested to switch off jump tables on thumb-1 cores when using -mpure-code, like we already do for thumb-2. This is what this patch does, and also restores the previous value of CASE_VECTOR_PC_RELATIVE since it was not the right way of handling this. It also ad