--- Comment #6 from amruth dot laxman at nsn dot com 2007-10-06 15:37
---
Based on the feedback below, I'd like to reopen this as an enhancement request.
Rationale for requesting this as an enhancment is as follows:
-> restoring gcc 3.x behavior will ease migration to gcc 4.x on alignme
--- Comment #5 from david_albert at axiometric dot com 2007-10-03 22:06
---
This issue has affected *many* developers on a variety of platforms including
ARM and PPC. There is no elegant way to resolve this without searching through
every line of code. There is a warning -Wcast-align
--- Comment #4 from amruth dot laxman at nsn dot com 2007-09-29 23:58
---
You're right - I can use aligned, but I will have to search through 100,000+
lines of code to find all the places that character arrays are used and then
add the aligned directive. A lot of this code is open-sourc
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-29 20:40 ---
You should able to use the attribute aligned to get what you want.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33594
--- Comment #2 from amruth dot laxman at nsn dot com 2007-09-29 20:12
---
Two questions:
- why change the behavior of gcc from 3.x to 4.x?
- is there any harm in adding alignment for arrays? If not, can we make this an
enhancement request?
--
http://gcc.gnu.org/bugzilla/show_bug.cg
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-09-29 20:03 ---
As you say, you cannot rely on alignment > 1 for an array of char.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--