[Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.
mckinlay at redhat dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 30 19:04:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list