Re: arm: Fix regression in contant handling for -mpure-code for v8m

2020-04-20 Thread Christophe Lyon via Gcc-patches
Hi, You can disregard this patch, Wilco found problems with it, and I think he is working on a more complete fix. Thanks, Christophe On Thu, 16 Apr 2020 at 17:39, Christophe Lyon wrote: > > Hi, > > In PR94538, Wilco mentioned that my patch to enable -mpure-code for > v6m caused regressions in

arm: Fix regression in contant handling for -mpure-code for v8m

2020-04-16 Thread Christophe Lyon via Gcc-patches
Hi, In PR94538, Wilco mentioned that my patch to enable -mpure-code for v6m caused regressions in the code generated for cortex-m23. Specifically, for int f3 (void) { return 0x1100; } int f3_bis (void) { return 0x12345678; } we currently generate (-O2 -mcpu=cortex-m23 -mpure-code) mo