[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-28 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 Wilco changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #5 from Wil

[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-28 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 --- Comment #4 from Christophe Lyon --- That's what I replied in the original PR94538, but Wilco said the best option was to turn off switch tables: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94538#c14 See also another comment from him: https:

[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-28 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 --- Comment #3 from Richard Earnshaw --- Note that the switch table is in the .rodata section, so that's not a problem.

[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-27 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 Christophe Lyon changed: What|Removed |Added Last reconfirmed||2020-08-27 Ever confirmed|0

[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-27 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 --- Comment #2 from Christophe Lyon --- Send patch proposal: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552798.html

[Bug target/96768] -mpure-code produces switch tables for thumb-1

2020-08-27 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96768 --- Comment #1 from Christophe Lyon --- This is related to comments 10,11,14,15 and 16 in the original PR94538. In comment 14, Wilco suggested: "The best option is to do the same as Cortex-M3: just switch off branch tables altogether and fall ba