This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2006 19:01:22 -0000
- Subject: [Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.
- References: <bug-22299-7936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from mckinlay at redhat dot com 2006-06-30 19:01 -------
The sizes of the constant-merging sections must be a multiple of the alignment
of their contents. UtfConsts have 2-byte alignment, so odd-sized strings are
rounded up and go in the next-sized bucket.
So, it is correct for "ODD" and "XXXX" to both go in .rodata.jutf8.8, which is
what is happening here. Constant merging is not performed below -O1.
--
mckinlay at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mckinlay at redhat dot com
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22299