This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jul 2017 09:20:16 +0000
- Subject: [Bug tree-optimization/81540] tree-switch-conversion leads to code bloat
- Auto-submitted: auto-generated
- References: <bug-81540-4@http.gcc.gnu.org/bugzilla/>
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.