This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/22158] char global_var[] = "larger than 32 bytes"; uses silly amounts of alignment even with -Os
- From: "vda at port dot imtp dot ilyichevsk dot odessa dot ua" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2005 12:57:00 -0000
- Subject: [Bug target/22158] char global_var[] = "larger than 32 bytes"; uses silly amounts of alignment even with -Os
- References: <20050623060033.22158.vda@port.imtp.ilyichevsk.odessa.ua>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-06-23 12:56 -------
In majority of cases char msg[] = "A message" is used for text strings.
These are _bytes_, they need no alignment whatsoever, let alone 32 byte one.
I'm perfectly fine if other people want to do it, but I don't, so I use -Os.
I want to suppress this behavior for -Os.
Is it a bug or not is a matter of definition 'what is a bug' really...
BTW what is that another mysterious piece of code aligning something else to 32
bytes?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22158