[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 25 09:20:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|avr |avr,x86_64
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Similar on x86_64:
$ gcc-8 cswtch.c -Os -c && size -A cswtch.o
cswtch.o :
section size addr
.text 20 0
.rodata 200 0
[snipped irrelevant sections]
$ gcc-8 cswtch.c -Os -c -fno-tree-switch-conversion && size -A cswtch.o
cswtch.o :
section size addr
.text 35 0
So it grows by a factor of > 5 there.
More information about the Gcc-bugs
mailing list