https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96847
Bug ID: 96847
Summary: Code size increase +42% depending on memory size
allocated on stack for ARM Cortex-M3
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Created attachment 49156
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49156&action=edit
Example showing +42% increase depending on stack mem array sizes
When comping with GCC-10.x.0 I get a code size increase depending on the size
of memory for arrays on stack.
On older GCC-9.x.0 does not get this size increase.
On a slightly constructed test-case from CSiBE bzip2 I get more than +42% size
increase.
Target: arm-none-eabi Cortex-M3
See example attached, if I chose a 2 bytes less size for stack mem array I get
a totally different result? How can stack memory arrays sizes make this
difference, and why is this new with GCC-10.x?