public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.
[not found] <bug-22299-7936@http.gcc.gnu.org/bugzilla/>
@ 2006-06-30 19:04 ` mckinlay at redhat dot com
2006-06-30 19:29 ` mckinlay at redhat dot com
1 sibling, 0 replies; 2+ messages in thread
From: mckinlay at redhat dot com @ 2006-06-30 19:04 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above.
[not found] <bug-22299-7936@http.gcc.gnu.org/bugzilla/>
2006-06-30 19:04 ` [Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above mckinlay at redhat dot com
@ 2006-06-30 19:29 ` mckinlay at redhat dot com
1 sibling, 0 replies; 2+ messages in thread
From: mckinlay at redhat dot com @ 2006-06-30 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mckinlay at redhat dot com 2006-06-30 19:04 -------
Correction: Both "XX" and "ODD" go in .rodata.jutf8.8. "XXXX" would go in
.rodata.jutf8.10.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22299
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-30 19:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-22299-7936@http.gcc.gnu.org/bugzilla/>
2006-06-30 19:04 ` [Bug java/22299] Even length strings (not odd) placed in .section .rodata.jutf8.# at -O1 or above mckinlay at redhat dot com
2006-06-30 19:29 ` mckinlay at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).