------- 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