Constant data size regression

Bug #640544 reported by Andrew Stubbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Undecided
Chung-Lin Tang

Bug Description

The following code demonstrates a significant data size regression. With 4.3 based toochains it requires only 8 bytes of rom. With 4.4. based toolchains and above, each array is aligned to a 4-byte boundary. My application has several hundred such off sized arrays, so no longer fits in rom.

Adding __attribute__((aligned(1))) works around the problem, however the additional alignment seems rather suspect at -Os.

const char data1[] =
{
  1, 2, 3, 4, 5
};

const char data2[] =
{
  7, 8, 9
};

[CodeSourcery Tracker ID #8615]

Michael Hope (michaelh1)
tags: added: size task
Revision history for this message
Chung-Lin Tang (cltang) wrote :

I see this is already merged into Linaro 4.5, closing.

Changed in gcc-linaro:
status: New → Fix Released
assignee: nobody → Chung-Lin Tang (cltang)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.