This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]